Re: best way to copy from one fbsd box to another

2006-08-02 Thread Nikolas Britton

On 8/1/06, John Nielsen [EMAIL PROTECTED] wrote:

On Tuesday 01 August 2006 14:04, Bill Moran wrote:
 In response to David Banning [EMAIL PROTECTED]:
  I am installing a new server and have to copy many files from old server
  to new. I have connected a windows box to each via samba, and am dragging
  from one to the other via the windows box.
 
  This might seem like a silly question, but what is the way to copy
  -directly- from one fbsd box to another?

 Usually NFS or scp.  There are other choices, though.

For many situations my favorite is tar+netcat (w/ optional bzip2 compression).

On the destination host:
cd /some/path
nc -l 1234 | tar -xjvf -

And on the source host:
cd /some/path
tar -cjvf - relative/path/to/source/dir | nc destip 1234

If you don't want compression leave out the 'j' flag in both calls to tar.

scp is your best bet if you need encryption though (take note of the -r and -C
flags).



I'll 2nd netcat... one of the most versatile tool I've come across in
UNIX land!

http://www.securitydocs.com/library/3376
http://www.rajeevnet.com/hacks_hints/os_clone/os_cloning.html
http://www.stearns.org/doc/nc-intro.current.html

One thing I'd like to add to Johns comment is to not use compression
if your on a GigE network, The overhead required to do this will max
out the CPU, the net effect being very slow transfer rates. It also
helps to not use tar -v, you will miss error messages if you use -v
because the SNR is very low, it consumes CPU time too.


--
BSD Podcasts @:
http://bsdtalk.blogspot.com/
http://freebsdforall.blogspot.com/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: best way to copy from one fbsd box to another

2006-08-02 Thread Frank Shute
On Tue, Aug 01, 2006 at 01:52:09PM -0400, David Banning wrote:

 I am installing a new server and have to copy many files from old server
 to new. I have connected a windows box to each via samba, and am dragging
 from one to the other via the windows box.
 
 This might seem like a silly question, but what is the way to copy
 -directly- from one fbsd box to another?

I use a combination of scp and rsync. scp for odd files and rsync for
directories.

-- 

 Frank 


echo f r a n k @ e s p e r a n c e - l i n u x . c o . u k | sed 's/ //g'

  ---PGP keyID: 0x10BD6F4B---  
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


best way to copy from one fbsd box to another

2006-08-01 Thread David Banning
I am installing a new server and have to copy many files from old server
to new. I have connected a windows box to each via samba, and am dragging
from one to the other via the windows box.

This might seem like a silly question, but what is the way to copy
-directly- from one fbsd box to another?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: best way to copy from one fbsd box to another

2006-08-01 Thread Bill Moran
In response to David Banning [EMAIL PROTECTED]:

 I am installing a new server and have to copy many files from old server
 to new. I have connected a windows box to each via samba, and am dragging
 from one to the other via the windows box.
 
 This might seem like a silly question, but what is the way to copy
 -directly- from one fbsd box to another?

Usually NFS or scp.  There are other choices, though.

-- 
Bill Moran
Collaborative Fusion Inc.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: best way to copy from one fbsd box to another

2006-08-01 Thread John Nielsen
On Tuesday 01 August 2006 14:04, Bill Moran wrote:
 In response to David Banning [EMAIL PROTECTED]:
  I am installing a new server and have to copy many files from old server
  to new. I have connected a windows box to each via samba, and am dragging
  from one to the other via the windows box.
 
  This might seem like a silly question, but what is the way to copy
  -directly- from one fbsd box to another?

 Usually NFS or scp.  There are other choices, though.

For many situations my favorite is tar+netcat (w/ optional bzip2 compression).

On the destination host:
cd /some/path
nc -l 1234 | tar -xjvf -

And on the source host:
cd /some/path
tar -cjvf - relative/path/to/source/dir | nc destip 1234

If you don't want compression leave out the 'j' flag in both calls to tar.

scp is your best bet if you need encryption though (take note of the -r and -C 
flags).

JN
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: best way to copy from one fbsd box to another

2006-08-01 Thread Chris Hill

On Tue, 1 Aug 2006, David Banning wrote:

This might seem like a silly question, but what is the way to copy 
-directly- from one fbsd box to another?


Last time I had to do this I used wget. Maybe not lickety-split for 
large amounts of data, but it was painless and I did not have to pay any 
attention once I got it going. I like the fact that it will recurse into 
directories.


HTH.

--
Chris Hill   [EMAIL PROTECTED]
** [ Busy Expunging | ]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: best way to copy from one fbsd box to another

2006-08-01 Thread N. Harrington
--- David Banning
[EMAIL PROTECTED] wrote:

 I am installing a new server and have to copy many
 files from old server
 to new. I have connected a windows box to each via
 samba, and am dragging
 from one to the other via the windows box.
 
 This might seem like a silly question, but what is
 the way to copy
 -directly- from one fbsd box to another?

 If you have a secured connection I like using rcp.
(complied without the evil conversion to using scp)
 scp works too but has more overhead and for rsh
maintains permissions better. (I think)

 One thing to keep in mind is that if you are copying
OS files, you may run into files that have the file
(immutable) flags set such that even as root, you
cannot update or overwrite them while in multiuser.
(see chflags) 


 Hope this helps.

 Nicole


The Large Print Giveth And The Small Print Taketh Away
 -- Anon

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]