diff options
| author | St33v <github@f3rr3t.com> | 2019-09-08 22:38:50 +1000 |
|---|---|---|
| committer | St33v <github@f3rr3t.com> | 2019-09-08 22:38:50 +1000 |
| commit | 245101cfb4cc9b657ce4f12e5a911cdab729747b (patch) | |
| tree | dce9970f79bdf3b50765b519225449337cb3de58 | |
| parent | 101ccb1c518b1cec8f37ef16920140ea000a925e (diff) | |
working
| -rwxr-xr-x | borgAuto.sh | 18 | ||||
| -rw-r--r-- | borgtest/a/a | 0 | ||||
| l--------- | borgtest/a/symlink | 1 | ||||
| -rw-r--r-- | borgtest/b/b | 0 | ||||
| -rw-r--r-- | borgtest/c/c | 0 |
5 files changed, 13 insertions, 6 deletions
diff --git a/borgAuto.sh b/borgAuto.sh index b33cb12..62e8323 100755 --- a/borgAuto.sh +++ b/borgAuto.sh @@ -8,24 +8,30 @@ export REPOSITORY="/mnt/bak/st33vHome" #export BORG_PASSPHRASE="" # Backup all of /home except a few excluded directories and files -borg create -v --stats -e none --compression lz4 \ +borg create -v --stats --compression lz4 \ $REPOSITORY::'{hostname}-{now:%Y-%m-%dT%H:%M}' /home/st33v \ --exclude '/home/*/.cache' \ --exclude '/home/$USER/cargo' \ +--exclude '/home/st33v/.dropbox' \ +--exclude '/home/st33v/.config' --exclude '/home/lost+found' \ --exclude '*.img' \ --exclude '*.iso' \ +# Backup olho +borg create -v --stats --compression none --progress \ + '/mnt/bak/olho::{now}' /mnt/olho + # Route the normal process logging to journalctl 2>&1 # Prune the repo of extra backups -borg prune -v $REPOSITORY --prefix '{hostname}-' \ - --keep-hourly=6 \ - --keep-daily=7 \ - --keep-weekly=4 \ - --keep-monthly=6 \ +#borg prune -v $REPOSITORY --prefix '{hostname}-' \ +# --keep-hourly=6 \ +# --keep-daily=7 \ +# --keep-weekly=4 \ +# --keep-monthly=6 \ # Include the remaining device capacity in the log df -hl | grep --color=never /mnt/bak diff --git a/borgtest/a/a b/borgtest/a/a new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/borgtest/a/a diff --git a/borgtest/a/symlink b/borgtest/a/symlink new file mode 120000 index 0000000..95bdcc8 --- /dev/null +++ b/borgtest/a/symlink @@ -0,0 +1 @@ +../c/c
\ No newline at end of file diff --git a/borgtest/b/b b/borgtest/b/b new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/borgtest/b/b diff --git a/borgtest/c/c b/borgtest/c/c new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/borgtest/c/c |
