From e9e38d26da5a8b4e4f839c65ca9926b01a76329c Mon Sep 17 00:00:00 2001 From: DoTheEvolution Date: Thu, 7 May 2020 02:14:43 +0200 Subject: [PATCH] update --- borg_backup/readme.md | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/borg_backup/readme.md b/borg_backup/readme.md index bf30a56..022411f 100644 --- a/borg_backup/readme.md +++ b/borg_backup/readme.md @@ -20,10 +20,15 @@ This allows to keep snapshots from several days, weeks and months, while not wasting disk space. In this setup borg is installed directly on the host system.
-A script is created that backs up the entire docker directory locally.
-Cronjob is executing this script daily. +A script is created that backs up the entire docker directory and /etc locally.
+Cronjob is set to execute this script daily. -# files and directory structure +The repository is also pruned on each run of the script - +old archives are deleted while keeping the ones fitting the retention rules +in the script.
+One backup per day for last 7 days, last 4 weeks, last 6 months are kept. + +# Files and directory structure ``` /home/ @@ -39,9 +44,14 @@ Cronjob is executing this script daily. ├── ... ``` -* `docker_backup/` - borg repository directory, created by `borg init` command +* `docker_backup/` - borg repository directory * `borg_backup.sh` - the backup script that adds new archive in to the repository -* `borg_backup.log` - log file with dates of backups +* `borg_backup.log` - log file with the dates of backups + +Only `borg_backup.sh` has to be provided.
+Repo directory is created by `borg init` command +and the log file is created on the first run. + # The setup