fin
This commit is contained in:
parent
5d3f189ace
commit
bd9f706d76
|
@ -8,4 +8,8 @@ FILENAME="$NAME $(date +%Y-%m-%d\ %H-%M).tgz"
|
||||||
tar -aczf "/tmp/$FILENAME" -C /volumes .
|
tar -aczf "/tmp/$FILENAME" -C /volumes .
|
||||||
|
|
||||||
# ship to host
|
# 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/*
|
Loading…
Reference in a new issue