Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Backups incrementales de ficheros estaticos
- arr=(/etc /boot)
- mkdir -p /mnt/backup/incrementales
- for dir in ${arr[@]}; do
- rsync -av $dir /mnt/backup/incrementales
- done
- # backup bases de datos.
- mkdir -p /var/backups/mysql
- #systemctl stop mariadb
- mysqldump -uroot wp_database > /var/backups/mysql/wp_database.sql
- #systemctl start mardiadb
- # Backup diferenciales ficheros variables diarios
- # Fichero '/etc/rsnapshot.conf'
- # ...
- # backup /var/www/ ...
- # backup /var/lib/mysql/ ...
- rsnapshot daily
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement