From 7af8724ceada95949845ace7ac0a67b542b874ea Mon Sep 17 00:00:00 2001 From: Gabe Venberg <gabevenberg@gmail.com> Date: Fri, 11 Apr 2025 17:13:43 +0200 Subject: [PATCH] made rsync command more clear. --- justfile | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/justfile b/justfile index 3efcc31..06acb48 100644 --- a/justfile +++ b/justfile @@ -8,11 +8,24 @@ DRAFTDIR:='/var/www/draft.gabevenberg.com' deploy: clean hugo --minify - rsync -rvz --delete public/ {{USER}}@{{HOST}}:{{DIR}} # this will delete everything on the server that's not in the local public folder + rsync \ + --compress \ + --delete \ + --progress \ + --recursive \ + --mkpath \ + + public/ {{USER}}@{{HOST}}:{{DIR}} # this will delete everything on the server that's not in the local public folder deploy-preview: clean hugo --minify --buildDrafts --buildFuture --baseURL 'https://draft.gabevenberg.com/' - rsync -rvz --delete public/ {{USER}}@{{HOST}}:{{DRAFTDIR}} # this will delete everything on the server that's not in the local public folder + rsync \ + --compress \ + --delete \ + --progress \ + --recursive \ + --mkpath \ + public/ {{USER}}@{{HOST}}:{{DRAFTDIR}} # this will delete everything on the server that's not in the local public folder clean: -rm -r ./public/