[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: rsync --delete broken?



Steven Haigh wrote:
> Hi all,
>
> I've been trying to figure this out for a while, but haven't had much
> success.
>
> I'm wanting to backup a few directories on a server to another machine
> and I'm using:
>
> rsync -vaz --delete user host:/path /path

Well, maybe you're aware of this, but it should be:

rsync -vaz --delete host:/path1/path2 /path1/

When you leave the trailing slash off of the src directory, that
subdirectory is included in the rsync'ing - if you know what I mean.

--
Drew


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]