Bacula-users

Re: [Bacula-users] Restore only the contents of the last job

2009-09-18 00:27:10
Subject: Re: [Bacula-users] Restore only the contents of the last job
From: Jose Perez <jvoorhees1 AT gmail DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Thu, 17 Sep 2009 23:22:46 -0500
Thanks anyway to everybody. I just found the not using the 'select' option at the restore command did the trick. However it would be nice that this 'select' option be more documented that just "use the tree selection method".

Bye :)

On Wed, Sep 16, 2009 at 9:04 PM, Jose Perez <jvoorhees1 AT gmail DOT com> wrote:
Hi all:

I'm running Bacula 3.0.2 with a policy of 1 Full Backup per month and the rest of days Incremental backups. I'm pretending to offer some kind of archive acces to my end users like this:

1. Trough Samba publish the contents of user backups
2. Create a directory named with the current date that contains a backup of that day
3. Restore the backups of everyday on the directory corresponding with its date

This would create something like this:

/var/backups/mailserver/09-01-2009 (this contains a full backup. It should use around 100 MB)
/var/backups/mailserver/09-02-2009 (this contains only the files of the incremental backup of that date. It should use around 5MB)
/var/backups/mailserver/09-03-2009 (this contains only the files of the incremental backup of that date. It should use around 4MB)
/var/backups/mailserver/09-04-2009 (this contains only the files of the incremental backup of that date. It should use around 6MB)

I tought that I could just run restore jobs choosing a specific Job ID like this:

* restore jobid=45 storage=FileDrive client=mailserver restore-client=samba-server regexwhere=!^!/var/backups/mailserver/DATE/! select all yes

... where:

- 45 is the Job ID of an Incremental Backup (except the 1st day of a month that is a Full Backup)
- samba-server is the target host of the restore backups (and the one that publishes the restores backups via Samba)

OK, this works fine. I wrote a script that automatizes the procedure of restoring backups of everyday but I noted that Bacula is always choosing the last Full Backup (that is not what I want) and the specific incremental backup (this is right!).

I would like that the procedure of restore an Incremental Backup not includes the last backup because this would not allow me to have published the files that changed everyday each of them inside its own directory.

Is there a way to extract just the contents of an incremental backup but not the last full backup? I would want to restore all the directories structure necessary but only the files being restored from the incremental backup.

I hope someone was able to understand me (Sorry, my english isn't good) and point me to a possible solution because I was reading a lot the documentation and searching around Google with no success.


Thanks

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
<Prev in Thread] Current Thread [Next in Thread>