dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 633d3e5b40bec071a3f8e59a09f2b67ac71f6b6a
parent e46924d6b44b3c4aed5582bc86ee3c213844cf21
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Sat, 14 Sep 2019 20:01:21 +0200

Update host

Diffstat:
M.local/bin/bookmark | 7++-----
M.local/bin/sync-adamsgaard.dk.sh | 6+++---
2 files changed, 5 insertions(+), 8 deletions(-)

diff --git a/.local/bin/bookmark b/.local/bin/bookmark @@ -2,10 +2,9 @@ set -eu localfile="$HOME/doc/bookmark.txt" -remoteuser=ad +remoteuser=www hostname=adamsgaard.dk remotefile="/home/$remoteuser/doc/bookmark.txt" -port=12346 help() { echo "Usage: ${0##*/} [OPTION | COMMAND [URL]]" @@ -14,20 +13,18 @@ help() { init() { mkdir -p "$(dirname "$localfile")" touch "$localfile" - ssh -p "$port" -q "$remoteuser@$hostname" -t \ + ssh -q "$remoteuser@$hostname" -t \ "mkdir -p $(dirname $remotefile) && touch $remotefile" } upload() { scp -q \ - -P "$port" \ "$localfile" \ "$remoteuser@$hostname:$remotefile" } download() { scp -q \ - -P "$port" \ "$remoteuser@$hostname:$remotefile" \ "$localfile" } diff --git a/.local/bin/sync-adamsgaard.dk.sh b/.local/bin/sync-adamsgaard.dk.sh @@ -1,9 +1,9 @@ #!/bin/sh -host=adamsgaard.dk:/var/www/html +host=www@adamsgaard.dk:/var/www/html localdir="$HOME/code/adamsgaard.dk" echo "syncing new content to $host" -rsync -rav --progress -e "ssh -p 12346" "$localdir"/* "$host"/ +rsync -rav --progress -e "ssh" "$localdir"/* "$host"/ echo "syncing new content from $host" -rsync -rav --progress -e "ssh -p 12346" "$host"/* "$localdir"/ +rsync -rav --progress -e "ssh" "$host"/* "$localdir"/