From d957f53f156e72959a63b4242fbe9beb3767f476 Mon Sep 17 00:00:00 2001 From: Peter Wood Date: Thu, 2 May 2024 22:05:19 +0000 Subject: [PATCH] updated to connect to tailscale magicdns names --- move-backups.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/move-backups.sh b/move-backups.sh index cd7dd8f..eba075a 100755 --- a/move-backups.sh +++ b/move-backups.sh @@ -9,9 +9,9 @@ destination="/mnt/share/media/backups/docker-data/" command="rsync \ --archive --verbose --progress --dry-run --stats \ - -e 'ssh -p 58022' \ + -e 'ssh' \ --include '*.gz' \ - acedanger@vperanda:$source $destination \ + acedanger@ts-vperanda:$source $destination \ | fgrep 'Number of files' | cut -d' ' -f4 | tr -d ," # echo 'Running command => ' @@ -19,9 +19,9 @@ command="rsync \ num_files=$(rsync \ --archive --verbose --progress --dry-run --stats \ - -e 'ssh -p 58022' \ + -e 'ssh' \ --include '*.gz' \ - acedanger@vperanda:$source $destination \ + acedanger@ts-vperanda:$source $destination \ | fgrep 'Number of files' | cut -d' ' -f4 | tr -d , ) @@ -36,9 +36,9 @@ fi # move the files from $source to $destination rsync \ --recursive --verbose --progress --remove-source-files --archive \ - -e 'ssh -p 58022' \ + -e 'ssh' \ --include '*.gz' \ - acedanger@vperanda:$source $destination + acedanger@ts-vperanda:$source $destination # send a notification to https://notify.peterwood.rocks/lab curl \