DATUM=`date '+%Y-%m-%d'`
mysqldump -u USER --password=PASSWORD DATABASE TABLE > /home/backup/db.sql
gzip /home/backup/db.sql
mv /home/backup/db.sql.gz /home/backup/db-${DATUM}.sql.gz
find /home/backup/ -mtime +2 -type f -print0 | xargs -0 rm
Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1069"></script>
0 comment about "mysql dump with delete more then 3 backups"