rsync syntax for local copy
i'm trying to use rsync to copy files locally as a nightly backup. i have successfully used rsync to copy files between a host and a remote system, but when i try this local operation i do not get the results i expect.
reading the man pages has not helped. again, most of the examples are for copying between a host and a remote system.
here is my current syntax:
rsync -aq /drawings/2005 /archives/2005
i'm trying to copy cad drawings from one directory to another on the same machine. according to the man pages you can use rsync in this fashion by simply specifying a source and destination without any colon separators.
what i'm getting is an additional 2005 folder each time. instead of syncing the files between /drawings/2005 and /archives/2005 i'm getting all files copied to /archives/2005/2005
if i run the operation again the next night, all files are copied again, this time to /archives/2005/2005/2005
what am i missing? i tried putting a trailing slash in my syntax:
rsync -aq /drawings/2005 /archives/2005/
but that didn't help.
thanks in advance.