The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

manual backups

Discussion in 'General Discussion' started by ddeans, Mar 6, 2004.

  1. ddeans

    ddeans Well-Known Member

    Joined:
    Feb 13, 2004
    Messages:
    296
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Maryland
    i am trying to do a manual backup and when i try to tar anything i do;

    tar -c dir.tar
    or
    tar -c dir dir.tar

    each seem to give me a never ending mess of unique charaters. is that normal? it's been tarring a 1 gig directory for over 45 minutes now. is that normal?
     
  2. asmithjr

    asmithjr Well-Known Member

    Joined:
    Jun 13, 2003
    Messages:
    475
    Likes Received:
    1
    Trophy Points:
    18
    I bellieve the syntax you should use is

    tar cvf filename.tar directory

    or

    tar cvfz filename.tar.gz directory (if you want to compress)

    where filename is the name of your file and directory is what you want to tar up.
     
  3. BrightAdmin

    BrightAdmin Well-Known Member

    Joined:
    Feb 29, 2004
    Messages:
    204
    Likes Received:
    0
    Trophy Points:
    16
    Hi ddeans,

    As mentioned by asmithjr, you can use the below options with tar command to backup a particular directory.

    tar -cvf filename [directories or filenames]
    ex) tar -cvf test.tar directoryname

    You can list the files present in the tar archive using the following command.

    tar -tvf tarfilename

    Regards,:)
     
  4. ddeans

    ddeans Well-Known Member

    Joined:
    Feb 13, 2004
    Messages:
    296
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Maryland
    Got it working!

    Thanks for all your help!
     
Loading...

Share This Page