From 9f3419f777099542dec398abcc3ab7fb151e13fd Mon Sep 17 00:00:00 2001 From: Peter Wood Date: Thu, 5 Oct 2023 08:16:50 -0400 Subject: [PATCH] updated rsync flags to allow it to run as root --- move-backups.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/move-backups.sh b/move-backups.sh index f6e9b67..93f06a6 100755 --- a/move-backups.sh +++ b/move-backups.sh @@ -1,11 +1,7 @@ -#! /bin/bash +#!/bin/bash function move-backups() { -# -q quiet -# -r recursive -# -z compress - rsync -qrz --include '*.gz' --remove-source-files vperanda:/home/acedanger/backup/docker-data - /mnt/m/backups/ + rsync --recursive --quiet -e 'ssh -p 58022' --include '*.gz' --remove-source-files acedanger@vperanda:/home/acedanger/backup/docker-data /mnt/m/backups/ } if [ "$(expr substr $(uname -s) 1 5)" == 'Linux' ]; then