Prosíme přihlašte se nebo zaregistrujte.

Přihlašte se svým uživatelským jménem a heslem.
Vaše pomoc je stále potřeba!

Autor Téma: tar - seznam souborů k archivaci ve vstupním souboru [vyřešeno]  (Přečteno 684 krát)

hawran.diskuse

  • Návštěvník
  • Příspěvků: 23
Zdravím,
snažím se tar-u podhodit seznam souborů k archivaci jako seznam v jednom vstupním souboru, ale pořád se mi nedaří:

Kód: [Vybrat]
cz994691:/.../tmp $ tar czvf TEST.tar.gz -T cpp.files.lst
tar: You may not specify more than one `-Acdtrux' option
Try `tar --help' or `tar --usage' for more information.
cz994691:/.../tmp $ tar -czvf TEST.tar.gz -T cpp.files.lst
tar: You may not specify more than one `-Acdtrux' option
Try `tar --help' or `tar --usage' for more information.
cz994691:/.../tmp $ tar -c -z -v -f TEST.tar.gz -T cpp.files.lst
tar: You may not specify more than one `-Acdtrux' option
Try `tar --help' or `tar --usage' for more information.
cz994691:/.../tmp $ tar -c -z -v -T cpp.files.lst -f TEST.tar.gz
tar: You may not specify more than one `-Acdtrux' option
Try `tar --help' or `tar --usage' for more information.
cz994691:/.../tmp $ tar -c -z -v -f TEST.tar.gz --files-from=cpp.files.lst
tar: You may not specify more than one `-Acdtrux' option
Try `tar --help' or `tar --usage' for more information.
cz994691:/.../tmp $ tar -c -z -v  --files-from=cpp.files.lst -f TEST.tar.gz
tar: You may not specify more than one `-Acdtrux' option
Try `tar --help' or `tar --usage' for more information.
cz994691:/.../tmp $ tar czv --files-from=cpp.files.lst -f TEST.tar.gz
tar: You may not specify more than one `-Acdtrux' option
Try `tar --help' or `tar --usage' for more information.
cz994691:/.../tmp $ tar c --files-from=cpp.files.lst -f TEST.tar.gz
tar: You may not specify more than one `-Acdtrux' option
Try `tar --help' or `tar --usage' for more information.
cz994691:/.../tmp $ tar -c --files-from=cpp.files.lst -f TEST.tar.gz
tar: You may not specify more than one `-Acdtrux' option
Try `tar --help' or `tar --usage' for more information.

Kód: [Vybrat]
man tar:
...
     -T, --files-from FILE
           get names to extract or create from FILE
...

Kód: [Vybrat]
$ tar --version
tar (GNU tar) 1.22
Copyright (C) 2009 Free Software Foundation, Inc.

Co je špatně?
« Poslední změna: 07 Srpna 2011, 11:17:01 od Tadeáš Pařík »

hawran.diskuse

  • Návštěvník
  • Příspěvků: 23
Re: tar - seznam souborů k archivaci ve vstupním souboru [vyřešeno]
« Odpověď #1 kdy: 06 Srpna 2011, 17:50:24 »
Jsme to ale kus vola.
V tom souboru se seznamem souborů nebyl čistý seznam, ale výstup ls -l ...

Tímto to považuji za vyřešené.
 ;D

 

Provoz zaštiťuje spolek OpenAlt.