Skip to main content

Restic Role

Install and configure restic/resticprofile for automated repository backups.


Variables​

VariableTypeOptionsDefaultDescription
resticprofile_versionstring---0.33.1resticprofile release version
rest_server_versionstring---0.14.0rest-server release version
restic_modestringclient, server, bothclientrole operating mode
restic_userstring---backupsystem user for restic operations
restic_user_homestring---/home/{{ restic_user }}home directory of the restic user
restic_config_dirstring---/etc/resticprofiledirectory for resticprofile configuration
restic_cache_dirstring---/var/cache/resticdirectory for restic cache data
restic_log_dirstring---{{ restic_config_dir }}/logsdirectory for restic log files
restic_password_dirstring---{{ restic_config_dir }}/passwordsdirectory for repository password files
restic_ssh_key_typestring---ed25519SSH key type for backup connections
restic_ssh_key_pathstring---{{ restic_user_home }}/.ssh/id_{{ restic_ssh_key_type }}path to the SSH private key
restic_server_repo_basestring---/var/lib/resticbase directory for server-side repositories
restic_server_hoststring---""hostname or IP of the rest-server
restic_repositorieslist of dict---[]list of restic repositories to manage
restic_repositories.namestring---repository name
restic_repositories.passwordstring---repository password
restic_repositories.backup_pathslist of string---paths to back up
restic_repositories.exclude_patternslist of string---patterns to exclude from backup
restic_repositories.schedulestring---systemd calendar schedule (e.g. *-*-* 02:00:00)
restic_repositories.retentiondict------