Long commands and a second window with something more interesting in it do not mix. Letting the Mac make a sound at the end solves that.
afplay /System/Library/Sounds/Glass.aiff
Per the man page, afplay plays an audio file to the default audio output. The built-in alert sounds live in /System/Library/Sounds, as AIFF files with names like Glass, Ping, Funk and Basso, and ls on that folder shows what your version has.
Put it behind the job you are waiting for:
./backup.sh; afplay /System/Library/Sounds/Glass.aiff
The semicolon means the sound plays whether the job succeeded or not. If you want different sounds for success and failure, use && and || instead:
./backup.sh && afplay /System/Library/Sounds/Glass.aiff || afplay /System/Library/Sounds/Basso.aiff
The caveat is that the sound goes to whatever output is active. If the Mac is muted, or the headphones you forgot about are connected, you hear nothing and the job still finished. Third-party pages mention extra options for volume and duration, but the man page I could verify lists only -h, so check afplay -h on your own system before relying on them. For longer jobs a sound is only half of a notification, and I still glance at the terminal before I trust it.
Further reading: afplay man page