View previous topic :: View next topic |
Author |
Message |
fimblo Guru
Joined: 19 Feb 2003 Posts: 306 Location: European Union, Stockholm
|
Posted: Wed Aug 06, 2003 3:35 pm Post subject: tarring over tcp |
|
|
Hiya everyone!
Im intending to make a backup of a large directory over tcp, and though I could do this:
Code: | tar zcpf backup.tar.gz /directory/to/bk
scp backup.tar.gz another.puter.com |
I dont have the space on my drive for this. So I was thinking of somehting like:
Code: | destPuter# nc -lp 5000 |mimencode -u > backup.tar.gz
sourcePuter# ( tar -pzcv . | mimencode ; sleep 1 ) | telnet destPuter.domain.com 5000 |
I put the sleep in there since telnet doesnt seem to like data streaming in immediately...
Also mimencode to avoid the escape char ^]...
But I suspect that for large directories this wont work- the one second wait makes me think that it will have to be placed in memory. Does anyone have a better solution? _________________ http://blahonga.yanson.org - little geekblog
http://blahona.yanson.org/howtos/livecd - yet another livecd howto |
|
Back to top |
|
|
neuron Advocate
Joined: 28 May 2002 Posts: 2371
|
Posted: Wed Aug 06, 2003 3:41 pm Post subject: |
|
|
mount it and untar it (shfs?) |
|
Back to top |
|
|
fimblo Guru
Joined: 19 Feb 2003 Posts: 306 Location: European Union, Stockholm
|
|
Back to top |
|
|
liquidjoe n00b
Joined: 06 Aug 2003 Posts: 23 Location: Germany - Bad Soden
|
Posted: Wed Aug 06, 2003 4:09 pm Post subject: |
|
|
or do:
tar cvjf - /lala | ssh babe@moon cat - > lalilu.tbz2
|
|
Back to top |
|
|
fimblo Guru
Joined: 19 Feb 2003 Posts: 306 Location: European Union, Stockholm
|
Posted: Wed Aug 06, 2003 4:44 pm Post subject: |
|
|
good idea- with quotes it worked
btw, I solved the problem using nc on the sending side, I didnt need to use the "sleep 1" command.
neuron: thanks for telling me about shfs! excellent module, I'll be using it alot _________________ http://blahonga.yanson.org - little geekblog
http://blahona.yanson.org/howtos/livecd - yet another livecd howto |
|
Back to top |
|
|
|