--- In [EMAIL PROTECTED], Bennett Todd [EMAIL PROTECTED] wrote:
If this isn't possible, perhaps because you want to have backup-dir
on the src side, then I think your only alternative may be to
perform your single-file copy as a recursive copy, using --exclude
and --include arguments to narrow
Cc-ing this back to the rsync list. Vikas added some more info in
an off-list mail to me, that straightened things out in my mind,
pointing out that if the dst file is specified on the cmdline as
a simple basename, because you've cd-ed to the target dir and are
doing a pull, then rsync does just
When I do
rsync -av --backup --backup-dir=/dir1/dir2/Backup \
/dir1/dir2/dir3 machine:/dir1/dir2/dir3
I get /dir1/dir2/Backup/dir3/...
/Backup/dir3/dir4/...
i.e. the tree under 'dir3' (my source tree) gets created
under .../Backup. This is fine.
But when I do the same thing
--- In [EMAIL PROTECTED], va_public [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
When I do
rsync -av --backup --backup-dir=/dir1/dir2/Backup \
/dir1/dir2/dir3 machine:/dir1/dir2/dir3
Sorry, yes, I did give the trailing '/' after my source dir name
i.e. /dir1/dir2/dir3/
--
To unsubscribe