Zitat von Ekkard Gerlach
find /work -iname "*" -mtime -1 -type f|xargs tar xf - --atime-preserve
tar: /work/A/datei: Not found in archive tar: 1.txt: Not found in archive tar: /work/A/datei: Not found in archive tar: 2.txt: Not found in archive
Urgs, Fehler von mir. Ersetze tar xf durch tar cf, also so in der Richtung: find /work -iname "*" -mtime -1 -type f|xargs tar cf archive.tar --atime-preserve
Evtl. kann man auch noch ein -exec echo \"{}\" \; ins find einbauen, sollte aber IMHO eigentlich nicht erforderlich sein.
tar: /work/A/datei 1.txt: Not found in archive tar: /work/A/datei 2.txt: Not found in archive
Klar, tar xf - will extrahieren, was aus dem stdin kommt. Das ist natürlich nonsense. Du willst ein Archiv erzeugen, also cf, und entweder nach stdout schreiben (dann cf -) oder in ein file (dann cf file). -- Erhard Schwenk Akkordeonjugend Baden-Württemberg - http://www.akkordeonjugend.de k-itx.net Webhosting - http://webhosting.k-itx.net