'README.md' ändern

This commit is contained in:
2018-09-19 08:51:12 +00:00
parent 2aed415947
commit f05adefcbe

View File

@@ -4,17 +4,19 @@
git clone ... git clone ...
cp config.exp config cp config.exp config
nano config nano config
``` ```
* Now set your config
Now set your config
``` ```
ssh-keygen -t rsa -b 4096 -f id_backup ssh-keygen -t rsa -b 4096 -f id_backup
``` ```
* Copy content of id_backup to your backup server. (~/.ssh/authorized_keys) IMPORTANT: use correct user (exp. "borg")!
Copy content of id_backup to your backup server. (~/.ssh/authorized_keys) IMPORTANT: use correct user (exp. "borg")!
``` ```
crontab -e crontab -e
``` ```
> 0 3 * * * /opt/backup/run.sh > /dev/null 2>&1 > 0 3 * * * /opt/backup/run.sh > /dev/null 2>&1
@@ -23,7 +25,6 @@ crontab -e
### Add folders to backup ### Add folders to backup
``` ```
nano run.sh nano run.sh
``` ```
Add your folders to "borg create" and don't forget "\" on each, but the last line. Add your folders to "borg create" and don't forget "\" on each, but the last line.
@@ -31,10 +32,13 @@ Add your folders to "borg create" and don't forget "\" on each, but the last lin
``` ```
nano run.sh nano run.sh
``` ```
> borg prune \
> --list \ ```
> --prefix '{hostname}-' \ borg prune \
> --show-rc \ --list \
> --keep-daily 7 \ --prefix '{hostname}-' \
> --keep-weekly 4 \ --show-rc \
> --keep-monthly 6 --keep-daily 7 \
--keep-weekly 4 \
--keep-monthly 6
```