public override string UpdateDatabaseRecord(DatabaseRecord record, long etag)
        {
            if (Configuration.TaskId == 0)
            {
                // this is a new backup configuration
                Configuration.TaskId = etag;
            }

            record.AddPeriodicBackupConfiguration(Configuration);
            return(null);
        }
        public override string UpdateDatabaseRecord(DatabaseRecord record, long etag)
        {
            if (Configuration.TaskId == 0)
            {
                // this is a new backup configuration
                Configuration.TaskId = etag;
                if (string.IsNullOrEmpty(Configuration.Name))
                {
                    Configuration.Name = Configuration.GetDefaultTaskName();
                }
                record.EnsureTaskNameIsNotUsed(Configuration.Name);
            }

            record.AddPeriodicBackupConfiguration(Configuration);
            return(null);
        }