Skip to main content

Configuration parameters

General Parameters

ParameterTypeDefault ValueUsage / DescriptionPossible Values
LogLevelstring"info"Logging verbosity. Controls log output level.debug, info, warn, error
IndexCacheDirstring"$CONFIG_DIR/index_cache"Directory for storing index cache files.Any valid path
TmpFileLocationstringOS temp dirDirectory for temporary files.Any valid path
TmpFileThresholdint6410485760 (10 MB)Threshold (in bytes) for using temp files.Any positive integer
BlockFileThresholdint644194304 (4 MB)Threshold (in bytes) for splitting files into blocks.Any positive integer
EncryptionKeyFilestring"$CONFIG_DIR/.encryption_key"Path to file containing the encryption key.Any valid path
EncryptionKeystring""The encryption key itself (read from file).Any string
EnableCompressionbooltrueEnable ZSTD compression for uploads/downloads.true, false
EnableMD5ChecksumboolfalseEnable MD5 checksum calculation for files.true, false
ConcurrentWorkersint10Number of concurrent workers for backup/restore operations.Any positive integer
ManageCrontabsbooltrueAllow Snaper to manage system crontabs for scheduled backups.true, false

S3 Parameters

ParameterTypeDefault ValueUsage / DescriptionPossible Values
Bucketstring""S3 bucket name. Can be set via env DATASHELTER_BUCKETAny string
AccessKeystring""S3 access key. Can be set via env AWS_ACCESS_KEY_ID.Any string
SecretKeystring""S3 secret key. Can be set via env AWS_SECRET_ACCESS_KEY.Any string
Endpointstring"https://s3.datashelter.cloud"S3 endpoint URL. Used for custom S3 providers (e.g., Scaleway).Any valid URL
Regionstring"eu-west-1"S3 region. Can be set via env AWS_REGION.eu-west-1
DisableSSLboolfalseDisable SSL for S3 connections (set true if endpoint is http).true, false
StorageClassstring"STANDARD"S3 storage class for uploaded objects.STANDARD, STANDARD_IA, ONEZONE_IA
MaxRetriesint10Maximum number of retries for S3 operations.Any positive integer
MultipartPartSizestring"5GB"Part size for S3 multipart uploads (e.g., "5GB" or "100MB").Any valid size string (e.g., 100MB, 5GB)
MultipartConcurrencyint5Number of concurrent parts for S3 multipart uploads.Any positive integer

Backups.Files (FileBackup)

ParameterTypeDefaultUsage / DescriptionPossible Values
Namestring""Name of the backup set. Used to reference the backup.Any string
IncludedPaths[]string[]List of paths to include in the backup.Any valid paths
ExcludedPaths[]string[]List of paths to exclude from the backup.Any valid paths
FollowSymlinksboolfalseWhether to follow symlinks during backup.true, false

Backups.Databases (DatabaseBackup)

ParameterTypeDefaultUsage / DescriptionPossible Values
Namestring""Name of the database backup.Any string
Typestring""Database type (e.g., mysql, postgres).mysql, postgres, ...
DBLaunchOpts[]string[]Additional options for launching the database backup command.Any string array

Notes

  • Environment Variable Overrides: Some S3 config parameters (AccessKey, SecretKey, Bucket, Region) can be overridden by environment variables.
  • Config File Location: The config file is typically located in ~/.config/snaper/config.yaml.
  • Encryption: If encryption is enabled, the key is stored in a file and referenced by EncryptionKeyFile.
  • Backups Section: The Backups section is a list of backup sets (files and databases), each with its own parameters.