modify the bugs in backup.sh