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

GZIP="--rsyncable" je Zeile oder einmal?



Hallo,

ich möchte gerne die gzip-Option "--rsyncable" benutzen, pipe aber tar durch gzip. Ich habe sowas gefunden:

GZIP="--rsyncable" tar zcvf toto.tar.gz /toto

Muss ich die GZIP-Option jedesmal voranschreiben, wenn ich verschiedene tars in einem Shellskript mache, oder reicht es einmal am Anfang GZIP="--rsyncable" zu schreiben?

Ich bin mir nicht sicher ob ich obige Zeile richtig verstehe, ich hätte eigentlich sowas wie

GZIP="--rsyncable" && tar zcvf toto.tar.gz /toto

erwartet. Ist jetzt nicht unbedingt debianspezifisch, ich hoffe aber das Fragen dieser Art hier trotzdem ok sind?

Viele Grüße
André



Reply to: