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

Re: TAR command question



Bill Bell wrote:
  >Could someone give me a tar command that I can use to backup my Debian 2.0
  >system to a compressed file?  I will ftp this backup file to another system
  >after it has been written.
  >
  >I have RTFM for tar, but after several tries, I have not created a file that
      > I
  >trust.
 
To archive a directory and everything under it into a compressed tar file
called archive.tar.gz:

  tar czf /path/to/archive.tar.gz /path/to/directory

-- 
Oliver Elphick                                Oliver.Elphick@lfix.co.uk
Isle of Wight                              http://www.lfix.co.uk/oliver
               PGP key from public servers; key ID 32B8FAA1
                 ========================================
     "My son, if sinners entice thee, consent thou not."    
                            Proverbs 1:10 



Reply to: