From 7045e3756412d203098ffac6580d88b861ce9923 Mon Sep 17 00:00:00 2001 From: Andreas Neue Date: Mon, 21 Aug 2023 15:03:35 +0200 Subject: [PATCH] include additional rsync options (.rsync and .rsync_), mostly meant for additional filters in addition to the defaults --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 973b289..e04f7d6 100644 --- a/Makefile +++ b/Makefile @@ -98,7 +98,7 @@ ifdef DEPLOY_HOSTS @- echo "\n### uploading files" @- $(foreach host,$(DEPLOY_HOSTS), \ ssh $(SSH_USER)@$(host) "mkdir -p $(DEPLOY_PATH)/$(DEPLOY_NAME)"; \ - rsync -rav --exclude '*~' --exclude '.git*' --exclude '*.swp' . $(SSH_USER)@$(host):$(DEPLOY_PATH)/$(DEPLOY_NAME); \ + rsync -rav $(cat .rsync) $(cat .rsync_$(host)) --exclude '*~' --exclude '.git*' --exclude '*.swp' . $(SSH_USER)@$(host):$(DEPLOY_PATH)/$(DEPLOY_NAME); \ ssh $(SSH_USER)@$(host) "cd $(DEPLOY_PATH)/$(DEPLOY_NAME) && chmod o-r .env secrets*"; \ ) endif