No need to call chmod on it twice, just fix the permissions in the first chmod call
Initial work on being able to restore backups