2018-2019/Makefile

23 lines
927 B
Makefile
Raw Permalink Normal View History

2019-06-13 09:20:16 +00:00
YEAR=2018-2019
2018-09-11 07:45:14 +00:00
SSH_CONF=Embrevade
SSH_TARGET_DIR=/var/docker/raw.opytex.org/www/
SRC_EXCLUDE=--exclude 'Archive' --exclude 'tools/' --exclude "__pycache__" --exclude "config.sh" --exclude "reflections" --exclude "Notes" --exclude "notes" --exclude "venv"
2018-09-11 07:45:14 +00:00
GIT_EXCLUDE=--exclude ".git" --exclude ".gitignore" --exclude ".*"
ssh_upload:
scp -r $(OUTPUTDIR)/* $(SSH_CONF):$(SSH_TARGET_DIR)
rsync_upload:
rsync -e "ssh" -P -rvzc --delete $(GIT_EXCLUDE) $(SRC_EXCLUDE) $(CURDIR)/ $(SSH_CONF):$(SSH_TARGET_DIR) --cvs-exclude
rsync_cleUSB:
2019-06-13 09:20:16 +00:00
#rsync --progress --modify-window=1 --update --recursive --times --del ./ $(GIT_EXCLUDE) /run/media/lafrite/K1
rsync -av --del ./ $(GIT_EXCLUDE) /run/media/lafrite/CLE32_ext4/Enseignements/$(YEAR)
rsync -av ../../Production\ eleves/$(YEAR) /run/media/lafrite/CLE32_ext4/Productions/
rsync -av /run/media/lafrite/CLE32_ext4/Productions/$(YEAR) ../../Production\ eleves/
2018-09-11 07:45:14 +00:00
.PHONY: