Guys, I have a network of about 80 WP sites spread over 10 different hosts. What would be the best way to backup them (files+DBs) regularly? Doing it manually is a pain.
Thanks for your advices.
Thanks for your advices.

# ########################################################## # DUMP DATABASE(S) # ########################################################## mysqldump --user=root --password='whatever' --host=localhost databasename > databasename.sql # ########################################################## # TAR WEBSITE(S) # ########################################################## tar -cpf domainname.tar /path/to/domainname.com # ########################################################## # MOVE FILES TO BACKUP FOLDER # ########################################################## mv databasename.sql /path/to/backups/ mv domainnanme.tar /path/to/backups/
0 0 * * * /bin/bash /path/to/backups.sh > /dev/null
# ########################################################## # DUMP DATABASE(S) # ########################################################## mysqldump --user=root --password='whatever' --host=localhost databasename > databasename.sql # ########################################################## # TAR WEBSITE(S) # ########################################################## tar -cpf domainname.tar /path/to/domainname.com # ########################################################## # MOVE FILES TO BACKUP FOLDER # ########################################################## mv databasename.sql /path/to/backups/ mv domainnanme.tar /path/to/backups/
0 0 * * * /bin/bash /path/to/backups.sh > /dev/null

Comment