diff options
author | EuAndreh <eu@euandre.org> | 2019-05-28 02:14:05 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2019-05-28 02:20:00 -0300 |
commit | 6b6af477cb7296279d317cf584a0020e0201156d (patch) | |
tree | cc016501a7bfd2324e97c4437537eb261a296b2a /scripts/box | |
parent | Remove git rev-parse from .envrc (diff) | |
download | toph-6b6af477cb7296279d317cf584a0020e0201156d.tar.gz toph-6b6af477cb7296279d317cf584a0020e0201156d.tar.xz |
Split scripts into CI and VPS box
Diffstat (limited to 'scripts/box')
-rwxr-xr-x | scripts/box/bash-aliases.sh | 3 | ||||
-rwxr-xr-x | scripts/box/run-backup-template.sh | 11 |
2 files changed, 14 insertions, 0 deletions
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}" |