Update backup.sh

Logical bug fix + indentation correction