add new backup_in_samedir backup_mode