Better backups
This commit is contained in:
parent
15a0c26b91
commit
d26e7826bd
@ -15,12 +15,13 @@ fi
|
|||||||
if mount | grep "$TO_BCKP" > /dev/null
|
if mount | grep "$TO_BCKP" > /dev/null
|
||||||
then
|
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 misc "$TO_BCKP"
|
||||||
rsync -avL logs/ "$TO_BCKP"
|
|
||||||
rsync -avL misc/ "$TO_BCKP"
|
|
||||||
rsync -avL .git "$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
|
else
|
||||||
echo No volume mount on $TO_BCKP
|
echo No volume mount on $TO_BCKP
|
||||||
|
Loading…
Reference in New Issue
Block a user