Find the answer to your Linux question:
Results 1 to 5 of 5
sudo tar -cvpzf backup25jan2013.tar.gz...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2013
    Location
    South Texas
    Posts
    28

    Why does this command not work?


    sudo tar -cvpzf backup25jan2013.tar.gz

  2. #2
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    Quote Originally Posted by valid View Post
    sudo tar -cvpzf backup25jan2013.tar.gz
    What are you trying to achieve?

    If you want to extract the tarred file, replace the c in the command with an x.

    Note that the file will be extracted within the folder where it resides when you extract it using that command.
    Last edited by oz; 01-26-2013 at 01:46 PM. Reason: clarification
    oz

  3. #3
    Just Joined!
    Join Date
    Jan 2013
    Location
    South Texas
    Posts
    28
    Trying to achieve nothing. New to Linux and just running commands from online courses. It should of backup-ed the hd according to example on screen and would of been a tar ball. My understanding is a tar ball is more than 1 file and a tar file is just one.

  4. $spacer_open
    $spacer_close
  5. #4
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    If it's homework, those questions are not allowed on the forums. Otherwise, you have to add the name of the directory or file that is to be compressed in order to create a tarball, like with the following:

    Code:
    tar -cvpzf backup25jan2013.tar.gz  file_or_folder_name
    There is a bit more to it for backing up an entire system. Check the following article for details:

    http://www.aboutdebian.com/tar-backup.htm
    oz

  6. #5
    Just Joined!
    Join Date
    Jan 2013
    Location
    South Texas
    Posts
    28

    No homework

    I am a 56yr learning Linux to keep the brain going. Have several laps with Linux on them (Zorin and Mint 14). My goal is to be proficient by Dec 2013. Also would like to teach Grandson when the time comes. Thanks for your help.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •