Re: tar question

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

 



Thank you
it works
 
how about untar
 
tar cvf file.tar -T selectfile.txt
 
inside the selectfile.txt
 
eg:
 
/var/www/html/version3/abc.html
/var/www/html/version3/image/abc.jpg
/var/www/html/version3/cgi-bin/abc.cgi
 
 
how can I untar it
 
as all inside in /var/www/html instead of /var/www/html/version3
 
Thank you again
 
 


"Mikkel L. Ellertson" <mikkel@xxxxxxxxxxxxxxxx> wrote:
chloe K wrote:
> Hi
> I have number of selected files to backup and it is also in different
> folders
> How can I make it easy?
>
> eg:
> tar zcvf select-file.tar.gz from selected file or tar zcvf
> select-file.tar.gz (from selected files in file.txt)?
>
> Thank you for your help
>
Check out the -T or --files-from= option.
Something like: (Double check the syntax!)

tar zcv -T file.txt -f elect-file.tar.gz

You will probable find the tar info file more helpful then the tar
man page.

Mikkel
--

Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


All new Yahoo! Mail - Get a sneak peak at messages with a handy reading pane.
-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux