Suggestion! Automatically backup!

Malik Umer Farooq Posted in Professional Services 8 years ago

Hay pleas support for automatically backup system backup user data and database automatically created after one month and move to given folder.
Thanks

Replies
pk Malik Umer Farooq Replied 8 years ago

Ok thanks for your reply
My hosting provide backup option but manualy backup create with database and download link send user to with email .

Indonesian Arsalan Shah Replied 8 years ago

+1 for the below solution!

German Michael Zülsdorff Replied 8 years ago

I' recommend to explore the available backup options of your hosting provider, first.

Alternatively you may run the mysqldump command by cron at desired intervals.
There's an excellent tutorial on this at http://alvinalexander.com/mysql/mysql-database-backup-dump-shell-script-crontab

For archiving the Ossn data directory you can add 2 lines like

DATADIRBAK=datadirbackup.`date +"%Y%m%d"`.tar
tar cf ${DATADIRBAK} PATH_TO_YOUR_DATA_DIR

at the end.