4 Apr
2009
4 Apr
'09
13:10
Per Jessen pecked at the keyboard and wrote:
Randall R Schulz wrote:
The subject pretty much says it. I'd like to run rsync and get the effect that the --parents option has with cp. Specifically, that means that all leading directory components in the source arguments are replicated beneath the destination directory.
I think the '--relative' option does that.
rsync -avR /home/per/Documents <somedir>
produces
<somedir>/home/per/Documents
/Per
And pay attention to the trailing / as it has significance. man rsync gives more detail. -- Ken Schneider SuSe since Version 5.2, June 1998 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org