eleybourn / Book-Catalogue

A book cataloging tool for Android phones.
https://github.com/eleybourn/Book-Catalogue/wiki
GNU General Public License v3.0
385 stars 186 forks source link

auto export or backup #248

Open vovkav opened 13 years ago

vovkav commented 13 years ago

There should be an auto export or auto backup feature with configurable time (regular or on db modification)

eleybourn commented 13 years ago

Agreed on this. At the moment it will prompt to export every 5 times you close the application. Given that the db backup is so quick, we should do this on every close.

This links to the destructive restore feature we need to implement, which will completely overwrite the database with a backup. Rather than the undestructive import function.

vovkav commented 13 years ago

That "5 times" should be configurable by user both as:

Vinikia commented 13 years ago

And different backups should be numbered differently and with a BOOK indication in the name. Now backups always override previous backups (which is almost always not what you want when you find an error and want to restore the data).

The BOOK indication is to differentiate backups of book catalogue and dvd catalogue.

eleybourn commented 13 years ago

Our concern is filling up a users sdcard with old backups. It currently keeps the last 2 backups.

As a non-destructive restore process, exports/imports should be the correct way of restoring to a previous point. The database backups are a "worst case" restore.

I have changed the backup name to include a bookCatalogue title in the next version.

Vinikia commented 13 years ago

The name change certainly helps a lot if you use both the BookCatalogue and the DVDCatalogue program. Thanks for that.

But I would argue to , at least , name the export files with date and time in the name. And maybe only keep the last 5 of them or so.

Problem is, that if you make a mistake some where, which you don't notice immediately, an automatic backup/export may have overwritten your good data.

Keeping up to 5 versions gives you the option of at least search previous versions of the export files to correct the mistake.

eleybourn commented 12 years ago

Agreed, We'll save the last 5 backups and name them with the time and date.

Vinikia commented 12 years ago

Please change the name of the export file also (not just the name of the exported database). I'm not sure we can put back a backuped .db file , can we ?

Also, please keep up to 5 versions of the exportBook.csv file too ... if we cannot put back the .db file, at least we can choose from one of 5 exported .csv files.

Grunthos commented 11 years ago

4.1.6 beta now stores 5 export files. I am heading in the direction of restoring a .db file, no ETA as yet.