[CentOS] Backup Question
    Shawn Everett 
    shawn at tandac.com
       
    Sun Mar 16 22:57:52 UTC 2008
    
    
  
> 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
    
    
More information about the CentOS
mailing list