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

  1. As root, create a gzip-compressed tar archive of /etc named /root/etc-backup.tar.gz.
  2. As student, create a bzip2-compressed archive ~/site.tar.bz2 of the directory ~/projects/site.
  3. Extract the release archive /opt/webasha/release.tar.xz into ~/deploy (create it).
  4. Copy ~/site.tar.bz2 to the backups directory in student's home on serverb.
  5. Mirror ~/projects/site to ~/site-mirror on serverb, preserving permissions and timestamps.