Skip to Content.
Sympa Menu

baslinux - Re: [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: Re: [BL] tar commands with ssh in BL 3.50
  • Date: Sat, 19 Jul 2008 15:35:05 +0000 (UTC)



Sindi Keesan wrote:

Set up a network (ethernet, parallel, serial) and use Steven's built-inBL scripts send and receive. To copy entire file systems, first boot with floppy BL, mount the hard drive, and copy the contents. If you boot with what you are copying, you will end up copying temporary stuff from /proc which you don't need to do.

You can tar -zcvf filesystem.tgz * if you want to send just one big file, then after it arrives tar -zxvf tilesystem.tgz (make sure you are in the partition you want the files to end up in), but in my experience tarring (compressing and archiving) takes much more time than sending single files. At least on slower computers. You can tar -cvf to send one large file that is not first compressed.

On Sat, 19 Jul 2008, baslinux AT lists.ibiblio.org wrote:

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












-----------------------
BasicLinux mailing list
-----------------------
http://www.basiclinux.com.ru
http://www.ibiblio.org/pub/linux/distributions/baslinux/
------------------------------------
To exit, send subject=unsubscribe to
baslinux-request AT lists.ibiblio.org





Archive powered by MHonArc 2.6.24.

Top of Page