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

Fra: "Massimo S." <ecs-isp@2rosenthals.com> Full Headers
Undecoded message
Emne: Re: [eCS-ISP] Question about Rsync
Dato: Sun, 21 Apr 2024 20:12:32 +0200
Til: eCS ISP Mailing List <ecs-isp@2rosenthals.com>



Il 20/04/2024 22:25, Steven Levine ha scritto:
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

hi,

thank you, i see that removing "--delete" is good for my needs

massimo

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