From e76ef1816a0aa7fe782486d48022020575000f85 Mon Sep 17 00:00:00 2001 From: St33v Date: Thu, 12 Sep 2019 19:55:37 +1000 Subject: now with added DIFF --- borgAuto.sh | 42 +----------------------------------------- 1 file changed, 1 insertion(+), 41 deletions(-) mode change 100755 => 120000 borgAuto.sh (limited to 'borgAuto.sh') diff --git a/borgAuto.sh b/borgAuto.sh deleted file mode 100755 index 62e8323..0000000 --- a/borgAuto.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/bash -# 8 Sept 2019 SJ Pratt -# Copied from https://blog.andrewkeech.com/posts/170718_borg.html -# the envvar $REPONAME is something you should just hardcode -export REPOSITORY="/mnt/bak/st33vHome" - -# Fill in your password here, borg picks it up automatically -#export BORG_PASSPHRASE="" - -# Backup all of /home except a few excluded directories and files -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 \ - -# Include the remaining device capacity in the log -df -hl | grep --color=never /mnt/bak - -borg list $REPOSITORY - -exit 0 diff --git a/borgAuto.sh b/borgAuto.sh new file mode 120000 index 0000000..398a57c --- /dev/null +++ b/borgAuto.sh @@ -0,0 +1 @@ +/etc/systemd/system/borgAuto.sh \ No newline at end of file -- cgit v1.3