RH124 Ch 13: Back Up and Copy Files Between Servers
Before a migration, back up the configuration of servera, archive the website project, unpack the new release, and copy the backups to serverb over SSH (student's password on serverb is `student`).
Tasks
- As root, create a gzip-compressed tar archive of /etc named /root/etc-backup.tar.gz.
- As student, create a bzip2-compressed archive ~/site.tar.bz2 of the directory ~/projects/site.
- Extract the release archive /opt/webasha/release.tar.xz into ~/deploy (create it).
- Copy ~/site.tar.bz2 to the backups directory in student's home on serverb.
- Mirror ~/projects/site to ~/site-mirror on serverb, preserving permissions and timestamps.