aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-03-08 00:02:38 -0300
committerEuAndreh <eu@euandre.org>2021-03-08 00:02:38 -0300
commitd3852b64cb416e2b1e2c79964bffd7083b8f6fd4 (patch)
tree9051b21859ca5d29ae4a990b4677ccc1c900b33f
parentTODOs.md: Add #task-4b3b746c-7042-469d-95fb-dede89343439 (diff)
downloadserver-d3852b64cb416e2b1e2c79964bffd7083b8f6fd4.tar.gz
server-d3852b64cb416e2b1e2c79964bffd7083b8f6fd4.tar.xz
opt/bin/backup.sh: add /srv/ initially as backup file
-rwxr-xr-xopt/bin/backup.sh8
1 files changed, 2 insertions, 6 deletions
diff --git a/opt/bin/backup.sh b/opt/bin/backup.sh
index 36b5dfc..35ea471 100755
--- a/opt/bin/backup.sh
+++ b/opt/bin/backup.sh
@@ -1,9 +1,5 @@
#!/bin/sh
set -eu
-# FIXME
-# borg init if doesn't exist
-
-borg create -svpC lzma "16686@ch-s010.rsync.net:borg/$(hostname)::{hostname}-{now}-job"
-
-# FIXME: send email
+borg create -svpC lzma "16686@ch-s010.rsync.net:borg/$(hostname)::{hostname}-{now}-job" \
+ /srv/