Submitted by Pronco on Wed, 02/02/2005 - 22:00.
( categories: )

I've got an old and a new linux machine and want to move lots of data from the old one to the new one

both are attached to 100 mbit lan

Is NFS good for such a thingie?

I want to mount the old one through network somehow and move all data I need, preserving permissions.


scp

whirlpool's picture

use scp -p to preserve permissions, access times, etc..


Mostafa Hussein

NFS

Conceptor's picture

this idea is perfect for copying data using secure shell ` scp `as copying will be needed for once.

if there a frequent access to the nfs resource ,nfs will help as nfs is something to mount the network resources to your local file system ,but nfs is not secure as SecureShell tools

Diaa Radwan

rsync

Pronco's picture

nfs works, sure, it's been used many years for such things - but perhaps rsync would be better suited to what I want to do, as it makes the destination an exact copy, with identical permissions, timestamps, ownership etc, as the source.

It works between directories on a single machine, or across the network, and it copies only what it needs to copy. With 100 MB Lan it ought to be a perfect solution.

scp would work too

What do you recommend?


I used to be indecisive .. but now I'm not so sure

Depends on what you need

phaeronix's picture

I can see you need a one time copy, scp should fill in. IMHO NFS has problems so you should use SMB mount ( yuck ) or the newer CIFS mount. Anyone has details on the CODA protocol also present in the kernel?

RSYNC is of course an elite way, but you can make it even better:

Use "sshfs" ( either the kernel based one or the fuse based one ), to mount the required directory and then rsync it locally.

I may write a step by step when I have time if you want. Whirlpool maybe you want to fill in?

CODA

Pronco's picture

CODA is a distributed filesystem

CODA is an experimental, research project kind of thing. it grew as a bastardized AFS with disconnection support from a CMU (I think) research lab. it wants a disturbing amount of virtual memory

I just know it's a network protocol and has been in the kernel for some time. I've never seen anyone using it.


I used to be indecisive .. but now I'm not so sure

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.