I wrote: >> Pre-flight script: >> >> umount /var/lib/bacula/volumes >> mount --bind /media/usbdisk/volumes /var/lib/bacula/volumes >> >> Post-flight script: >> >> umount /var/lib/bacula/volumes >> rsync -a /media/usbdisk/volumes/ /on-site/bacula/volumes/ >> mount --bind /on-site/bacula/volumes /var/lib/bacula/volumes
On Thu, 8 Mar 2007, Nick Withers wrote: > Windows does allow for drives to be mounted on directories, I assume this means you can't mount some sub-directory of a drive, as I suggested. Note that in the above scheme, /var/lib/bacula/volumes is empty until either the on-site or off-site storage is "bind" mounted on it. > but they have to be empty - which unfortunately somewhat destroys the > possibility of tricking Bacula in a similar way to this (I'd quite > happily have the removable drive(s) mounted on both "G:" (for > instance) and "D:\Backups", then remove the "D:\Backups" mount to > perform a copy (assuming there's a scriptable way of doing this in > Windows), but the empty directory thing kills it. Perhaps you could do it with some simple renaming. I'm not familiar with windows/dos so don't know the right commands but the scripts would be like: Pre-flight Rename D:\Backups to D:\On_site_Backups Create directory D:\Backups Mount G: on D:\Backups Post-flight Dismount G: from D:\Backups Remove directory D:\Backups Rename D:\On_site_Backups to D:\Backups One-way-Sync (or copy) G:\Volumes\* to D:\Backups\Volumes\ In the last step (sync or copy) I assumed the storage-daemon config contained: Archive Device = D:\Backups\Volumes Your post-flight script should also contain commands to dump your catalog to G: . Kel ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users