Over the years, many have asked and struggled with backing up remote Windows shares with shadow copies. Shadow copies are useful since they allow both the backup to be 'consistent' and allow for reading files that are otherwise 'busy' and unreadable when part of active Windows partitions.
Various solutions (including one I proposed almost a decade ago) use additional scripts and hacks to create the shadow copy. Such solutions are kludgy and require the maintenance of separate scripts either on the server or client. I have written a combination of perl and bash code that can be stored in the host.pl configuration file that does everything you need to automagically create shadow copies for each share (where possible) with minimal to no special configuration in host.pl and nothing to configure on the Windows client (other than having cygwin+ssh+rsync and an accessible account on your Windows client). The only thing you need to do is to set up the hash Conf{ClientShareName2Path} to map share names to their (unshadowed) Windows paths. The attached script will then set up and interpolate the appropriate shadow paths. It should just work... Just cut-and-paste the attachment into your host.pl code for Windows clients. Note: I included a fair amount of debugging & error messages in case any shadows or links fail to get created or unwound.
BackupPCShadowConfig.pl
Description: Binary data
_______________________________________________ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List: https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki: http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/