From 0e5ebcd7e7771c470c75f3ece270242a96d57a35 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sat, 25 Mar 2017 14:45:44 +0100 Subject: 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 --- backup.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'backup.sh') 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 # -- cgit v1.2.3-24-g4f1b