| Author |
Message |
victorfeng1973@yahoo.com *nix forums beginner
Joined: 26 Oct 2005
Posts: 33
|
Posted: Fri Jul 21, 2006 2:10 pm Post subject:
Re: how to transfer
|
|
|
feng@host2> tar cpf - | gzip | ssh host1 cat \>/home/feng/fengwork.tgz
tar: Missing filenames
Password:
Then gunzip the fengwork.tgz in host1, the tar file size is 0. Do I
miss something?
Thank you,
Victor |
|
| Back to top |
|
 |
aryzhov@spasu.net *nix forums addict
Joined: 17 Feb 2005
Posts: 64
|
Posted: Fri Jul 21, 2006 9:37 am Post subject:
Re: how to transfer
|
|
|
| Quote: |
may be "scp" is better ?
|
Can you build a compressed tar file on remote side
out of a local directory tree, in one command line, using SCP only?
I don't use SCP much, but doubt it has both TAR and GZIP functionality.
And as I mentioned in another post, looking at SCP and SFTP just as
wrappers for SSH saves me alot of headache. |
|
| Back to top |
|
 |
Anatoly Y. *nix forums beginner
Joined: 05 Jul 2005
Posts: 6
|
Posted: Fri Jul 21, 2006 8:50 am Post subject:
Re: how to transfer
|
|
|
aryzhov@spasu.net wrote:
| Quote: |
Linda NY wrote:
Or how can I tar and transfer it over the net to another machine?
cd $BIG_DIRECTORY
tar cpf - | gzip | ssh $REMOTE_HOST cat \>/path/to/archive_file.tgz
may be "scp" is better ? |
--
Anatoly Y. | TSUNet | phone: +7 (3822) 529696 |
|
| Back to top |
|
 |
aryzhov@spasu.net *nix forums addict
Joined: 17 Feb 2005
Posts: 64
|
Posted: Fri Jul 21, 2006 7:11 am Post subject:
Re: how to transfer
|
|
|
Linda NY wrote:
| Quote: |
Or how can I tar and transfer it over the net to another machine?
|
cd $BIG_DIRECTORY
tar cpf - | gzip | ssh $REMOTE_HOST cat \>/path/to/archive_file.tgz |
|
| Back to top |
|
 |
Linda NY *nix forums beginner
Joined: 21 Jul 2006
Posts: 1
|
Posted: Fri Jul 21, 2006 5:30 am Post subject:
how to transfer
|
|
|
Hello,
I have a 20 Gid directory. I have to mount point in the first I have 6 gig
free space and the 2nd I have 17 gig how can I compress this file into 2nd
mount point?
Or how can I tar and transfer it over the net to another machine?
thankx for the help |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|