Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Feb 2004
    Location
    UK
    Posts
    131

    Making a .tar.gz file in Linux


    Ok folks, what i want to do it is create a .tar.gz files using the command ine, however i want it to be a maximum of 650Mb, when it reaches that size i would like to to carry in to a second file, can the standar tar package do this (i am using mandrake 10.1) or will i have to download a different program to do it for me.

    putting it a different way i want to back up a partition of my hard drive using CD's, and i need a program that will compress the partition onto a CD and then once the file is too big move onto a new file to go onto a second CD

    I hope you can understand 1 of the two ways o wrote this , i am crap at putting my thoughts down into writting

    Hope you guys can help

  2. #2
    Linux Guru dylunio's Avatar
    Join Date
    Aug 2004
    Location
    Cymru
    Posts
    4,157
    I was looking into this a few months ago, and I came accross a couple of of options.
    Quote Originally Posted by man page
    -L, --tape-length N
    change tapes after writing N*1024 bytes
    So if you want to make a file with a 2GB maximum before getting a cd you wauld hove:
    Code:
    tar czvf -L 2 myarchive.tar.gz myfile
    I think that is how you would do it, though I am not sure since I have never used this opition.

    dylunio
    Registered Linux User #371543!
    Get force-get May The Source Be With You
    /dev/null
    /dev/null2

  3. #3
    Linux Engineer jledhead's Avatar
    Join Date
    Oct 2004
    Location
    North Carolina
    Posts
    1,077
    I found this link that might help
    http://groups-beta.google.com/group/...0b7d8cfd456926

    I was searching for "tar spanning"

  4. $spacer_open
    $spacer_close

Posting Permissions

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