mirror of
https://github.com/acedanger/shell.git
synced 2025-12-06 02:20:11 -08:00
updated to connect to tailscale magicdns names
This commit is contained in:
@@ -9,9 +9,9 @@ destination="/mnt/share/media/backups/docker-data/"
|
|||||||
|
|
||||||
command="rsync \
|
command="rsync \
|
||||||
--archive --verbose --progress --dry-run --stats \
|
--archive --verbose --progress --dry-run --stats \
|
||||||
-e 'ssh -p 58022' \
|
-e 'ssh' \
|
||||||
--include '*.gz' \
|
--include '*.gz' \
|
||||||
acedanger@vperanda:$source $destination \
|
acedanger@ts-vperanda:$source $destination \
|
||||||
| fgrep 'Number of files' | cut -d' ' -f4 | tr -d ,"
|
| fgrep 'Number of files' | cut -d' ' -f4 | tr -d ,"
|
||||||
|
|
||||||
# echo 'Running command => '
|
# echo 'Running command => '
|
||||||
@@ -19,9 +19,9 @@ command="rsync \
|
|||||||
|
|
||||||
num_files=$(rsync \
|
num_files=$(rsync \
|
||||||
--archive --verbose --progress --dry-run --stats \
|
--archive --verbose --progress --dry-run --stats \
|
||||||
-e 'ssh -p 58022' \
|
-e 'ssh' \
|
||||||
--include '*.gz' \
|
--include '*.gz' \
|
||||||
acedanger@vperanda:$source $destination \
|
acedanger@ts-vperanda:$source $destination \
|
||||||
| fgrep 'Number of files' | cut -d' ' -f4 | tr -d ,
|
| fgrep 'Number of files' | cut -d' ' -f4 | tr -d ,
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -36,9 +36,9 @@ fi
|
|||||||
# move the files from $source to $destination
|
# move the files from $source to $destination
|
||||||
rsync \
|
rsync \
|
||||||
--recursive --verbose --progress --remove-source-files --archive \
|
--recursive --verbose --progress --remove-source-files --archive \
|
||||||
-e 'ssh -p 58022' \
|
-e 'ssh' \
|
||||||
--include '*.gz' \
|
--include '*.gz' \
|
||||||
acedanger@vperanda:$source $destination
|
acedanger@ts-vperanda:$source $destination
|
||||||
|
|
||||||
# send a notification to https://notify.peterwood.rocks/lab
|
# send a notification to https://notify.peterwood.rocks/lab
|
||||||
curl \
|
curl \
|
||||||
|
|||||||
Reference in New Issue
Block a user