← All labs
ScriptingIntermediate~8 min

Write your first backup script

Automate a tiny backup. Write a script ~/backup.sh that creates a ~/backups/ directory and drops a latest.tar file in it. Make the script executable, then run it so the backup actually exists.

Your mission

  • Create an executable `~/backup.sh`
  • Run it so `~/backups/latest.tar` exists

Everything here is simulated and safe — break things freely. Your progress is tracked on the right and saved in this browser.

player@shellquest — write-a-backup-script