aboutsummaryrefslogtreecommitdiff
path: root/justfile
diff options
context:
space:
mode:
Diffstat (limited to 'justfile')
-rw-r--r--justfile8
1 files changed, 6 insertions, 2 deletions
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?