Hands-on task
This task is step 6 of the course “Archives and backups”
tar: exclude a directory from the archive
Archive /root/proj into /root/proj.tar.gz, but exclude the node_modules directory — it must not end up in the archive.
What you'll practise:
- tar
- gzip
- --exclude
- glob patterns
- argument order