![]() |
#16 | ||
Member
![]() Posts: 19
Karma: 64
Join Date: May 2010
Device: Dell Axim X50v, JetBook Lite
|
Quote:
Quote:
|
||
![]() |
![]() |
![]() |
#17 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#18 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,345
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Note that if you are on windows, there are some issues with using calibre in batch files. You need to use the START command. There was a thread around a month ago that went into detail. I always start calibre with the calibre-debug command and don't have problems, but your mileage might vary. |
|
![]() |
![]() |
![]() |
#19 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
If you put "start" in front, it runs calibre and the next line in the batch, but it runs the next line immediately, not after Calibre exits. I believe this will work if you install powershell: Code:
powershell -command - < batchfile.bat |
|
![]() |
![]() |
![]() |
#20 | |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 194
Karma: 177180
Join Date: Jun 2009
Location: Mesa, AZ
Device: Sony PRS 505
|
Quote:
![]() ![]() |
|
![]() |
![]() |
Advert | |
|
![]() |
#21 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() Posts: 75
Karma: 600
Join Date: Jul 2008
Location: Depends Upon the Season.....
Device: Cybook, Sony & ipad
|
Starson17, would you mind sharing how you do this in Task Scheduler?
Thanks... |
![]() |
![]() |
![]() |
#22 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,345
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
|
|
![]() |
![]() |
![]() |
#23 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,345
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#24 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
|
![]() |
![]() |
![]() |
#25 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() Posts: 75
Karma: 600
Join Date: Jul 2008
Location: Depends Upon the Season.....
Device: Cybook, Sony & ipad
|
Quote:
I actually understand how to make the batch file (major step for a non-techie ![]() But I am not certain of the syntax for copying the library. I will google using task manager and see if I find examples. I am looking for way to ensure the library stays backed up since I have had to restore it twice. I am beginning to suspect the issue is the interaction with the reader - since both times this happened I plugged in the Sony 505 to upload books. At least now I understand how to save all the metabooks (with covers)! |
|
![]() |
![]() |
![]() |
#26 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
A basic copied Library type of backup has two parts - the books and the metadata.db file. Copying all of the books, each time I exited Calibre, would be impossible for me. It would take far too long, and I seldom exit it. I think your first question to answer is: "When do you want your library backed up?" If your computer runs 24/7, it's easy - do it at night. If not, perhaps you just want to manually run the batch file, not automatically. Or maybe you prefer when you turn on/off the computer? You could use a system that copies the ebooks manually (you manually choose to run a backup by starting a batch file), but always backs up metadata.db when you exit. You could choose to run the backup automatically at night, and only leave the computer on at night when you want a backup -telling the Scheduled Task to not run when the computer is off. What do you think would work for you? |
|
![]() |
![]() |
![]() |
#27 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
|
If you are running Windows then a very simple form of backup is to run a DOS command of the form:
XCOPY /D /S /Y SourceFolder TargetFolder This will do a copy (including sub-folders), and the /D option tells it to only copy files whose date has changed. More sophisticated backup solutions will do differential backups and give you the option to return to a nominated point in time. The backup utility that comes as part of Windows will do for most people. |
![]() |
![]() |
![]() |
#28 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() Posts: 75
Karma: 600
Join Date: Jul 2008
Location: Depends Upon the Season.....
Device: Cybook, Sony & ipad
|
Thank you! I typically leave my computer on 24/7 so at night would be the best. I really liked your idea of having 6 files on hand and then deleting the old. What saved me during this last disaster was the ability to use restore in windows. I actually have a backup system in place but it failed. My network back up was full and the system administrator did not catch it (located off site). So, I am going to add my own backup to be safe.
I don't think I need the entire library copied every night - I agree that would be too much. I currently have about 1,000 books. But, the file is not really that big - around 850 MB 1. A complete back up (metadata, covers) once a week. I think the saved disk technique (similar to dwanthny) would be ideal but I don't believe that can automated. So, I will do that manually. 1. In a perfect world (sigh) a back up would occur of the NEW books I added that day (with covers) along with a daily metadata. Would this work if I needed to restore the library? My goal would be to be able to restore everything completely (including covers and metadata). Or if I just copy the metadata nightly, what happens if I copy over the metadata and one of the books is not in the library file? |
![]() |
![]() |
![]() |
#29 | |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,890
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Quote:
|
|
![]() |
![]() |
![]() |
#30 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
My preference is to run PureSync, a folder synchronization program via a batch file. It operates in one-way mirror mode, compares my backup copy of the Library to my master copy (located on another drive in a networked computer), copies over any new books, deletes any old books that were deleted from the master, and copies over and replaces the metadata.db file (provided it has changed). There are lots of folder synchronization programs around. Another alternative is to run XCOPY. It can be set to copy only files that have not been backed up and then it sets the archive bit, but that method doesn't delete old books deleted from the master, nor does it work if another backup program is being used. You can always just copy the entire Library folder every now and then. As to the multiple metadata.db files, I use something simple like this: c: cd \path\to\Calibre\Library if exist metadata.db.6 del metadata.db.6 if exist metadata.db.5 ren metadata.db.5 metadata.db.6 if exist metadata.db.4 ren metadata.db.4 metadata.db.5 if exist metadata.db.3 ren metadata.db.3 metadata.db.4 if exist metadata.db.2 ren metadata.db.2 metadata.db.3 if exist metadata.db.1 ren metadata.db.1 metadata.db.2 if exist metadata.db copy metadata.db metadata.db.1 You can put it in a batch file, run it nightly with a Windows scheduled task, or before your backup. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Corrupted files | speakingtohe | Calibre | 2 | 08-20-2010 04:31 PM |
Corrupted Metadata | Marcy | Calibre | 31 | 07-27-2010 10:50 AM |
Corrupted File? | StealthyScribe | Kobo Reader | 8 | 07-21-2010 10:09 PM |
PRS-600 Index corrupted? | CapnKirk | Sony Reader | 0 | 07-10-2010 06:56 PM |
Library corrupted | rozie123 | Sony Reader | 1 | 05-26-2009 07:02 AM |