Skip to content
Snippets Groups Projects
Commit 7ede5245 authored by Max Melchert's avatar Max Melchert
Browse files

feat: add config option to handle symlinks in rsync

parent f5d41421
No related branches found
No related tags found
No related merge requests found
...@@ -122,7 +122,7 @@ Sie werden durch den Aufruf von `make download` im zuvor definierten Ordner `LOC ...@@ -122,7 +122,7 @@ Sie werden durch den Aufruf von `make download` im zuvor definierten Ordner `LOC
## Konfiguration ## Konfiguration
| Variable | Verwendung | Beispiel | | Variable | Verwendung | Beispiel |
| :-------------------- | :-------------------------------- | :----------------------------------- | | :-------------------- | :--------------------------------- | :----------------------------------- |
| `SERVER_USER` | Server: User Name | `mmustermann` | | `SERVER_USER` | Server: User Name | `mmustermann` |
| `SERVER_HOST` | Server: Host Name | `hyrican-1-extern` | | `SERVER_HOST` | Server: Host Name | `hyrican-1-extern` |
| `CONDA_PATH` | Server: Conda-Installations-Pfad | `/home/mmustermann/.local/opt/conda` | | `CONDA_PATH` | Server: Conda-Installations-Pfad | `/home/mmustermann/.local/opt/conda` |
...@@ -135,6 +135,7 @@ Sie werden durch den Aufruf von `make download` im zuvor definierten Ordner `LOC ...@@ -135,6 +135,7 @@ Sie werden durch den Aufruf von `make download` im zuvor definierten Ordner `LOC
| `LOCAL_OUTPUT_DIR` | Client: Output-Ordner [^1] | `output` | | `LOCAL_OUTPUT_DIR` | Client: Output-Ordner [^1] | `output` |
| `REMOTE_PROJECT_DIR` | Server: Projektordner [^2] | `/home/mmustermann/akis/my_project` | | `REMOTE_PROJECT_DIR` | Server: Projektordner [^2] | `/home/mmustermann/akis/my_project` |
| `REMOTE_OUTPUT_FILES` | Server: Output-Dateien [^1] | `output/*.svg output/*pkl` | | `REMOTE_OUTPUT_FILES` | Server: Output-Dateien [^1] | `output/*.svg output/*pkl` |
| `COPY_LINKS_AS_FILES` | Server: Kopiert Datei des Symlinks | `false` |
[^1]: Relativer Pfad zum Projektordner [^1]: Relativer Pfad zum Projektordner
[^2]: Absoluter Pfad [^2]: Absoluter Pfad
......
...@@ -27,11 +27,14 @@ LOCAL_OUTPUT_DIR := output ...@@ -27,11 +27,14 @@ LOCAL_OUTPUT_DIR := output
REMOTE_PROJECT_DIR := ~/my_project REMOTE_PROJECT_DIR := ~/my_project
REMOTE_OUTPUT_FILES := output/* REMOTE_OUTPUT_FILES := output/*
## Misc
COPY_LINKS_AS_FILES ?= false
# --- # ---
LOGIN := $(SERVER_USER)@$(SERVER_HOST) LOGIN := $(SERVER_USER)@$(SERVER_HOST)
SSH := ssh $(LOGIN) SSH := ssh $(LOGIN)
RSYNC := rsync --archive --compress --progress RSYNC := rsync --archive --compress --progress $(if $(filter true,$(COPY_LINKS_AS_FILES)),--copy-links)
CONDA := source $(CONDA_PATH)/etc/profile.d/conda.sh && conda CONDA := source $(CONDA_PATH)/etc/profile.d/conda.sh && conda
.PHONY: install upload run kill log download delete .PHONY: install upload run kill log download delete
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment