From 5aee9055085d2b7dd1239e47667bca6fb25c813d Mon Sep 17 00:00:00 2001 From: Marc Michalsky Date: Fri, 1 Dec 2023 09:30:45 +0100 Subject: [PATCH] fix some errors in README.md --- README.md | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 99b7c63..f8b302b 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,7 @@ sudo apt-get install libfuse3-dev fuse3 # needed for pyfuse311 Prepare virutal environment. ```bash +sudo apt install python3-venv sudo mkdir /opt/borg && cd /opt/borg sudo python3 -m venv borg-venv ``` @@ -114,14 +115,6 @@ nano $HOME/.borg-env - Set a strong passphrase - Define everything you want to include in your backup as an **absolute path** in the `BORG_TARGETS` array -### Publish backup result via _nfty_ - -You can use a [_ntfy_](https://docs.ntfy.sh/) instance to publish the result of your backup process to a _ntfy_ topic. Just set the corresponding environment variables in the `.borg-env`: - -- Set `NTFY` to `true` -- Set `NTFY_URL` to the URL of your preferred _ntfy_ instance including the desired topic, e.g. `"https://ntfy.sh/myborgbackup"` -- Set your _ntfy_ token if necessary - Make the script executable. ```bash @@ -135,6 +128,14 @@ cd /usr/local/bin ln -s /opt/borgbackup/borgbackup.sh borgbackup ``` +### Publish backup result via _nfty_ + +You can use a [_ntfy_](https://docs.ntfy.sh/) instance to publish the result of your backup process to a _ntfy_ topic. Just set the corresponding environment variables in the `.borg-env`: + +- Set `NTFY` to `true` +- Set `NTFY_URL` to the URL of your preferred _ntfy_ instance including the desired topic, e.g. `"https://ntfy.sh/myborgbackup"` +- Set your _ntfy_ token if necessary + ### Logs Create a logfile with read and write permissions for every user. @@ -191,7 +192,7 @@ The scheduled backups can be automated by using `cron`. To create scheduled backups, place this line in your `crontab` (edit with `crontab -e`): ``` -0 3 * * * export BORG_RSH='ssh -oBatchMode=yes' && /usr/local/bin/borgbackup auto /dev/null 2>&1 +0 3 * * * export BORG_RSH='ssh -oBatchMode=yes' && /usr/local/bin/borgbackup auto > /dev/null 2>&1 ``` ## Using `borg`