ecs-isp@2rosenthals.com ?????????????? ????? #698

???: "Massimo S." <ecs-isp@2rosenthals.com> ?? ????
?????????
??: Re: [eCS-ISP] Question about Rsync
??: Sun, 21 Apr 2024 20:12:32 +0200
??: 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

???????: ????, ??????, ??????.
?????????
??? ????????