docker-rclone
docker-rclone copied to clipboard
Added "COMMAND" and "FAIL_URL"
- "COMMAND": variable was added to parametrize rclone execution. Now is possible to use not only sync command, but move, copy, or delete.
- "FAIL_URL": Allows the user to set an URL for failure notification. With the standard "CHECK_URL", the script won't notify to the user when the command ends badly. The user would only be alerted when the service is down for a specific interval of time. Now the user is able to receive notifications when the rclone command did not end successfully. The default FAIL_URL is the "CHECK_URL" with an appended path "/fail", as defined by healthchecks.io. This url can be overridden by the user setting the "FAIL_URL" env var.
There is a message "WARNING: A previous sync is still running. Skipping new sync command." that might need to be updated also if the command is not sync probably
@bcardiff I think @pfidr34's version is better than this one, I would suggest to merge his pull request adding the "/fail" part from this pull request.
@bcardiff I think @pfidr34's version is better than this one, I would suggest to merge his pull request adding the "/fail" part from this pull request.
Thanks @dantebarba I have added your /fail code with a couple tweaks.