syseleven / puppet-restic

Puppet module to configure Restic systemd service to backup/forget/restore data.
1 stars 5 forks source link

Allow exclude from backups #8

Closed baurmatt closed 2 years ago

baurmatt commented 2 years ago

Please make it possible to exclude files from the backup -> https://restic.readthedocs.io/en/latest/040_backup.html#excluding-files

--exclude should be enough for now :)

baurmatt commented 2 years ago

This can be hacked:

  concat::fragment { 'restic_fragment_restic_BACKUP_FLAGS_EXCLUDE':
    content => 'BACKUP_FLAGS="--exclude /path/to/be/excluded /path/to/be/backuped"',
    target  => '/etc/default/restic_myapplication',
    order   => '100',
  }
crazymind1337 commented 2 years ago

Won't be fixed. There is the parameter backup_flags which can be used for your case.