From 6b6af477cb7296279d317cf584a0020e0201156d Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Tue, 28 May 2019 02:14:05 -0300 Subject: Split scripts into CI and VPS box --- scripts/box/bash-aliases.sh | 3 +++ scripts/box/run-backup-template.sh | 11 +++++++++++ 2 files changed, 14 insertions(+) create mode 100755 scripts/box/bash-aliases.sh create mode 100755 scripts/box/run-backup-template.sh (limited to 'scripts/box') diff --git a/scripts/box/bash-aliases.sh b/scripts/box/bash-aliases.sh new file mode 100755 index 0000000..4ef035d --- /dev/null +++ b/scripts/box/bash-aliases.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +alias l="ls -lahp --color" diff --git a/scripts/box/run-backup-template.sh b/scripts/box/run-backup-template.sh new file mode 100755 index 0000000..34184b9 --- /dev/null +++ b/scripts/box/run-backup-template.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +export BORG_REMOTE_PATH="${BORG_REMOTE_PATH}" +export BORG_PASSPHRASE="${BORG_PASSPHRASE}" +borg create \ + --verbose \ + --stats \ + --progress \ + --compression lzma,6 \ + "${BORG_REPO}::{hostname}-{now}-${VPS_COMMIT_SHA}" \ + "${VOLUME_HOME}" -- cgit v1.2.3