Monday, March 8, 2010

Move a directory over the network

tar -c -f - -p --numeric-owner $source_dir_1 | \
ssh $destination_host "cd $destination_location ; tar -x -p"