Thread Rating:
  • 4 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tutorial] Free auto database backup to dropbox script [fully automated]
#1
Step 1 Register here for free webdev cloud dropbox account https://dropbox.com/webdev/register
Step 2 download script backmeup.sh


   The script dumps all of your MySQL databases as separate files.

   The script backs up all of your Web files (e.g: root of all of your virtual hosts).

   The script compresses your web-root and databases to a single archive.

   The script uploads the compressed archive into a folder in Dropbox.

   After the upload, the script cleans the temporary files (dumps, the archive itself)

   The script makes sure that you always have the newest Dropbox-uploader script.

You may easily add this script to your crontab, and just forget about it
Reply
#2
DBUSER="root" #MySQL user that can dump all databases
DBPASSWORD="" #MySQL password

And make sure the scripts are only readable by the owner, not group!! (chmod 700)
Reply
#3
Works great, thanks Smile
Reply
#4
Hi, I really need a script for Dropbox (or other free services) to backup database and file.

This script is safe?

Thanks
Reply
#5
Thanks work's perfect .

Previously i had been using similar ones but they never had error handling, this one is professional with dropboxwebadmin account .

Thanks
Reply
#6
thanking you saved my life and this working perfect Smile
Reply
#7
Thank you all for kind words.
Reply
#8
UPDATED

thank you all
Reply
#9
Updated Script on request and thanks again
Reply
#10
Is it sure? The creator (or other users) can see my database user and password?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)