updated rsync flags to allow it to run as root

This commit is contained in:
Peter Wood
2023-10-05 08:16:50 -04:00
parent efa9898731
commit 9f3419f777

View File

@@ -1,11 +1,7 @@
#! /bin/bash #!/bin/bash
function move-backups() { function move-backups() {
# -q quiet rsync --recursive --quiet -e 'ssh -p 58022' --include '*.gz' --remove-source-files acedanger@vperanda:/home/acedanger/backup/docker-data /mnt/m/backups/
# -r recursive
# -z compress
rsync -qrz --include '*.gz' --remove-source-files vperanda:/home/acedanger/backup/docker-data
/mnt/m/backups/
} }
if [ "$(expr substr $(uname -s) 1 5)" == 'Linux' ]; then if [ "$(expr substr $(uname -s) 1 5)" == 'Linux' ]; then