LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-24-2010, 12:45 AM   #1
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,373

Rep: Reputation: Disabled
trouble compressing a folder


Today I tried to compress some folders containing backup files from last year. I right-clicked on the folders and selected compress as tar.gz. I let it work, and found that hours later, the folders were still compressing. How long is it supposed to take, anyway? I was trying to compress the two sets of backups simultaneously; together they're around 1.5 GB. They have many subdirectories.

Last edited by newbiesforever; 07-24-2010 at 12:47 AM.
 
Old 07-24-2010, 03:19 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,260

Rep: Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321
Run one compression job at a time. How fast depends on your pc and your compression. bzip2 is slowest. You can speed things up by not compressing already compressed files, e.g. jpegs. I'd expect it finished in under an hour.
 
Old 07-24-2010, 06:59 AM   #3
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
If you use tar from the command line, you can add the -v flag to follow the progress
Code:
tar -cvzf myarchive.tar.gz directory_that_i_want_to_backup
It might give you an idea how fast things are going
 
Old 07-24-2010, 12:23 PM   #4
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,373

Original Poster
Rep: Reputation: Disabled
Thank you. So I have to specify that the compressed archive should be called [name].tar.gz? I thought it would automatically give the folder's original name to the tar.gz. Well, no wonder KDE sat there for hours saying "Compressing..."--it hadn't given me an opportunity to specify what the archive should be named, and therefore didn't know.

EDIT: Okay, it seems to have worked, but the results weren't what I expected. tar put the tar.gz in my /home folder, which is on a different hard drive, instead of in the same location as the item to be compressed. I know--I should have specified the desired location too. I just thought tar would, by default, put the tar.gz in wherever its target was.

Last edited by newbiesforever; 07-24-2010 at 12:51 PM.
 
Old 07-24-2010, 04:22 PM   #5
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Default is current working directory, so you must have been in $HOME.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] trouble with SGID on a shareable folder chytraeus Linux - Newbie 7 01-27-2010 04:40 PM
folder opening trouble raphtor Linux - Newbie 1 09-19-2008 10:41 PM
Compressing a very big folder mathimca05 Linux - Newbie 2 12-20-2007 06:50 AM
Folder access and trouble shooting mdar Slackware 2 01-06-2006 09:34 PM
Folder Permissions Trouble 69_rs_ss Linux - General 3 01-16-2004 06:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration