mirror of
https://github.com/tubearchivist/tubearchivist-server.git
synced 2024-11-21 19:30:12 +00:00
fix remove source file flag
This commit is contained in:
parent
6f25ae8460
commit
4591a0e032
@ -12,11 +12,11 @@ echo "------------------------------------------------------------"
|
|||||||
printf "\n -> backup\n"
|
printf "\n -> backup\n"
|
||||||
ssh $remote_host 'docker exec postgres pg_dump -U archivist | gzip > backup.gz'
|
ssh $remote_host 'docker exec postgres pg_dump -U archivist | gzip > backup.gz'
|
||||||
printf "\n -> download\n"
|
printf "\n -> download\n"
|
||||||
rsync --progress -r --delete-after -e ssh $remote_host:backup.gz /tmp/backup.gz
|
rsync --progress -r --remove-source-files -e ssh $remote_host:backup.gz /tmp/backup.gz
|
||||||
|
|
||||||
# sync
|
# sync
|
||||||
printf "\n -> sync\n"
|
printf "\n -> sync\n"
|
||||||
rsync --progress -r --delete-after /tmp/backup.gz -e ssh $local_host:backup
|
rsync --progress -r --remove-source-files /tmp/backup.gz -e ssh $local_host:backup
|
||||||
ssh $local_host 'gzip -df backup/backup.gz'
|
ssh $local_host 'gzip -df backup/backup.gz'
|
||||||
|
|
||||||
# replace
|
# replace
|
||||||
|
Loading…
Reference in New Issue
Block a user