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

Re: rsync deletion target files



On 6/3/16, Rodolfo Medina <rodolfo.medina@gmail.com> wrote:
> Hi all Debian users.
>
> rsync's `--delete' option works fine when the target directory is the same
> as
> the sender one.  In the following example, I'm sending all the content of
> /home/rodolfo from machine1 to /home/rodolfo in machine2:
>
>  $ rsync --dry-run -vrtul --delete --exclude='/.*' .
> 192.168.0.2:/home/rodolfo
>
> , and --delete works perfectly.  Instead, in this other example:
>
>  $ rsync --dry-run -vrt --delete --modify-window=1 Mail News howto ...
> /mnt/pendrive/rodolfo
>
> I'm copying various files from different places of my home directory to a
> directory named `rodolfo' on the pendrive.  I want that all the files that
> are
> not listed before `/mnt/pendrive' in the above command were deleted in the
> destination, but this does not happen.  In rsync `man' page I can't find a
> solution.  Please, whoever can, any suggestion about how to do so.


I use "--delete --force" per just having stumbled upon it at some
point out in the wilds of the Net. Is that maybe what you're looking
for? I THINK.. sometimes it leaves my directories but wipes out
everything within those directories.

Hope that helps (someone at least). :)

Cindy :)

-- 
Cindy-Sue Causey
Talking Rock, Pickens County, Georgia, USA

* runs with duct tape *


Reply to: