List ecs-isp@2rosenthals.com Arkiverade meddelande #698

Från: "Massimo S." <ecs-isp@2rosenthals.com> Meddelandehuvud
Oavkodat meddelande
Ämne: Re: [eCS-ISP] Question about Rsync
Datum: Sun, 21 Apr 2024 20:12:32 +0200
Till: 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

Prenumerera: Sändning, Uppsamling, Index.
Stoppa prenumeration
Meddelande till ListMaster