A long script that sends a desktop popup at every step turns the corner of the screen into a queue. notify-send can update the popup it already showed, which is a lot friendlier.
id=$(notify-send -p "Backup" "Running...")
# ... do the work ...
notify-send -r "$id" "Backup" "Done"
The man page describes -p (--print-id) as printing the notification ID, so the command substitution captures it in $id. With -r (--replace-id) you pass that ID back and the new text takes the place of the old notification.
You can combine it with the other documented options. -u critical sets the urgency (low, normal or critical) and -t 5000 asks for a duration in milliseconds. A failure message could be:
notify-send -r "$id" -u critical "Backup" "Failed, check the log"
There are two caveats. First, --replace-id asks the notification daemon to replace a message, and the man page says nothing about which daemons honour it. If your desktop shows two popups, that is the daemon, not the command. Second, -t is only a request. The man page says GNOME Shell and Notify OSD always ignore it, and Plasma ignores it for critical notifications.
The example follows the libnotify man page for version 0.8.1. It was not run on a desktop session here, so check notify-send --help on your own version.
Further reading: notify-send man page