mirror of
https://github.com/brunofontes/linuxShortcuts.git
synced 2024-11-28 02:21:26 +00:00
Compare commits
No commits in common. "b34416de141e729aaa968e42e84217001741b524" and "7424440645404852bac5a68d415aa8b564caeedf" have entirely different histories.
b34416de14
...
7424440645
@ -1 +1 @@
|
||||
/bin/terminator -m -T BACKUP -x sudo systemd-inhibit bash /home/bruno/Apps/linuxShortcuts/Backup/.Backup_HD.sh &
|
||||
terminator -m -T BACKUP -x sudo systemd-inhibit bash /home/bruno/Apps/linuxShortcuts/Backup/.Backup_HD.sh &
|
||||
|
@ -1,15 +1,10 @@
|
||||
#! /bin/bash
|
||||
if [[ -z $CONTABO_BACKUP_PATH ]]; then
|
||||
echo CONTABO_BACKUP_PATH environment not set
|
||||
exit 1
|
||||
fi
|
||||
sleep 60
|
||||
/bin/rsync --archive --exclude "files/nextcloud*" -e "ssh" backupContabo:/home/bruno/backups/* $CONTABO_BACKUP_PATH
|
||||
/bin/rsync -a -e "ssh -i /home/bruno/.ssh/id_rsa_backup" mybackup@167.86.78.36:/home/bruno/backups/* /home/bruno/Backups/Contabo/
|
||||
|
||||
# Delete old backups
|
||||
find $CONTABO_BACKUP_PATH/db -type f -name "*.sql.gz" -mtime +15 -delete
|
||||
find $CONTABO_BACKUP_PATH/keys -type f -name "*.*" -mtime +15 -delete
|
||||
find $CONTABO_BACKUP_PATH/files -type f -name "*.*" -mtime +35 -delete
|
||||
find $CONTABO_BACKUP_PATH/mail -type f -name "*.*" -mtime +20 -delete
|
||||
find /home/bruno/Backups/Contabo/db -type f -name "*.sql.gz" -mtime +15 -delete
|
||||
find /home/bruno/Backups/Contabo/files -type f -name "*.*" -mtime +35 -delete
|
||||
find /home/bruno/Backups/Contabo/mail -type f -name "*.*" -mtime +20 -delete
|
||||
|
||||
find $CONTABO_BACKUP_PATH/ -type f -name "*.*" -mtime +120 -delete
|
||||
find /home/bruno/Backups/Contabo/ -type f -name "*.*" -mtime +120 -delete
|
||||
|
Loading…
Reference in New Issue
Block a user