Results 1 to 3 of 3

Thread: cPanel's backup compression method

  1. #1
    Member
    Join Date
    Mar 2004
    Location
    Virginia
    Posts
    78

    Default cPanel's backup compression method

    I noticed that when cPanel does a full backup using tar compression, I'm able to open/view the archive without extracting it (in Windows). However, when I compress a directory myself using tar -cvf, it forces me to extract the contents before viewing it.

    What command(s) is cPanel using to create/compress the directories into a tar?

    I apologize if this is basic Linux/cPanel knowledge.

  2. #2
    cPanel Development cPanelKenneth's Avatar
    Join Date
    Apr 2006
    Posts
    4,133
    cPanel/WHM Access Level

    Root Administrator

    Default Re: cPanel's backup compression method

    This will sound pedantic but tar -cvf does not compress, it only archives. To compress you need to add the appropriate parameters to the tar command. Our backup software uses gzip for compression. The command line for tar would look like tar -czvf.
    Kenneth
    Development
    cPanel, Inc.

  3. #3
    Member
    Join Date
    Mar 2004
    Location
    Virginia
    Posts
    78

    Default Re: cPanel's backup compression method

    Quote Originally Posted by cpanelkenneth View Post
    This will sound pedantic but tar -cvf does not compress, it only archives. To compress you need to add the appropriate parameters to the tar command. Our backup software uses gzip for compression. The command line for tar would look like tar -czvf.
    I accidentally left off the -z (for gzip) in my original post and actually have tried with that option, but still have the problem. After running that command and downloading the .tar file, when I open it in Windows with something like 7zip, I see a file within it simply named the same as the .tar file but without the .tar extension. Why don't I see the folder/file structure as I do with a cPanel-generated backup?

Similar Threads

  1. Best method to backup
    By optize in forum Data Protection
    Replies: 4
    Last Post: 04-01-2012, 08:30 PM
  2. Backup compression in bz2
    By darlanart in forum Feature Requests for cPanel & WHM
    Replies: 5
    Last Post: 11-13-2011, 06:05 AM
  3. best backup method
    By wgalafassijr in forum Data Protection
    Replies: 3
    Last Post: 01-12-2011, 07:43 PM
  4. Different backup method?
    By jhyland87 in forum Data Protection
    Replies: 9
    Last Post: 06-18-2009, 10:37 AM
  5. Backup method on Linux web server with CPANEL
    By smartinfo in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 04-05-2002, 01:02 PM