This commit is contained in:
split / May 2024-07-03 00:06:21 -07:00
parent 5d3f189ace
commit bd9f706d76
Signed by: split
GPG key ID: C325C61F0BF517C0

View file

@ -8,4 +8,8 @@ FILENAME="$NAME $(date +%Y-%m-%d\ %H-%M).tgz"
tar -aczf "/tmp/$FILENAME" -C /volumes .
# ship to host
rsync -R -e "ssh -i /id" "/tmp/$FILENAME" $NAME@$HOST:/home/$NAME/$(date +%Y\/%m)/
cd /tmp
rsync -R -e "ssh -i /id" --include="$FILENAME" $NAME@$HOST:/home/$NAME/$(date +%Y-%m)/
# delete backup
rm -rf /tmp/*