Advertisement
grondinm

btrfs.conf

Apr 20th, 2015
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.59 KB | None | 0 0
  1. snapshot_dir @Backups
  2.  
  3. ## Always create snapshots, even if the target volume is unreachable
  4. snapshot_create_always yes
  5.  
  6. # Perform incremental backups (set to "strict" if you want to prevent
  7. # creation of initial backups if no parent is found)
  8. incremental yes
  9.  
  10. # ssh key for ssh volumes/targets
  11. #ssh_identity /etc/btrbk/ssh/id_ed25519
  12. #ssh_user root
  13.  
  14. # Preserve weekly/monthly backups from given day of week
  15. preserve_day_of_week friday
  16.  
  17. # Preserve matrix for snapshots
  18. snapshot_preserve_daily 0
  19. snapshot_preserve_weekly 4
  20. snapshot_preserve_monthly 0
  21.  
  22. # Preserve matrix for backups
  23. target_preserve_daily 0
  24. target_preserve_weekly 4
  25. target_preserve_monthly 0
  26.  
  27. # Make sure the deletion of subvolumes is committed to disk when btrbk terminates
  28. btrfs_commit_delete after
  29.  
  30. # Enable compatibility mode for btrfs-progs < 3.17.
  31. # Set this either globally or in a specific "target" section.
  32. btrfs_progs_compat no
  33.  
  34. # Dump verbose output of "btrfs receive" to a specified file. If set
  35. # to "sidecar", the file will be named "<backup_subvolume>.btrbk.log".
  36. # Note that this log file can become very big, as every change of
  37. # every file is being logged.
  38. #receive_log /var/log/btrbk_receive.log
  39. #receive_log sidecar
  40. #receive_log no
  41.  
  42.  
  43. #
  44. # Volume section: "volume <volume-directory>"
  45. # <volume-directory> Directory of a btrfs volume (or subvolume)
  46. # containing the subvolume to be backuped
  47. # (usually the mount-point of a btrfs filesystem
  48. # mounted with subvolid=0 option)
  49. #
  50. # Subvolume section: "subvolume <subvolume-name>
  51.  
  52. # <subvolume-name> Subvolume to be backuped, relative to
  53. # <volume-directory> in volume section
  54. #
  55. # Target section: "target <type> <volume-directory>"
  56.  
  57. # <type> Backup type, currently only "send-receive"
  58.  
  59. # <volume-directory> Directory of a btrfs volume (or subvolume)
  60. # receiving the backups
  61. #
  62. #
  63. # NOTE: The parser does not care about indentation, this is only for
  64. # human readability. The options always apply to the last section
  65. # encountered, overriding the corresponding option of the upper
  66. # section. This means that the global options must be set before any
  67. # "volume" section.
  68. #
  69.  
  70. volume /mnt/btrfsroot
  71. subvolume @Home
  72. target send-receive /media/Storage3/Backup/@HomeBackup
  73.  
  74. volume /mnt/btrfsroot
  75. subvolume @Storage
  76. target send-receive /media/Storage3/Backup/@StorageBackup
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement