![]() ![]() We should only see tps_report1.txt in there.įrom Server1, run a remote copy of our files4backup directory back to Client1: rsync -avz /home/cloud_user/files4backup/ on Client1, verify that tps_report2. Verify that it’s gone: cd /home/cloud_user/files4backup/ To install Grsync in Fedora, use this command: sudo dnf install grsync. On Client1, remove tps_report2.txt: rm /home/cloud_user/files4backup/tps_report2.txt To install Grsync in Ubuntu, use this command: sudo apt-get install grsync. Open the tps_report1.txt file to verify that the changes were carried over: vim tps_report1.txt Delete a File in the files4backup Directory on Client1 and Restore It from Server1 Open the tps_report1.txt file: vim /home/cloud_user/files4backup/tps_report1.txtĪdd some text to the file and save it, then perform another remote copy: rsync -avz /home/cloud_user/files4backup/ on Server1: OPTIONAL – Modify tps_report1.txt and Verify That the Changes Are Carried over after Performing Another Copy to Server1 The two files that we created in in the last step should be present. This can be accomplished by logging into Server1 and running the following commands: cd /home/cloud_user/files4backup Verify that the contents of the files4backup directory were copied from Client1 to Server1. If so, use the one provided on the lab page for cloud_user Run the following command: rsync -avz /home/cloud_user/files4backup/ may be prompted for a password. Touch /home/cloud_user/files4backup/tps_report2.txt Using rsync, Copy the Files from Client1 to Server1 Create a Directory for Backup on Client1Ĭreate a new directory called files4backup: mkdir /home/cloud_user/files4backup Create Two Files in files4backup, tps_report1.txt and tps_report2.txt, Which Will Be Used to Verify That the Backup Was Successful Later OnĬreate two new text files, tps_report1.txt and tps_report2.txt: touch /home/cloud_user/files4backup/tps_report1.txt If you do not elevate privileges to root, you will need to add sudo to the beginning of the command. Note: To use the above command without adding sudo, you will need to be the root user. Install Rsync on both Server1 and Client1: yum install rsync Successfully complete this lab by achieving the following learning objectives: Install Rsync
0 Comments
Leave a Reply. |