different behavior for --backup-dir relative/path vs --backup-dir /full/path

jw schultz jw at pegasys.ws
Fri Jan 30 08:48:06 GMT 2004

On Thu, Jan 29, 2004 at 11:40:50AM -0800, duane at blur.com wrote:
> Why does using --delete -b --backup-dir relative/path
> puts the deleted files in the target folder, 
> while using the full path works as expected?

What you describe is exactly as expected.

Like --link-dest and --compare-dest, relative paths for
--backup-dir are relative to the destination directory.

Why this is so becomes obvious if you imagine doing a push
to a remote server.

	J.W. Schultz            Pegasystems Technologies
	email address:		jw at pegasys.ws

		Remember Cernan and Schmitt

More information about the rsync mailing list