[CentOS] Backup Question

Shawn Everett shawn at tandac.com
Sun Mar 16 23:09:42 UTC 2008


After a moment or two of digging:
http://www.bacula.org/en/dev-manual/Tips_Suggestions.html#19274

Run Before Job = ShellScriptShownBelow

Shawn


On Sunday 16 March 2008, Shawn Everett wrote:
> > I can't install cygwin or a daemon for that matter on the Windows
> > Server, but I could execute a scheduled job to run a Widows port of
> > rsync on the file server which I am not opposed to at all. My only
> > problem with that is how do I then trigger the Bacula server to begin
> > the dump to tape once the sync is complete?
>
> Use a batch file and schedule that. :)
>
> @echo off
> del /place/you/sync/to/done.txt
> robocopy/rsync files (whatever)
> echo > /place/you/sync/to/done.txt
>
> Schedule the batch file for say 11:00pm
>
> At some reasonable time schedule a bash script in Linux via cron:
>
> #!/bin/bash
> while test ! -e done.txt; do
> 	sleep 1m
> done
> tar -czf /dev/tape /sync/path
>
> Simple. :)  The above script will wait until done.txt exists and then
> backs up the repository.  If you're really lucky Bacula has a post
> backup script that can be run.  I'm rather traditional and use tar. :)
>
> Shawn
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos





More information about the CentOS mailing list