diff options
author | Florian Pritz <bluewind@xinu.at> | 2017-03-25 14:45:44 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2017-03-25 14:45:44 +0100 |
commit | 0e5ebcd7e7771c470c75f3ece270242a96d57a35 (patch) | |
tree | 7b07d9ac72f94e5d0238c0da9a2d6f8776480b52 | |
parent | a4297472468e8f980ccaa5fa8123aea49a15c06f (diff) | |
download | bin-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-x | backup.sh | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 # |