mirror of
https://github.com/danbulant/Portfolio
synced 2026-07-06 03:20:53 +00:00
feat(backup script): remove the local backup
This commit is contained in:
parent
c3dc264359
commit
e07402006f
1 changed files with 4 additions and 1 deletions
|
|
@ -18,3 +18,6 @@ rm -rf /opt/backup/$NOW
|
||||||
|
|
||||||
# scp the backup to the remote server
|
# scp the backup to the remote server
|
||||||
scp /opt/backup/$NOW.tar.gz USERNAME@SERVER_IP:/home/zalohy/backups/$NOW.tar.gz
|
scp /opt/backup/$NOW.tar.gz USERNAME@SERVER_IP:/home/zalohy/backups/$NOW.tar.gz
|
||||||
|
|
||||||
|
# remove the local backup
|
||||||
|
rm /opt/backup/$NOW.tar.gz
|
||||||
Loading…
Reference in a new issue