Backup module for WMDE
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
602 B

  1. #
  2. # params.pp
  3. #
  4. class wmdeit_backup::params {
  5. case $::osfamily {
  6. 'FreeBSD':{
  7. $borg_packages = [
  8. "py37-borgbackup",
  9. "fusefs-sshfs",
  10. ]
  11. $sshfs_cmd = '/usr/local/bin/sshfs'
  12. $sshfs_options = '-o reconnect -o direct_io' # buggy sshfs driver under freebsd
  13. $borg_cmd = "/usr/local/bin/borg"
  14. }
  15. 'Debian': {
  16. $borg_packages = [
  17. "borgbackup",
  18. "sshfs",
  19. ]
  20. $borg_cmd = "/usr/bin/borg"
  21. $sshfs_cmd = '/usr/bin/sshfs'
  22. }
  23. default: {
  24. }}
  25. $borg_repos = "/tank/backups"
  26. $borg_scripts = "/root/borg"
  27. $borg_mnt = "/mnt"
  28. $borg_options = "--nobsdflags --files-cache=ctime,size"
  29. }