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:
25
photosync.conf
Normal file
25
photosync.conf
Normal 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
|
||||
Reference in New Issue
Block a user