Update xb-backup.sh

order of operations