rsync Command Examples | rsync Command In Telugu

Hey! Well come back! Here, we are going to learn very useful command rsync. basically rsync is used to sync file system with same structure. It also used to data backup/copy.

rsync is free command line utility & In most of the system it available defiantly.




We can install rsync utility in debian based system using below command
apt-get install rsync
We can install rsync utility in redhat based system using below command
yum install rsync

Below command used to copy files without using option
rsync /root/Desktop/original/* /root/Desktop/backup/

Below command used for recursive copy, it means with sub folders.
rsync -avhr /root/Desktop/original/* /root/Desktop/backup/
Here
    -a is used for archive data.
    -v is used for show output.
    -h is used for show copied data in MB's,it means human              readable  format.

Below command used for include or exclude 

rsync -avz --include '*.zip *.jpg' --exclude '*.txt'  /root/Desktop/original/* /root/Desktop/backup/

Below command used to do not sync/copy the modified file at destination
rsync -avzu /root/Desktop/original/* /root/Desktop/backup/

Below command used to sync files to remote system.
rsync -avr /root/Desktop/original/* root@192.168.1.50:/root/Desktop/backup/

Below command used to copy the directory structure without copying files
rsync -av -f"+ */" -f"- *" /home/pkumar root@192.168.1.29:/opt/

Please visit : https://www.youtube.com/channel/UCBykMQqQ0q7GsC-u-YPimBA
for more updates.


Comments

Popular posts from this blog

Awk command with simple examples

Learn Linux in Telugu | Linux complete Free Course in Telugu by 7Hills