Grsync rpm3/24/2023 Let’s verify whether directory is copied or not, execute below command, ~]# ls -ld /opt/backup/* Sent 4.09M bytes received 96 bytes 8.19M bytes/sec Let’s assume we want to copy or sync pkumar user’s home directory to /opt/backup folder, execute the below rsync command with options -zavh, ~]# rsync -zavh /home/pkumar /opt/backup ![]() Example:2) Copy or Sync directory locally (rsync -zavh) In above we have used the options like -z for compression, -v for verbose output and -h for human readable output. Sent 4.09M bytes received 35 bytes 2.73M bytes/sec Let’s assume we want to copy a file from pkumar user’s home directory to /opt/back folder, execute the below rsync command ~]# rsync -zvh /home/pkumar/OpenStack-Networking.pdf /opt/backup Let’s jump into the useful examples of rsync command Example:1) Copy or Sync files locally (rsync -zvh)
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |