Mailing List ecs-isp@2rosenthals.com Archived Message #697

Fra: "Steven Levine" <ecs-isp@2rosenthals.com> Full Headers
Undecoded message
Emne: Re: [eCS-ISP] Question about Rsync
Dato: Sat, 20 Apr 2024 13:25:24 -0700
Til: "eCS ISP Mailing List" <ecs-isp@2rosenthals.com>

In <list-9452749@2rosenthals.com>, on 04/20/24
   at 12:36 PM, "Massimo S." <ecs-isp@2rosenthals.com> said:

Hi Massimo,

>source dir:
>file1
>file2

>destination dir:
>file20
>file21

>result after rscync in the destination dir:

>file1
>file2
>file20
>file21

>at the moment i've this command:
>rsync -hirpt --stats --delete
>so i guess i should only remove "--delete" option, i'm i right?

It depends on exactly what you want the destination directory to contain.
If you want new and changed files to be updated at the destination
dropping --delete should give you what you want.  The destination
directory will accumulate files until you delete them.

If you have some specific subset of files in the destination directory
that you want to avoid deleting then a protect filter is probably a better
solution.

Steven

--
----------------------------------------------------------------------
"Steven Levine" <steve53@earthlink.net>  Warp/DIY/BlueLion etc.
www.scoug.com www.arcanoae.com www.warpcave.com
----------------------------------------------------------------------


Abboner: Feed, Digest, Index.
Stopp abbonement
E-post til ListMaster