- Impact
- 18
I have this at the moment:
which should do it every 1 minute right?
However, it dosen't seem to work. Where is the backup file, named phpbb_backup-*date*, going?
Also, is it possible to make another cron job to delete and phpbb_backup-*date*.sql files that are older than 2 weeks old?
Also, sorry, what does "--add-drop-table" mean? Will that copy EVERYTHING. So, if the whole db goes down, will the tables be copied (like "CREATE TABLE ** (blah...." and stuff? Also, will ALL the data be in there?)
Thanks a lot
Tom
Code:
* * * * * mysqldump --add-drop-table -u ***** -p**** database_name > phpbb_backup-$(date +%m%d%Y).sql
which should do it every 1 minute right?
However, it dosen't seem to work. Where is the backup file, named phpbb_backup-*date*, going?
Also, is it possible to make another cron job to delete and phpbb_backup-*date*.sql files that are older than 2 weeks old?
Also, sorry, what does "--add-drop-table" mean? Will that copy EVERYTHING. So, if the whole db goes down, will the tables be copied (like "CREATE TABLE ** (blah...." and stuff? Also, will ALL the data be in there?)
Thanks a lot
Tom














