mirror of
https://github.com/brunofontes/linuxShortcuts.git
synced 2024-11-24 02:01:08 +00:00
11 lines
485 B
Bash
Executable File
11 lines
485 B
Bash
Executable File
#! /bin/bash
|
|
sleep 60
|
|
/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 /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/vmail -type f -name "*.*" -mtime +20 -delete
|
|
|
|
find /home/bruno/Backups/Contabo/ -type f -name "*.*" -mtime +120 -delete
|