Hands-on task
This task is step 5 of the course “Shipping a release”
Archive a directory, excluding a subdirectory
Build a gzip archive /root/site.tar.gz from the directory /root/site, but exclude the cache subdirectory cache (its contents must not end up in the archive). Include everything else — index.html and css/.
What you'll practise:
- tar
- gzip
- file exclusion
- --exclude
- archives