This is the fastest way to copy data from one server to another.It will compress the data and transfer .
1) rsync -avxH ~/source_dir/ username@remote_host:destination_directory
This will sync data under source_dir to destination_directory
2) rsync -avxH ~/source_dir username@remote_host:destination_directory
This will create a directory source_dir under destination_directory and copy data under source_dir
In case of local server
rsync -avxH /source /destination
1) rsync -avxH ~/source_dir/ username@remote_host:destination_directory
This will sync data under source_dir to destination_directory
2) rsync -avxH ~/source_dir username@remote_host:destination_directory
This will create a directory source_dir under destination_directory and copy data under source_dir
In case of local server
rsync -avxH /source /destination
No comments:
Post a Comment
Thank You for your valuable comment