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

    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
    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:
    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.

    Registered Linux User #371543!
    Get force-get May The Source Be With You

  3. #3
    Linux Engineer jledhead's Avatar
    Join Date
    Oct 2004
    North Carolina
    I found this link that might help

    I was searching for "tar spanning"

  4. $spacer_open

Posting Permissions

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