Poštni seznam arhiviranih sporo?il

Od: "Massimo S." <ecs-isp@2rosenthals.com> Glava
Izvorno E-sporo?ilo
Zadeva: rotating old files with rsync
Datum: Wed, 25 May 2022 13:39:09 +0200
Za: eCS ISP Mailing List <ecs-isp@2rosenthals.com>

Hi all,

is there a way to rotate files older than 365 days (1 year) with rsync?

i've found this on the internet

find /home/nkumar/eur/ -type f -mtime +7 -printf %P\\0 | rsync --files-from=- --from0 /home/nkumar/eur/ /home/nkumar/chk/ --remove-sent-files

but i guess it will not work on eCS/AOS

any idea?

at the moment i'm using a rexx that moves files older than 1year to a 2nd partition
but when this server will be moved inside a VM i can't use anymore this procedure
since i don't want the VM size to grow too much

what i'd need is to use rsync from another server (on bare metal) that moves older
than 1 year files to a removable drive


thanks for any suggestion

massimo

Naro?iti: Poro?ilo (Feed), Izvle?ek (Digest), Indeks.
Odjava
E-pošta za mojstra za sezname