Skip to Content.
Sympa Menu

baslinux - [BL] tar commands with ssh in BL 3.50

baslinux AT lists.ibiblio.org

Subject: Baslinux mailing list

List archive

Chronological Thread  
  • From: baslinux AT lists.ibiblio.org
  • To: baslinux AT lists.ibiblio.org
  • Subject: [BL] tar commands with ssh in BL 3.50
  • Date: Sat, 19 Jul 2008 06:26:56 -0700 (PDT)

A question related to my other one about ssh:
What are the full tar commands that i can use
to send and receive files between two separate
accounts which i have on different machines?

I actually did this last week at an Installfest,
with a lot of help from a guru who showed me how,
and it worked perfectly. I copied an entire
rootfs from one machine to an empty partition
on another.

But it happened so fast that i don't remember
exactly how it was done. It involved a command
which i think went like this:

tar -C directory -cf - . | tar -C directory -xf -

but i'm not sure if that was exactly what i did,
and the biggest thing i forgot is exactly what
i had to put in what i'm calling 'directory' here.

IIRC, the command is to be run from the machine
which is receiving the files, correct?

And therefore the "directory" on the left side
of the pipe also requires the "username@hostname"
before the directory name, correct?

If any of this is wrong, can someone please
type the command exactly as it needs to be done?
Thanks.


-monz















Archive powered by MHonArc 2.6.24.

Top of Page