Applied style guide. Fixed bug in check size, that lead to copying to extra location, while file with different size does not exist.

This commit is contained in:
Stephan
2023-11-22 22:52:33 +01:00
parent eb087ba8ef
commit 53e5439095
2 changed files with 245 additions and 196 deletions

25
photosync.conf Normal file
View File

@@ -0,0 +1,25 @@
#!/bin/bash
# Target server. Comment if target folder is on the same machine!
TOSSH="192.168.0.5"
# port to use for ssh on the server.
SSHPORT=10110
# User for the server.
SSHUSER="myuser"
# target folder on the server.
SYNC_TARGET="/srv/Photos/"
SYNC_EXTRA="/srv/Photos/duplicate/"
# Extensions of the files to be copied.
EXTENSIONS="*.jpg *.JPG *.mp4 *.MP4"
# Prefixes replacing the to replace with
REPLACE="IMG VID"; # What to replace
PREFIXES="USER USERVid"; # replace with
# Max number of parallel copy processes.
THRESHOLD=9
# Overwrite the default log level of the photosync script.
# Valid levels are LLDebug, LLInfo, LLWarning, LLError, LLMdtry, LLMute.
Log_Level=$LLInfo