Last active
December 3, 2015 04:58
-
-
Save zourite/d6dc73d1d49ccca2dbd1 to your computer and use it in GitHub Desktop.
Backup data to Dropbox
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd ~ && wget -O - "https://www.dropbox.com/download?plat=lnx.x86_64" | tar xzf - | |
($HOME/.dropbox-dist/dropboxd &)& #Lancer Dropbox en arrière plan | |
# Editer le fichier cron crontab -e | |
30 02 * * * mysqldump -u user -ppassword --all-databases | gzip > ~/Dropbox/site.sql.gz | |
00 02 * * * tar -zcf ~/Dropbox/site-content.tgz /var/www/prod/blog/wp-content |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment