From d40ab7a488e0b53b9541652e588b62879bc69bba Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Wed, 22 Jul 2026 10:35:51 +0530 Subject: Refactor git shell commands --- justfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'justfile') diff --git a/justfile b/justfile index a1abce4..2f8d997 100644 --- a/justfile +++ b/justfile @@ -9,13 +9,13 @@ ssh *args: shell: ssh copy *args: - rsync -ravh --delete --exclude '.git' --exclude 'tmp' -e "ssh -p $SSH_PORT" "$@" + rsync -ravh --delete -e "ssh -p $SSH_PORT" "$@" df: just ssh 'df -ah /' upload: - just copy . "${SSH_USER}@${SSH_HOST}:{{TARGET_DIR}}" + just copy --exclude '.git' --exclude 'tmp' . "${SSH_USER}@${SSH_HOST}:{{TARGET_DIR}}" setup *args: just ssh "{{TARGET_DIR}}/setup.sh" "$@" @@ -27,5 +27,9 @@ local-setup *args: SEND_UPLOADS_ROOT="$PWD/tmp/uploads" SEND_USER="$(id -u):$(id -g)" \ ./setup.sh "$@" +backup-git: + mkdir -p ./tmp/backup + just copy "${SSH_USER}@${SSH_HOST}:/git" ./tmp/backup + # TODO: pull /git for backup # TODO: Add service on home server to backup automatically? -- cgit v1.3.1