find probleme

Maik Holtkamp s-y-l at gmx.net
Fri Oct 10 21:37:50 CEST 2003


Hi,

0n 03/10/10 at 17:56 Achim Dreyer told me:

> On Fri, 10 Oct 2003, Maik Holtkamp wrote:

> > find /mnt/ieee/work -ctime +7 -name 'rsync.log*' exec rm {} \; || {
> 
> parameters?
>                                                    -exec rm \{\} \; 

*Arrg* danke. Das haette mich bei der Fehlermeldung bestimmt Wochen
gekostet ;).

> Warum benutzt du ctime (= "creation time") und nicht mtime 
> (= "modification time") ? 
> Werden deine Dateien nach dem Anlegen noch modifiziert und 
> du hast Angst das diese dann aus dem Raster fallen?

Nein das sind eigentlich nur logs. Da gehe ich max. mit less dran.

Ich habe vor der firewire Platte immer mit afio auf Band gesichert,
seit der Streamer defekt ist mache ich das jetzt mit rsync auf die
externe Platte. 

Mein afio script benutzte fuer incrementelle Sachen -cnever, da lag
ctime eben naeher als mtime ;).

Ich will eigentlich, dass das taeglich laeuft und die logs die
aelter als eine Woche sind wegschmeissen. Gibt es, bei meinem
Vorhaben Vorteile von mtime/Nachteile von ctime?

-- 
bye maik
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lug-owl.de/pipermail/linux/attachments/20031010/989a8c63/attachment.sig>


More information about the Linux mailing list