Skip to content

Commit

Permalink
Make backup scripts less verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
janwerkhoven committed Nov 26, 2023
1 parent 9a02d0a commit 6d606d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions remote/backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ echo "----------"

(
set -x
scp -v remote/backup-remote.sh $url:~/
scp remote/backup-remote.sh $url:~/
ssh $url "~/backup-remote.sh $timestamp; rm -f ~/backup-remote.sh"
)

Expand All @@ -24,7 +24,7 @@ echo "----------"

(
set -x
scp -v $url:/var/www/rails.api.interflux.com/db/backups/$timestamp.tar.gz ./db/backups
scp $url:/var/www/rails.api.interflux.com/db/backups/$timestamp.tar.gz ./db/backups
tar --extract --file db/backups/$timestamp.tar.gz
bin/rails db:data:load_dir dir=backups/$timestamp
rm db/backups/$timestamp.tar.gz
Expand Down

0 comments on commit 6d606d3

Please sign in to comment.