LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-25-2008, 06:48 PM   #1
melikai
Member
 
Registered: Aug 2006
Distribution: Suse 10.1
Posts: 37

Rep: Reputation: 15
Disable Gzip from following system links?


I want to back my home folder and compress it (using gzip( to my external HDD. The problem is, in my .wine foler theres the dos device drive and there is a system link that links onto itself. When I try to gzip it just goes into a never ending loop. I olled on google and the man pages. Is there something I can do so it won't follow these links or is there another archiver that will allow me to do this.
Please keep in mind I can't se dd, becayse i plane re-partitioning my hdd.
thank you in advance for your help
 
Old 03-25-2008, 07:58 PM   #2
BrianK
Senior Member
 
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Rep: Reputation: 51
you can tar and gzip at the same time. tar archives the link itself rather than the thing it points to, so when you untar, you will get the same link back.

tar cvzf /backup_dir/`date +%F`-backup.tgz ~/

the 'z' in the option list tells tar to gzip also. Alternatively, you could use j to bzip2 (often better compression than gzip, but slower to de/compress), in that case, name the file whatever.tbz for clarity. tar has other options if you're still having problems, namely "--exclude" to just not deal with the problem files all together, though this shouldn't be an issue in your case.

Last edited by BrianK; 03-25-2008 at 08:01 PM.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[gzip] appears in process table after gzip command completes redmanDBA Linux - General 0 02-26-2008 06:12 AM
Disable the links highlighting (with letters) in Konqueror yozhhh Linux - Software 2 03-28-2006 02:52 AM
my sarge mixed system-Sub-process gzip returned an error code (1) deepclutch Debian 2 02-28-2006 04:10 PM
Solaris 8 gzip issues- cannot gzip -d lynx sixosix Solaris / OpenSolaris 4 03-13-2005 03:17 PM
Can I find links in the system that point to certain files throughout the system? HGeneAnthony Linux - Newbie 3 02-18-2005 08:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:14 AM.

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