fracte / keepnote

Automatically exported from code.google.com/p/keepnote
0 stars 0 forks source link

Automatic backup #419

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The backup to tar.gz is a great idea, but it would be nice if this could be set 
to run automatically at certain intervals (program exit; scheduled; etc).

Original issue reported on code.google.com by sprocke...@gmail.com on 2 Mar 2011 at 5:53

GoogleCodeExporter commented 8 years ago
Good idea.

Original comment by matt.rasmus@gmail.com on 2 Mar 2011 at 11:13

GoogleCodeExporter commented 8 years ago
The best solution to backup scheduling would be to accept a command line option 
like `--export /path/to/file`.  Then people could use their system scheduler 
(like cron or whatever windows uses) to dump backups.

This has benefits:

* Gives you less code to maintain

* Lets people make their backup schedule+logic as simple or as complex as they 
want without involving you.  If you implement this in the program itself, 
you'll get a bunch more bugs about people who want to do complicated things 
like exporting every other day or only if the backup file isn't newer or to 
keep the latest 5 backups and then start deleting them, etc.  That's all logic 
they could write themselves in a script.

Original comment by clouserw on 6 Jun 2011 at 3:13

GoogleCodeExporter commented 8 years ago
Well, Keepnote only does "tar zcf backup-DATE path/to/file" so one could just 
do that in their backup scripts.

Also many backup systems do incremental backups and keepnote's file structure 
should play nicely with them already.

I probably would not implement this automatic backup in keepnote.  Existing 
backup software is probably the safer and more flexible way to go.

Original comment by matt.rasmus@gmail.com on 13 Jun 2011 at 1:44