So if I am understanding correctly, you basically manually build your
own rsync command (including all the rsync arguments and the rsync
source) and then store that as RsyncClientPath.

Hi Craig - nothing nearly so complicated. It’s just a wrapper script that 
re-execs the real rsync with some modified arguments. My desire was to have 
BackupPC not “know” that it’s running off of snapshots. So, for example if 
you’re backing up /export/home/1 and you’ve got a snapshot mounted at 
/snapshots/home/1, then the wrapper script re-execs rsync with /snapshot/home/1 
when it sees an argument of /export/home/1. Since the rsync is relative to that 
path, BackuPC doesn’t realize that the files are coming from a different 
directory. So when I do restores, they properly go to what it thinks the share 
name is, i.e. /export/home/1.



I can see how this works but it's not pretty.
Would you be able to share the code snippet you use for v3?

I have three scripts, but they’re ugly. Snap_share makes the snapshot, 
unsnap_share removes it and then snap_rsync “translates” the directory and 
re-execs rsync. They’re not commented, but I can put them on GitHub on Monday 
when get back to work.


I fear though that it may be even uglier in v4, given the changes to
how rsync is called.


Maybe, though since this is transparent to BackupPC, I don’t think it would be 
very difficult to adapt at all.

Ultimately, I think the right way would be to add something like the hash that I
mentioned below, but that would be up to Craig to evaluate and
consider.

I’ll send you a link on Monday.
---
Markus A. Iturriaga Woelfel, IT Administrator
Min H. Kao Department of Electrical Engineering and Computer Science
University of Tennessee
Min H. Kao Building, Suite 424 / 1520 Middle Drive
Knoxville, TN 37996-2250
mitur...@utk.edu<mailto:mitur...@utk.edu> / (865) 974-3837
http://twitter.com/UTKEECSIT

_______________________________________________
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/

Reply via email to