summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2017-03-25 14:45:44 +0100
committerFlorian Pritz <bluewind@xinu.at>2017-03-25 14:45:44 +0100
commit0e5ebcd7e7771c470c75f3ece270242a96d57a35 (patch)
tree7b07d9ac72f94e5d0238c0da9a2d6f8776480b52
parenta4297472468e8f980ccaa5fa8123aea49a15c06f (diff)
downloadbin-0e5ebcd7e7771c470c75f3ece270242a96d57a35.tar.gz
bin-0e5ebcd7e7771c470c75f3ece270242a96d57a35.tar.xz
backup.sh: Use $(hostname) instead of env variable
This way we don't have to worry about zsh and bash Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rwxr-xr-xbackup.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/backup.sh b/backup.sh
index d0d1274..8b7d9c3 100755
--- a/backup.sh
+++ b/backup.sh
@@ -7,8 +7,7 @@
# - define a host "backup" in root's .ssh/config
# - You can override variables from main() as well as the pre_backup() and post_backup() functions in
# $XDG_CONFIG_HOME/backup-sh-conf.sh or /etc/backup-sh-conf.sh
-# - As root run `borg init -v --encryption=keyfile backup:borg-$HOSTNAME`
-# (note that zsh uses $HOST instead of $HOSTNAME)
+# - As root run `borg init -v --encryption=keyfile backup:borg-$(hostname)`
# - If you want, increase the max_segment_size in
# ssh://backup/borg-$HOSTNAME/config from the default 5MiB
#