Re: Tar/Zip/Rar trouble
From: Ben Stringer (ben_at_burbong.com)
Date: 04/30/04
- Previous message: - Edwin -: "Re: Taming the mailing lists?"
- In reply to: J.L. Coenders: "Tar/Zip/Rar trouble"
- Next in thread: J.L. Coenders: "Re: Tar/Zip/Rar trouble"
- Reply: J.L. Coenders: "Re: Tar/Zip/Rar trouble"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: For users of Fedora Core releases <fedora-list@redhat.com> Date: Fri, 30 Apr 2004 18:16:06 +1000
On Fri, 2004-04-30 at 16:53, J.L. Coenders wrote:
> Hi all,
> Does anyone know what how to hidden and backup files into an archive with
> tar/zip/rar?
> I want to backup my ~/Mail directory, but somehow it doesn't work with
> Fileroller so I want to try it manually (errors). However, I cannot find how
What are the errors?
> to pack hidden files. Maybe I am looking for the wrong thing or does anyone
> have another solution to my problem.
> And how can I test an archive to see if it works proper?
With "dot" files, you can either let tar's recursion pick them up by
tarring from the parent directory, or by specifying a regex that matches
them (like .??*).
Here is an example of the former case. The "tar tzf" is showing you the
contents of the compressed tarfile. Take out all the "z"'s if you don;t
want compression.
$ mkdir tartest
$ cd tartest
$ echo "Hello" > .hidden
$ echo "Goodbye" > not_hidden
$ cd ..
$ tar czvf mytar.tgz tartest
...
$ tar tzf mytar.tgz
tartest/
tartest/.hidden
tartest/not_hidden
Cheers, Ben
>
> Thanks,
> Jeroen
>
-- fedora-list mailing list fedora-list@redhat.com To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
- Previous message: - Edwin -: "Re: Taming the mailing lists?"
- In reply to: J.L. Coenders: "Tar/Zip/Rar trouble"
- Next in thread: J.L. Coenders: "Re: Tar/Zip/Rar trouble"
- Reply: J.L. Coenders: "Re: Tar/Zip/Rar trouble"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]