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
Branches
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
## Konfiguration
| Variable | Verwendung | Beispiel |
| :-------------------- | :-------------------------------- | :----------------------------------- |
| :-------------------- | :--------------------------------- | :----------------------------------- |
| `SERVER_USER` | Server: User Name | `mmustermann` |
| `SERVER_HOST` | Server: Host Name | `hyrican-1-extern` |
| `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
| `LOCAL_OUTPUT_DIR` | Client: Output-Ordner [^1] | `output` |
| `REMOTE_PROJECT_DIR` | Server: Projektordner [^2] | `/home/mmustermann/akis/my_project` |
| `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
[^2]: Absoluter Pfad
......
......@@ -27,11 +27,14 @@ LOCAL_OUTPUT_DIR := output
REMOTE_PROJECT_DIR := ~/my_project
REMOTE_OUTPUT_FILES := output/*
## Misc
COPY_LINKS_AS_FILES ?= false
# ---
LOGIN := $(SERVER_USER)@$(SERVER_HOST)
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
.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