Hello,

Josh Valmas wrote:

First I would like to apologize for this post if the question has already been asked. I did some searching and couldnt find anything related to what I was trying to do. So here goes:

No need to apologize - my imression is that on this list, almost everybody with a real problem knows how to read the manual and search the list archives :-)

Currently I use bacula to backup-to-disk on a nightly basis a number of servers. It does a full backup of everything every sunday night, and then a differential backup everynight during the week. But now I want to dust of our tape drives for the extra level of protection, or if nothing else, for the pretty blinking lights that they will offer.

The last item is especially important, of course :-)

Bacula does auto file naming for me, so my retention period (week-diff/month-
full) will keep backup files around for ahwhile on the disk, and then recycle them the next time through. I want to grab the most recent volumes that bacula records to, and plop them on a disk. But because it could be server-Full-001, or server-Full-001, etc., I don't know how to tell the backup-to-tape fileset to grab the most recent volume, and leave the rest alone because I have no desire to backup EVERYTHING to tape, just the previous nights backup jobs.

Ok, here we go.
One question first, though - why don't you let bacula write to tape directly? You could make up a schedule that only saves full backups to tape and the others to disk, for example.

Using disk spooling, the network throughput and tape speed don't matter, compared to something like rmt and tar.

Now, what I think you really need is job migration, like managing the volumes and jobs a way that always the right data is on tape and everything else kept on disk. This is something that bacula can't do now.

The other solution would be - and I think this is what you try to implement - to use bacula to write the newest disk volume files to tape.

I'd do this using a script to select the files to backup. In the manual, section "Configuring the Director", subsection "The Fileset Resource" you find the full explanation of the file list. You can use the output of any program as the list of files to store by using the pipe symbol. Some script or single command line similar to the following might do what you want:

elf:/srv/nfsexport/bacula/bacula-1.36.3 # find `pwd` -name '*.c' -ctime -32
/srv/nfsexport/bacula/bacula-1.36.3/src/cats/sql_update.c
/srv/nfsexport/bacula/bacula-1.36.3/src/check_bacula/check_bacula.c
/srv/nfsexport/bacula/bacula-1.36.3/src/check_bacula/bnet.c
/srv/nfsexport/bacula/bacula-1.36.3/src/check_bacula/authenticate.c

Of course, you should give your volume file directory to find insted of the current directory, and ctime should be something like -1 in your case, but in my example you wouldn't see anything then :-)

Arno

Thanks in advance for any help/ideas you guys have to offer.
Josh V.



-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

--
IT-Service Lehmann                    [EMAIL PROTECTED]
Arno Lehmann                  http://www.its-lehmann.de


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to