[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Archiver mails



Le 15/06/21 à 08:36, Gabriel Moreau <Gabriel.Moreau@legi.grenoble-inp.fr> a écrit :

> > ./backup-mailboxes.py && (find Mail -type f -ctime +90 | xargs gzip --best)  
> 
> Amélioration possible
> 
>   xargs -r gzip --best
> 
> J'utilise toujours avec -r xargs...

Sans xargs ça doit marcher aussi (à priori jamais besoin de xargs derrière un find, sauf pour
des cas auxquels je n'ai jamais été confronté)

   find Mail -type f -ctime +90 -exec gzip --best {} \;


-- 
Daniel

Quand le moi est haïssable, aimer son prochain
comme soi même devient une atroce ironie.
Paul Valéry.


Reply to: