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

Re: Synchronize file on HD and USB stick



> >-u will make sure that newer overwrites older, not vice
> >versa (warning- make sure clocks are right!- I don't do this
> >till I'm sure ntpd is running on the machines).
> >
> >and by source-address and destination-address you of course
> >mean path-to-file-or-directory in this context (though of
> >course one of the other can also be prefixed user@host:
> >which implies ssh transport).
> >
> >rsync won't sync deletions though- unison's probably better
> >if you want that.


> rsync does sync deletions.
> 
> bruno@frank:~$ rsync --help|grep delete
> --del an alias for --delete-during
> --delete delete files that don't exist on the sending side
> --delete-before receiver deletes before transfer (default)
> --delete-during receiver deletes during transfer, not before
> --delete-after receiver deletes after transfer, not before
> --delete-excluded also delete excluded files on the receiving side
> --ignore-errors delete even if there are I/O errors
> --max-delete=NUM don't delete more than NUM files

Indeed, but it's not automatic.  I.e. you have to know that
what you are copying *from* is more authoritative than what
you're copying *to*.   Unison actually tracks deletions on
both sides.



Reply to: