* et <[EMAIL PROTECTED]> [020911 04:59]: > On Tuesday 10 September 2002 04:24 am, you wrote: > > Hello All, > > > > Recently my bacon was saved through the use of backup files. However, I > > lost some of my hidden config files. > > > > Is it possible to archive hidden files with tar? This how I created a > > backup, and hidden files are not included. > > > > tar cjf archive.tar.bz2 * > ehh..... "tar cjf archive.tar.bz2 *.*"
That may work for tar, but for many recursive things there is a trap. If you glob *.* you also get . (the current directory) and .. (the parent directory). I think it's safer to glob something like this: * .[^.]* the asterisk will glob anything but hidden files, then there is a space as a delimiter, and the .[^.]* means anything that begins with a dot, followed by any character that is NOT a dot, with 0 or more characters to follow. It works for me. -- Jan Wilson, SysAdmin _/*]; [EMAIL PROTECTED] Corozal Junior College | |:' corozal.com corozal.bz Corozal Town, Belize | /' chetumal.com & linux.bz Reg. Linux user #151611 |_/ Network, PHP, Perl, HTML
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
