Managing SSH chroots to backup a lot of machines
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.

79 lines
1.6 KiB

  1. .Dd December 28, 2018
  2. .Dt EVOBACKUP-INCL 5
  3. .Os
  4. .Sh NAME
  5. .Nm evobackup-incl
  6. .Nd incremental backup configuration
  7. .Sh SYNOPSIS
  8. .D1 +%Y-%m-%d.-%day
  9. .Sh DESCRIPTION
  10. Located by default in
  11. .Pa /etc/evobackup/ ,
  12. each
  13. .Nm
  14. file is named after the
  15. .Xr bkctld 8
  16. backup for which the rules it contains must apply.
  17. .Pp
  18. The rules it defines decide which incremental backups are kept when running
  19. .Bd -literal -offset indent
  20. # bkctld rm
  21. .Ed
  22. .Pp
  23. Each line defines a single rule.
  24. The first part of the rule describes when the backup was taken,
  25. the second part decides how long to keep it.
  26. Lines beginning with the
  27. .Sq #
  28. character are comments and are ignored.
  29. The order of the rules does not matter.
  30. .Pp
  31. Evobackups that do not have their nominal
  32. .Nm
  33. file use the default rules defined in
  34. .Pa /usr/share/bkctld/inc.tpl
  35. .Sh EXAMPLES
  36. Keep today's backup:
  37. .Bd -literal -offset indent
  38. +%Y-%m-%d.-0day
  39. .Ed
  40. .Pp
  41. Keep yesterday's backup:
  42. .Bd -literal -offset indent
  43. +%Y-%m-%d.-1day
  44. .Ed
  45. .Pp
  46. Keep the first day of this month:
  47. .Bd -literal -offset indent
  48. +%Y-%m-01.-0month
  49. .Ed
  50. .Pp
  51. Keep the first day of last month:
  52. .Bd -literal -offset indent
  53. +%Y-%m-01.-1month
  54. .Ed
  55. .Pp
  56. Keep backups for every 15 days:
  57. .Bd -literal -offset indent
  58. +%Y-%m-01.-1month
  59. +%Y-%m-15.-1month
  60. .Ed
  61. .Pp
  62. Keep a backup of the first day of january:
  63. .Bd -literal -offset indent
  64. +%Y-01-01.-1month
  65. .Ed
  66. .Pp
  67. Keep backups of the last 4 days and the first day of the last 2 months:
  68. .Bd -literal -offset indent
  69. +%Y-%m-%d.-0day
  70. +%Y-%m-%d.-1day
  71. +%Y-%m-%d.-2day
  72. +%Y-%m-%d.-3day
  73. +%Y-%m-01.-0month
  74. +%Y-%m-01.-1month
  75. .Ed
  76. .Sh SEE ALSO
  77. .Xr bkctld 8 ,
  78. .Xr cron 8 ,
  79. .Pa /etc/evobackup/tpl/inc.tpl