Using Bazaar as the backend to an incremental backup system

Asked by daniel knox

Currently we rsync files from our file servers across our network and to remote locations to keep backups. The backups are incremental in that it's done once a day, and the directories go back too 3 weeks. These backups are mainly a variety of documents produced by students at our school (pdfs, .odps etc.)

What I am interested in; is to enhance this current system to allow users to use a web interface (which we will produce) to recover files & directories which, have changed at any time. I.e moving away from snapshots of the directories once a day, too per file revision focused. Using a system like Bazaar, it would likely be easier for me to write a custom interface for our users as revision management is what Bazaar does!

I can make rsync operate as soon as a file changes on one of our local servers, and update the current file on a backup server.

How would I go about then bazaar automatically adding / removing files & merging these changes into it's tree on the backup server?

I still wish to use rsync for the initial step due to it's speed with file incrementation, the checks we do to make sure the file did indeed transfer (we also use compression to speed up transfers to remote sites) and the ports we already have in place etc. Clients are accessing our system from school machines, home machines etc. Hence why a web interface will be used. This also means the files to recover will; either use rsync to restore files & folders directly to their home area on a file sever. Or will provide them a zip containing the requested files. This would likely work by first getting bazaar to pull out the requested data from it's tree, locally on the backup server. And then the transmission of these files using the required method will occur.

Bazaar's role would literally be keeping the different incremental copies of a file. So that I can use bazaar's inbuilt commands to find previous revisions of specific files & folders, retrieve a file even if a user deleted it and to pull a version of a file / folder from the tree ready for transmission or download back to the user.

Any help would be greatly appreciated.

Many thanks,

Daniel Knox

Question information

Language:
English Edit question
Status:
Answered
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Marius Kruger (amanica) said :
#1

Have you ever heard of rdiff-backup ( http://www.nongnu.org/rdiff-backup/ )
Although I love bzr, I don't think it is that good for backups because
it will force you to keep all history, where as rdiff-backup
will keep a defined number of revisions only.

Can you help with this problem?

Provide an answer of your own, or ask daniel knox for more information if necessary.

To post a message you must log in.