Created
July 17, 2013 13:37
-
-
Save amalc/6020616 to your computer and use it in GitHub Desktop.
Joomla backup
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 ~ | |
sudo tar cfz joomlabackup.tar.gz /var/www/cms/2 | |
mysqldump -u cms-1 -p$CMSPW cms-1 > cms-1.out | |
tar cfz cms-1-combined-`date +'%Y%m%d%H%M'`.tar.gz joomlabackup.tar.gz cms-1.out | |
rm -f joomlabackup.tar.gz cms-1.out | |
chmod a-w ~/cms-1-combined-`date +'%Y%m%d%H%M'`.tar.gz | |
# FILES=~/cms-1-combined-*.tar.gz | |
#echo ${FILES[@]} | |
# echo $FILES |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment