Monday, October 15, 2007

tar - copy all files in one directory to another on local server

tar - copy all files in one directory to another on local server
Description

To copy all files in one directory to another on local server:

# cd olddir; tar cf - . | (cd newdir; tar xvpf -)
Example

cd olddir; tar cf - . | (cd newdir; tar xvpf -)

No comments: