diff --git a/Makefile b/Makefile index 4ee4887..b0439b0 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ .PHONY: all -all: +all: check @echo "Use 'make dist' to copy to https://psy.jim.sh/borg-setup.sh" .PHONY: check diff --git a/borg-setup.sh b/borg-setup.sh index a327f2c..a65468f 100755 --- a/borg-setup.sh +++ b/borg-setup.sh @@ -76,6 +76,7 @@ create_borg_wrapper() { BORG=${BORG_DIR}/borg.sh BORG_REPO="ssh://${BACKUP_USER}@${BACKUP_HOST}/./${BACKUP_REPO}" + SSH=$BORG_DIR/ssh cat >"$BORG" </dev/null 2>&1 "${BORG_DIR}/mount.sh" <" - exit 1 -fi - -\$BORG mount \\ - :: \$1 - -echo "Unmount with: fusermount -u \$1" - EOF chmod 755 "${BORG_DIR}/backup.sh" chmod 755 "${BORG_DIR}/prune.sh" - chmod 755 "${BORG_DIR}/mount.sh" } configure_systemd() @@ -351,6 +324,54 @@ EOF fi } +make_readme() +{ + cat > "${BORG_DIR}/README" <