backup and hidden files in tar

Aaron Gaudio prothonotar at tarnation.dyndns.org
Thu Jul 22 16:49:31 UTC 2004


Tar gets hidden files for me:

$ mkdir foobar
$ touch foobar/.foo
$ tar cvf foobar.tar foobar
foobar/
foobar/.foo


On Thu, 2004-07-22 at 18:47 +0200, J.L. Coenders wrote:
> That doesn't work for my hidden files... and I've read man tar, but it doesnt 
> tell me anything on this.
> - Jeroen
> 
> On Thursday 22 July 2004 06:26 pm, Bruno Santos wrote:
> > Bruno Santos wrote:
> > > J.L. Coenders wrote:
> > >> Hi,
> > >> How do I include backup and hidden files in my tar archives? I want a
> > >> complete backup of my home directory, including all settings.
> > >>
> > >> Thanks,
> > >> - Jeroen
> > >
> > > Try man tar
> >
> > Or, try tar -zcvf destination_file.tar.gz (not in the same directory, or
> > will enter in a loop) /home/files_to_backup
> >
> > cheers
> >
> > --
> > bvsantos at hal.min-saude.pt
> > --
> > Divisao de Informatica
> > informatica at hal.min-saude.pt
> > Tel: +351 272 000 155
> > Fax: +351 272 000 257
> >
> > --
> > Hospital Amato Lusitano
> > Av. Pedro Alvares Cabral
> > 6000-085 Castelo Branco
> > geral at hal.min-saude.pt
> > Tel: +351 272 000 272
> > Fax: +351 272 000 257
> 
> 





More information about the users mailing list