Change destination root?
matt at mattmccutchen.net
Sun Dec 16 18:32:40 GMT 2007
On Sun, 2007-12-16 at 07:53 -0800, Max Kipness wrote:
> I've got a source directory of /data with several subdirectories such as
> subdir1/ subdir2/ subdir3/ , etc. I'd like to rsync these to a different
> host under directory /backup, so that I have paths /backup/subdir1,
> /backup/subdir2, etc. I also need to be able to use the option --files-from.
> So, a source dir of /data on host1, with a --files-from file containing:
> rsyncing to host2 and ending up with the file structure:
> Basically, I'd like to substitute /var for /backup. Is this possible?
This should just be a matter of changing the destination in your rsync
command line from "/backup" to "/var". The original command (assuming a
push) would look like:
rsync [OPTION...] -r --files-from=THE-FF-LIST /data/ host2:/backup/
The new command would look like:
rsync [OPTION...] -r --files-from=THE-FF-LIST /data/ host2:/var/
Am I missing something?
More information about the rsync