mirror of
https://github.com/danbulant/Portfolio
synced 2026-05-19 04:18:52 +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
|
|
@ -17,4 +17,7 @@ tar -zcvf /opt/backup/$NOW.tar.gz /opt/backup/$NOW
|
|||
rm -rf /opt/backup/$NOW
|
||||
|
||||
# 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