Less generic but more functional backup script