Hands-on task
This task is step 14 of the course “First steps in Linux”
Pack a directory into an archive and unpack it
The /root/site directory with the website's files needs to go to another server.
- Pack it into a compressed archive
/root/site.tar.gz. Paths inside the archive must start withsite/— notroot/. - Make sure the archive works: create the directory
/root/restoreand unpack the archive there. You should end up with/root/restore/site— a copy of the original directory.
What you'll practise:
- tar
- gzip
- archives
- unpacking