Better backups

This commit is contained in:
nemunaire 2014-01-21 03:56:17 +01:00
parent 15a0c26b91
commit d26e7826bd

View File

@ -15,12 +15,13 @@ fi
if mount | grep "$TO_BCKP" > /dev/null
then
mysqldump -u backup --password="Riuy6of sae^W0Sh" fic2014 > "$TO_BCKP"/db-`date +%Y%m%d-%H%M`.sql
mysqldump -u backup --password="Riuy6of sae^W0Sh" fic2014 > "$TO_BCKP"/db/`date +%Y%m%d-%H%M`.sql
rsync -avL true_files/ "$TO_BCKP"
rsync -avL logs/ "$TO_BCKP"
rsync -avL misc/ "$TO_BCKP"
rsync -avL misc "$TO_BCKP"
rsync -avL .git "$TO_BCKP"
rsync -avL logs "$TO_BCKP"
rsync -avL /var/log "$TO_BCKP"
rsync -avL true_files "$TO_BCKP"
else
echo No volume mount on $TO_BCKP