Created
June 7, 2015 08:47
-
-
Save nblumoe/a3dfaa9e140b67d8673e to your computer and use it in GitHub Desktop.
ownCloud backup script
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
#!/bin/bash | |
# database | |
mysqldump --lock-tables -h localhost -u owncloud -p owncloud > owncloud-sqlbkp_`date +"%Y%m%d"`.bak | |
# directory | |
rsync -Aax /var/www/owncloud/ owncloud-dirbkp_`date +"%Y%m%d"`/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment