View Single Post
  #9  
Old 20th August 2010, 17:03
wahid wahid is offline
Junior Member
 
Join Date: Aug 2010
Location: Hamburg, Germany
Posts: 22
Thanks: 2
Thanked 4 Times in 2 Posts
Question

This simple script:

Code:
#!/bin/sh


# Backup "website.tld" /var/www/clients/client0/web5/web
nice -n 17 /bin/tar -cjvvf /var/www/clients/client0/web5/backups/website.tld.`/bin/date +%Y%m%d`.tar.bz2 /var/www/clients/client0/web5/web

# Dump "website.tld" Website database
nice -n 17 /usr/bin/mysqldump --verbose --user=userName --password=secret --add-drop-table dbName> /var/www/clients/client0/web5/backups/website.tld.`/bin/date +%Y%m%d`.sql
nice -n 17 /bin/bzip2 /var/www/clients/client0/web5/backups/website.tld.`/bin/date +%Y%m%d`.sql
Reply With Quote