Fedora Linux Support Community & Resources Center
  #1  
Old 27th August 2005, 07:54 PM
stan0934 Offline
Registered User
 
Join Date: Jun 2005
Age: 59
Posts: 24
rsync output to gzip

I learned that you can pass tar output as input to gzip in the same line. I tried something similar with rsync and it give me an error saying to please see help files. I was just wondering if rsync doesn't support doing this or not. any ideas?
Thanks,

stan
Reply With Quote
  #2  
Old 27th August 2005, 08:08 PM
fsck Offline
Registered User
 
Join Date: May 2005
Location: London, UK
Posts: 704
I don't think you can do this with rsync, as it will not output data to stdout like tar can. Also, most versions of tar these days support the "-z" or "-j" flags to compress the archive using gzip or bzip2, respectively, so that old "tar cf -|gzip - > filename" hack is redundant.
What are you trying to do? If you want to make compressed backups of a remote machine, consider using something like 'ssh user@host tar cfz - directory > localfile.tar.gz'
__________________
Want to get better answers? Learn to ask better questions!
fukka.co.uk for spamassassin rules and random garbage.
Reply With Quote
  #3  
Old 27th August 2005, 08:33 PM
stan0934 Offline
Registered User
 
Join Date: Jun 2005
Age: 59
Posts: 24
It's just a normal backup of myhome directory. I'm still getting up to speed, but the reference fook I'm attemting to use is evidently out of date. It's from about 1999 and much
in the world of Linux has changed since then. So tar will now compress?
Reply With Quote
  #4  
Old 27th August 2005, 08:40 PM
fsck Offline
Registered User
 
Join Date: May 2005
Location: London, UK
Posts: 704
If you just want to back up locally, use 'tar czvf' or 'tar cjvf'. 'man tar' for more info.
If you want to back up over the network, you can use 'ssh user@host tar zcvf ~ - > localfile.tar.gz'
__________________
Want to get better answers? Learn to ask better questions!
fukka.co.uk for spamassassin rules and random garbage.
Reply With Quote
Reply

Tags
gzip, output, rsync

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Gzip Help Please?? imdaryl Using Fedora 29 2nd February 2006 12:54 AM
.zip files and gzip bsoderror Using Fedora 5 20th July 2004 02:58 AM


Current GMT-time: 07:07 (Saturday, 26-07-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat