View Single Post
Old 02-08-2011, 01:26 AM   #3
Debby
Connoisseur
Debby will become famous soon enoughDebby will become famous soon enoughDebby will become famous soon enoughDebby will become famous soon enoughDebby will become famous soon enoughDebby will become famous soon enough
 
Debby's Avatar
 
Posts: 75
Karma: 600
Join Date: Jul 2008
Location: Depends Upon the Season.....
Device: Cybook, Sony & ipad
With help from others I created batch files that automatically back up my meta data every night.

See thread https://www.mobileread.com/forums/showthread.php?t=83311&highlight=Debby&page=3


Automatically Back up Library and Meta data

Create 2 .bat files and run them in Windows Task Scheduler.


1. Robocopy – you probably already have it - http://en.wikipedia.org/wiki/Robocopy

2. Install Notepad++ (it’s free) to create .bat files - http://www.filehippo.com/download_notepad/

Highlight items in RED should be the location of your Files

Blue highlight is a NEW directory where you will save your backup – you only need quotes around file name if there is a space in your name. If there is not, then do not use them.

To copy Metadata: copy this into Notepad++ and save as .bat file

@echo off
REM metafile copy documents
Z:
cd\My Documents\Calibrelibrary\Familybks
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

robocopy "Z:\My Documents\Calibrelibrary\Familybks" F:\CalibreBU /s /purge /xo /r:1 /w:1

To copy entire library:
@echo off
REM copy documents
robocopy "Z:\My Documents\Calibrelibrary\Familybks" "Z:\My Documents\Calibre Saved Libraries\BatchFile BU" /s /purge /xo /r:1 /w:1
Finish

Place these files in a directory called Batch Files and go to Windows Scheduler and add them. Under Actions: Start a Program C:\Batch Files\whatever your name is. You can select how often you want it to run. I do mine daily at 2:00 am. That should be it!

Good Luck.
Debby is offline   Reply With Quote