change install directory for borg to user/bin/
parent
8a495b9a9f
commit
571655f9b1
9
config
9
config
|
|
@ -13,10 +13,10 @@ fi
|
||||||
# Beginning of configuration:
|
# Beginning of configuration:
|
||||||
#############################
|
#############################
|
||||||
|
|
||||||
#BORG="/usr/bin/borg"
|
#BORG=$(which borg)
|
||||||
|
|
||||||
SYSTEM_NAME="ths"
|
SYSTEM_NAME="frameless"
|
||||||
BORG_REPO="bryan@172.16.1.83:/srv/borg/${SYSTEM_NAME}"
|
BORG_REPO="ths.tnet.space:/mnt/data/borg/${SYSTEM_NAME}"
|
||||||
|
|
||||||
# If using a non-standard SSH port ssh:// have to be specified (per borg v1.0.9)
|
# If using a non-standard SSH port ssh:// have to be specified (per borg v1.0.9)
|
||||||
#BORG_REPO="ssh://<user>@<reposerver>:<ssh_port>/srv/borg/${SYSTEM_NAME}"
|
#BORG_REPO="ssh://<user>@<reposerver>:<ssh_port>/srv/borg/${SYSTEM_NAME}"
|
||||||
|
|
@ -33,7 +33,6 @@ PATHS=(
|
||||||
"/srv"
|
"/srv"
|
||||||
"/usr/local"
|
"/usr/local"
|
||||||
"/var/spool/cron/crontabs"
|
"/var/spool/cron/crontabs"
|
||||||
"/mnt"
|
|
||||||
)
|
)
|
||||||
EXCLUDES=(
|
EXCLUDES=(
|
||||||
"sh:/home/**/.cache"
|
"sh:/home/**/.cache"
|
||||||
|
|
@ -44,7 +43,7 @@ KEEP_HOURLY=0
|
||||||
KEEP_DAILY=31
|
KEEP_DAILY=31
|
||||||
KEEP_WEEKLY=0
|
KEEP_WEEKLY=0
|
||||||
KEEP_MONTHLY=12
|
KEEP_MONTHLY=12
|
||||||
KEEP_YEARLY=5
|
KEEP_YEARLY=0
|
||||||
|
|
||||||
# Limit bandwith used when backing up to SSH repositories. Requires the utility `pv`.
|
# Limit bandwith used when backing up to SSH repositories. Requires the utility `pv`.
|
||||||
# The unit is bytes per second. 0 means no limit. The numeric part must be an integer value.
|
# The unit is bytes per second. 0 means no limit. The numeric part must be an integer value.
|
||||||
|
|
|
||||||
6
install
6
install
|
|
@ -1,8 +1,8 @@
|
||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
|
|
||||||
cp -i ./src/borgwrapper /usr/local/bin/borgwrapper
|
cp -i ./src/borgwrapper /usr/bin/borgwrapper
|
||||||
chown root. /usr/local/bin/borgwrapper
|
chown root. /usr/bin/borgwrapper
|
||||||
chmod 750 /usr/local/bin/borgwrapper
|
chmod 750 /usr/bin/borgwrapper
|
||||||
|
|
||||||
if [ ! -d /etc/borgwrapper/ ]; then
|
if [ ! -d /etc/borgwrapper/ ]; then
|
||||||
mkdir /etc/borgwrapper
|
mkdir /etc/borgwrapper
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue