Hands-on task
Backup Script with the Date in the Filename
Write /usr/local/bin/backup-home that packs /root into the archive /backups/root-YYYY-MM-DD.tar.gz (the date being today's). Create the /backups directory if it doesn't exist. Run the script.
- date
- command substitution
- $( )
- tar
- mkdir -p