'README.md' hinzufügen
This commit is contained in:
40
README.md
Normal file
40
README.md
Normal file
@@ -0,0 +1,40 @@
|
||||
# Borg backup script
|
||||
## Installation
|
||||
```
|
||||
git clone ...
|
||||
cp config.exp config
|
||||
nano config
|
||||
|
||||
```
|
||||
* Now set your config
|
||||
```
|
||||
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")!
|
||||
```
|
||||
crontab -e
|
||||
|
||||
```
|
||||
> 0 3 * * * /opt/backup/run.sh > /dev/null 2>&1
|
||||
|
||||
|
||||
## Config
|
||||
### Add folders to backup
|
||||
```
|
||||
nano run.sh
|
||||
|
||||
```
|
||||
Add your folders to "borg create" and don't forget "\" on each, but the last line.
|
||||
|
||||
### Set backup pruning
|
||||
```
|
||||
nano run.sh
|
||||
```
|
||||
> borg prune \
|
||||
> --list \
|
||||
> --prefix '{hostname}-' \
|
||||
> --show-rc \
|
||||
> --keep-daily 7 \
|
||||
> --keep-weekly 4 \
|
||||
> --keep-monthly 6
|
||||
Reference in New Issue
Block a user