Refactored the backup.bash