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



On Tuesday 01 August 2006 14:04, Bill Moran wrote:
In response to David Banning <david+dated+1154886729.6e1beb@xxxxxxxxxxxxx>:
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@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: Why no TextMate for Linux?
    ... Even most programmers would be unlikely to find it worth the ... I can't burn *someone else's* American flag. ... It's also an argument against considering Windows to be the basis of your ... Not particularly high -- but an editor isn't comparable to an OS (unless ...
    (comp.lang.ruby)
  • Re: Slow boot
    ... File compression is not the same as compressing a drive or zipping. ... How To Use File Compression in Windows XP ... put it on any drive, but this time I didn't have a choice of drives, it went ... anti-virus scan occuring when you boot will affect performance. ...
    (microsoft.public.windowsxp.perform_maintain)
  • Re: result of compression Re: Why are some of the Word doc titles in the color blue?
    ... probably someone in the Windows newsgroups could answer the question. ... I haven't used disk/file compression since the mid-1990s. ... Vista Annoyances* is to point out that a file can't be both compressed ... distribution disk_ associated with this computer?? ...
    (microsoft.public.word.docmanagement)
  • Re: Saved files turning blue.
    ... How To Use File Compression in Windows XP ... Also in the Microsoft Windows XP Documentation, ... | Windows installation, ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Compressed (Zip) Folders: Why does it show in some versions of Win
    ... Windows XP Shell/User ... You can get back the "Compressed Folder" option by typing REGSVR32 ... BTW, Windows XP supports two types of compression, NTFS compression and ... [depending upon the installation settings chose by the operator on ...
    (microsoft.public.windowsxp.help_and_support)