Home > linux, networking, ubuntu, VMWare > fast network file copying using tar and nfs

fast network file copying using tar and nfs

Configure an NFS export on the remote machine (e.g. 192.168.1.3) to copy to (e.g. /remotedir).

Create empty directory on local machine, and mount remote directory to it:

mkdir /remotedir

mount 192.168.1.3:/remotedir /remotedir

tar -c localdir/ | tar -C /remotedir/ -xv

That will copy contents of localdir to /remotedir on remote machine.

I used the above method to quickly copy some vmware images to a new server. scp copies were taking way too long. I was using ubuntu dapper servers, but it will work basically the same on any linux machines.

Advertisements
Categories: linux, networking, ubuntu, VMWare
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: