Remote Hotfolder is a console application that allows to upload all files of a local directory to a node of a remote CELUM server.
Note that this relies on file system events to detect when files are added. If your file system does not support that, consider using a cronjob with the -o flag, or the Local Hotfolder.
argument: -, required: no, default: -
Displays helping information.
argument: String, required: yes default: -
URL of the celum server.
argument: String, required: yes default: -
CELUM client id (defined in the remote.yml file in the CELUM config folder).
argument: String, required: yes default: -
CELUM client secret (defined in the remote.yml file in the CELUM config folder).
argument: String, required: yes default: -
CELUM server secret (defined in the remote.yml file in the CELUM config folder).
argument: Number, required: yes default: -
Celum Target node where the files will be uploaded.
argument: Number, required: yes default: -
Source folder on the local system from where the files will be uploaded.
argument: Number, required: yes default: -
Path to the properties file with general and mail properties. License (key: remoteHotfolder) is required, the other properties are optional.
license=
mail.host=
mail.port=
mail.from=
mail.to=
mail.username=
mail.password=
logProperties.path=
argument: Number, required: required: no default: 'en'
Locale for creation of CELUM Nodes, used in Nodefinders.
argument: String, required: no default: -
Name of the NodeFinder, if empty the assets will be uploaded directly to the target node.
Known implementations:
argument: -, required: no default: -
With this argument the files will be deleted after the upload on the local system.
argument: -, required: no default: -
With this argument, if an asset with the same name as an uploading file exists already, it will be uploaded as a new version of the existing asset instead, creating a second asset. Note that as of 1.1, every matching asset will be updated (instead of just the first one we find).
argument: -, required: no default: -, since: 1.1
When using preventDuplicates, search globally(!) instead of just in the target node, and links it to the target node instead. Be careful with this one ;-)
argument: -, required: no default: -, since: 1.1
Don't actually do anything, but log what should have happened.
argument: -, required: no, default: -, since: 1.2
Don't listen for new files, just upload the ones currently in the sourceFolder
and then exit. Useful for batch processing.
argument: Regex, required: no, default: "^[.].*|Thumbs.db$", since: 1.2
Ignore files with certain file names, which by default are dot-files (e.g. .DS_Store
) and Thumbs.db
(crap that the OS generated)
argument: long, required: no, default: API-User, since: 1.2.1
Specify a different user-ID to do the upload with. Permissions are assumed to be provided.
argument: -, required: no, default: API-User, since: 1.3.0
When using -g
, link assets that were found somewhere else in the system to the target node, rather than uploading a new one.
argument: int, required: no, default: 1, since: 1.5.5
Wait for n seconds before uploading, and delay the upload when the file size is bigger than before (indicates that the file is still being written).
Remote Hotflolder | CELUM | api-endpoint |
---|---|---|
1.0.0 | 5.13.4 | 1.4.1 |
1.1.0 - 1.3.0 | 6.5.x | 3.1.1 |
1.4.0 | 5.13.4 (backport) / 6.5.x / 6.12.x | 1.4.1 / 3.1.1 / 3.8 |
1.5.0 | 6.12.x, 6.14.x | 3.8 / 3.10 |
java -jar remote-hotfolder.jar -u "https://[my celum url]/remoteapi" -i "[my client id]" -c "[my client secrete]" -s "[my server secret]" -t 26621 -f "[path to my local directory]" -l "en" -d -p
/etc/systemd/system/remote-hotfolder.service
:
[Unit]
Description=remote-hotfolder
After=syslog.target network.target
[Service]
User=celum
Restart=always
RestartSec=5
WorkingDirectory=/opt/remote-hotfolder
ExecStart=/usr/bin/java -jar /opt/remote-hotfolder/remote-hotfolder.jar -u "http://[my celum url]:8765/api" -i "[my client id]" -c "[my client secrete]" -s "[my server secret]" -t 26621 -f "/home/celum/data/import" -p -d -r
[Install]
WantedBy=multi-user.target
Released 2020-02-18
Released 2020-07-03
Released 2020-07-14
Released 2021-02-29
Released 2021-04-22
Re-Released 2022-12-16 for 6.12.x
Released 2023-04-03