Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Mon Jun 25, 2012 6:43 am 
Offline
Newbie

Joined: Mon Jun 25, 2012 6:34 am
Posts: 2
Hi

I'm trying to download my Linode but not being on the quickest connection I think I need to compress the file and split it into chunks.

I'm unsure of how to do this exactly but remember seeing a post about it before (I have searched but cannot find the post).

I expect others at some point will probably want to do the same thing.

So far the command I have which works but is obviously very slow is:
ssh root@[Linode IP] "dd if=/dev/xvda " | dd of=/home/archive/linode.img

Can someone please let me know the command that I need to used to do the following in one step:
1) Compress the file that I am going to copy over ssh
2) Splits the file into chunks of say 1.8gb


For the benefit of others at a later who think this may be what they also wish to do this thread relates to:
http://library.linode.com/migration/ssh-copy


Top
   
PostPosted: Mon Jun 25, 2012 9:55 am 
Offline
Senior Member

Joined: Fri Jan 09, 2009 5:32 pm
Posts: 634
You really just want gz, not tgz since there's no reason to tar up a single file.
using your existing paths:
ssh root@linode "dd if=/dev/xvda" | gzip > /home/archive/linode.img.gz
should work


Top
   
PostPosted: Mon Jun 25, 2012 10:15 am 
Offline
Newbie

Joined: Mon Jun 25, 2012 6:34 am
Posts: 2
Thanks gig

Is there a way that I can splitt the .gz file into chunks of 1.8gb using the same command?

I had a look at the manual for Gzip and I don't see anything about this.



Finnix reports :

no such file or directory error using the gzip command posted.


Top
   
PostPosted: Mon Jun 25, 2012 9:46 pm 
Offline
Senior Member

Joined: Sun May 23, 2010 1:57 pm
Posts: 315
Website: http://www.jebblue.net
Why not use rsync?


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group