aboutsummaryrefslogtreecommitdiff
path: root/scripts/box
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2019-05-28 02:14:05 -0300
committerEuAndreh <eu@euandre.org>2019-05-28 02:20:00 -0300
commit6b6af477cb7296279d317cf584a0020e0201156d (patch)
treecc016501a7bfd2324e97c4437537eb261a296b2a /scripts/box
parentRemove git rev-parse from .envrc (diff)
downloadtoph-6b6af477cb7296279d317cf584a0020e0201156d.tar.gz
toph-6b6af477cb7296279d317cf584a0020e0201156d.tar.xz
Split scripts into CI and VPS box
Diffstat (limited to 'scripts/box')
-rwxr-xr-xscripts/box/bash-aliases.sh3
-rwxr-xr-xscripts/box/run-backup-template.sh11
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}"