Saturday, 21 January 2012

sql php script

#!/bin/bash

# this is run by the root crontab

datetime=`date '+%m-%d-%y-%H-%M-%S'`
/opt/lampp/bin/mysqldump -uUSER -pPASSWORD xtec | gzip > /root/backups/backup-$datetime.gz


No comments:

Post a Comment