ngoctuan / my-films

Automatically exported from code.google.com/p/my-films
0 stars 0 forks source link

Add auto-cleanup feature for backup files. #151

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Please add some kind of auto cleanup for the Central MF configuration and Db 
backup files.

I would like to see all files deleted other that say the last 5 created so 
there is some kind of backup for emergency situations. 

Thanks

Original issue reported on code.google.com by Ted98...@gmail.com on 2 Aug 2012 at 10:31

GoogleCodeExporter commented 9 years ago

Original comment by Guzz...@googlemail.com on 27 Oct 2012 at 9:52

GoogleCodeExporter commented 9 years ago

Original comment by Guzz...@googlemail.com on 30 Oct 2012 at 3:33

GoogleCodeExporter commented 9 years ago
I'd suggest to define some sort of cleanup job, that could e.g. be started 
automatically each time MyFilms is started.
So we need to define, what exactly should be done in this job, e.g. "cleanup DB 
file backups", "cleanup grabber script backups", etc. - and, if required, how 
many old files should be kept. 
Should this be optionally, so users not willing to delete the backups can 
disable it?

Original comment by Guzz...@googlemail.com on 25 Nov 2012 at 2:10

GoogleCodeExporter commented 9 years ago
Yes started automatically each time MyFilms is started seems like the way it 
should work.
i think cleaning up DB file backups should be enough as they can be large 
files. Keeping 5 backups seems like enough to be safe to me.

I don't know about cleaning up grabber script backups, would folks loose there 
custom scripts? I would let the old ones be deleted as i don't have any custom 
scripts.

This should this be optionally, with the option being to turn it off as a lot 
of people probably don't know that they have many backups on there system now, 
and i would think most people would want to have some deleted as the files can 
be fairly  large.

Original comment by Ted98...@gmail.com on 26 Nov 2012 at 12:15