2
0

Backup_list.conf.default 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. ## OPTIONS
  2. # Backup directory.
  3. backup_dir="__BACKUP_DIR__"
  4. # Encrypted backup directory.
  5. # Usually just next to the backup directory
  6. enc_backup_dir="__ENC_BACKUP_DIR__"
  7. # Encryption
  8. # true/false
  9. encrypt=__ENCRYPT__
  10. # Password for encryption
  11. # This file should be set at chmod 400
  12. cryptpass="__PASSKEY__"
  13. # Compression algorithm to use
  14. # gzip
  15. # Standard compression algorithm.
  16. # Fast and light on ressources.
  17. # lzop
  18. # Very fast algorithm.
  19. # Low efficency
  20. # zstd
  21. # Zstandard algorithm
  22. # Similar to gzip but faster
  23. # bzip2
  24. # Very slow but very effective.
  25. # Light on ressources.
  26. # lzma
  27. # Faster than bzip2 and even more effective.
  28. # But demanding in resources.
  29. # lzip
  30. # Similar to lzma.
  31. # xz
  32. # Similar to lzma but more recent.
  33. #
  34. # none
  35. # No compression
  36. # Concatenation in a tar file only
  37. # symlink
  38. # No compression
  39. # Symbolic link to the YunoHost tar file from /home/yunohost.backup/archives
  40. # The symbolic link is used only for the local $backup_dir of archivist.
  41. # Real tar files are send to recipients.
  42. #
  43. # This mode allow archivist to not duplicate locally the backup if not compressed.
  44. # WARNING: Does not work with encryption !
  45. #
  46. # Default: gzip
  47. ynh_compression_mode=__COMPRESS_YNH__
  48. files_compression_mode=__COMPRESS_FILES__
  49. # --------------------------------------------------------------------------------------
  50. ## YUNOHOST BACKUPS
  51. # YunoHost backups
  52. # Specific backup made by 'yunohost backup' command
  53. # ynh_core_backup=__CORE_BACKUP__: Make a backup of the core of YunoHost, without any apps.
  54. ynh_core_backup=true
  55. ynh_core_pre_backup=
  56. ynh_core_post_backup=
  57. # ynh_app_backup=APP: Make a backup of an app.
  58. # You can add as many lines as you want to save multiple apps.
  59. # List all apps with sudo yunohost app list --installed | grep "id: "
  60. # ynh_app_backup=wordpress
  61. # If you don't want an app with a lot of data to backup those big files, please add 'do_not_backup_data' after the app name.
  62. # ynh_app_backup=transmission do_not_backup_data
  63. ynh_app_pre_backup=
  64. ynh_app_post_backup=
  65. ynh_app_backup=
  66. # --------------------------------------------------------------------------------------
  67. ## FILES BACKUPS
  68. # Max size for each backup in Mb.
  69. # Be carreful, it's only a soft limit, that means the script will try to limit each backup.
  70. # Because, it will never made more than one backup for a single directory (Even if it's a real big directory without subdirectories). And the same if there's files next to subdirectories, only one backup will be made for all this files.
  71. max_size=500
  72. # Backup of files and directories
  73. # Add as many lines as you want for each directory or file you want to be backuped.
  74. # Exclude a directory, a file, or multiples files with a regex with the exclude_backup instruction.
  75. # file_to_backup="/directory/to backup"
  76. # file_to_backup=/file/to backup
  77. # exclude_backup="/directory/to exclude"
  78. # exclude_backup=/file/to exclude
  79. # exclude_backup="/exclude/all/tarball/in_this_directory/.tar.gz$"
  80. files_pre_backup=
  81. files_post_backup=
  82. file_to_backup=
  83. exclude_backup=
  84. # --------------------------------------------------------------------------------------
  85. ## BACKUPS RECIPIENTS
  86. # All options following a recipient name will be enabled for this recipient only.
  87. # > recipient name=Name of this recipient.
  88. # type=Choose between one of the scripts in the "senders" directory.
  89. # destination directory=Directory where to put the backup in the other side.
  90. # encrypt=Override main option for encryption. (true/false) (Optionnal option)
  91. # specific option for type=See the chosen script to know what's the options.
  92. # exclude backup=Exclude a backup file or a directory from the backup. This option can be duplicated. (Optionnal option)
  93. # include backup=Choose the only file or directory which be send. This option can be duplicated. (Optionnal option)
  94. # > recipient name=local example
  95. # type=local
  96. # destination directory=/my/local/backup
  97. # encrypt=false
  98. # pre_backup=
  99. # post_backup=
  100. # exclude backup=/exclude/dir
  101. # include backup=
  102. # > recipient name=rsync ssh example
  103. # type=rsync_ssh
  104. # destination directory=backup
  105. # encrypt=false
  106. # ssh_host=domain.tld
  107. # ssh_user=user
  108. # ssh_port=22
  109. # ssh_key=/home/user/.ssh/id_rsa
  110. # ssh_pwd=
  111. # ssh_options=
  112. # pre_backup=
  113. # post_backup=
  114. # exclude backup=/exclude/dir
  115. # include backup=
  116. # > recipient name=b2 example
  117. # type=b2
  118. # destination directory=backup
  119. # encrypt=false
  120. # b2_bucket=my-bucket
  121. # pre_backup=
  122. # post_backup=
  123. # exclude backup=/exclude/dir
  124. # include backup=