1234567891011121314151617 |
- #!/bin/bash
- #########################################################
- # #
- # Supprime les sauvegardes vieilles de plus de 10 jours #
- # #
- #########################################################
- # Parametrage
- WWW_BACKUP_DIRECTORY=/home/backup/www
- MYSQL_BACKUP_DIRECTORY=/home/backup/mysql
- # Fichiers
- find $WWW_BACKUP_DIRECTORY -maxdepth 1 -mindepth 1 -mtime +9 -exec rm -rf {} \;
- # Dumps mysql
- find $MYSQL_BACKUP_DIRECTORY -type f -mtime +9 -delete
|