A program that monitors a directory for file names matching keywords specified in a configuration file and copies files to another location.
- If monitoring a remote host over SSHFS
- Install sshfs
- Mount remote host.
- Install Dokan library and Dokan SSHFS
- Mount remote host.
If monitoring a remote host over SSHFS:
- Install MacFusion
- Mount remote host.
The configuration file syncgenie.ini
must reside in the same location as the binary.
There is a main [SyncGenie]
section which must contain at least
watch_directory = /some/location
You may have as many other sections as you'd like.
[Whatever]
keywords = this, (that|other) / another, group, of, matches
destination = /overthere
When a file contains the keywords, this
, that
, and other
(case insensitive search) the file will be copied in 32 KB chunks to destination
.
- watch_directory (string) - Operating System path, if on Windows double up backslashes, e.g. C:\
- keywords (string) - List of words separated by commads. Will match on all keywords. You a / to divide up sections. Regular expressions supported
- destination (string) - Operating System path, if on Windows double up backslashes, e.g. C:\
- watch_directory_poll (integer) - Number of seconds to poll directory
- watch_directory_max_depth (interger) - -1 means full depth, otherwise limit directory descent by n
- run_when_done (string) - Executable with arguments to run when a download completes
- concurrent_copies (integer) - Number of concurrent copies that may happen at one time
- verbose_listing (boolean) - Whether or not to list files during index time
- age_before_copy (integer) - Number of seconds to wait for a file to stop being modified
- keywords_directories (string) - List of words separated by commads. Will match directory names. Regular expressions supported
$ ./syncgenie
- Open a command prompt
- Navigate to binary location
- Run
syncgenie.exe
Adam Flott, adam@npjh.com