Exemplo n.º 1
0
        internal GetBackupConfigurationScript(GetBackupConfigurationScript script)
        {
            if (script == null)
            {
                throw new ArgumentNullException(nameof(script));
            }

            Arguments   = script.Arguments;
            Exec        = script.Exec;
            TimeoutInMs = script.TimeoutInMs;
        }
Exemplo n.º 2
0
        internal AzureSettings(AzureSettings settings)
        {
            if (settings == null)
            {
                throw new ArgumentNullException(nameof(settings));
            }

            AccountKey       = settings.AccountKey;
            AccountName      = settings.AccountName;
            RemoteFolderName = settings.RemoteFolderName;
            SasToken         = settings.SasToken;
            StorageContainer = settings.StorageContainer;
            Disabled         = settings.Disabled;

            if (settings.GetBackupConfigurationScript != null)
            {
                GetBackupConfigurationScript = new GetBackupConfigurationScript(settings.GetBackupConfigurationScript);
            }
        }
Exemplo n.º 3
0
        internal GlacierSettings(GlacierSettings settings)
        {
            if (settings == null)
            {
                throw new ArgumentNullException(nameof(settings));
            }

            VaultName       = settings.VaultName;
            AwsRegionName   = settings.AwsRegionName;
            AwsAccessKey    = settings.AwsAccessKey;
            AwsSecretKey    = settings.AwsSecretKey;
            AwsSessionToken = settings.AwsSessionToken;

            RemoteFolderName = settings.RemoteFolderName;
            Disabled         = settings.Disabled;

            if (settings.GetBackupConfigurationScript != null)
            {
                GetBackupConfigurationScript = new GetBackupConfigurationScript(settings.GetBackupConfigurationScript);
            }
        }
Exemplo n.º 4
0
        internal S3Settings(S3Settings settings)
        {
            if (settings == null)
            {
                throw new ArgumentNullException(nameof(settings));
            }

            BucketName      = settings.BucketName;
            CustomServerUrl = settings.CustomServerUrl;
            AwsRegionName   = settings.AwsRegionName;
            AwsAccessKey    = settings.AwsAccessKey;
            AwsSecretKey    = settings.AwsSecretKey;
            AwsSessionToken = settings.AwsSessionToken;

            RemoteFolderName = settings.RemoteFolderName;
            Disabled         = settings.Disabled;

            if (settings.GetBackupConfigurationScript != null)
            {
                GetBackupConfigurationScript = new GetBackupConfigurationScript(settings.GetBackupConfigurationScript);
            }
        }