Re: Backup Question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



> 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@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux