diff --git a/borg_backup/readme.md b/borg_backup/readme.md index c743517..522100d 100644 --- a/borg_backup/readme.md +++ b/borg_backup/readme.md @@ -62,7 +62,7 @@ Borg is likely in your linux repositories. #### Create a new borg repo `mkdir ~/borg`
-`sudo borg init --encryption=none ~/borg/docker_backup` +`borg init --encryption=none ~/borg/docker_backup` Note the sudo. Borg commands should be run as root, so it can access everything. @@ -135,8 +135,9 @@ The script must be **executabe** - `chmod +x borg_backup.sh` It could ask about *Attempting to access a previously unknown unencrypted repository*
-Answer yes, this could be important as the automatic backup would stop at -this question otherwise. +Answer yes.
+If we would initialize the repo with sudo then it would be no issue, +but then non root user would not be able to enter the repo directory. ### Automatic execution @@ -156,7 +157,7 @@ Create a cron job that executes the script `crontab -l` - list current cronjobs
-`journalctl | grep cron` - cron history +`journalctl -u cronie` - cron history # Accessing the backup files @@ -168,7 +169,7 @@ Create a cron job that executes the script * choose one by the date, copy its identifier which is epoch time, e.g. 1588986941 * mount it to some folder
`sudo borg mount .::1588986941 /mnt/temp` -* browse the directory where mounted and do whatever is needed +* browse the directory where the archive is mounted and do whatever is needed * umount the backup
`sudo borg umount /mnt/temp`