OK everything is clear now, thanks.
I added "backup" to /opt/shutdown.sh
Then, I added the following lines to /etc/profile:
alias shutdown="/usr/bin/exitcheck.sh shutdown"
alias poweroff="/usr/bin/exitcheck.sh shutdown"
alias reboot="/usr/bin/exitcheck.sh reboot"
And then added etc/profile to /opt/.filetool.lst