Write safe rclone job logs
Capture useful rclone timing, counts, exit status, and errors while keeping API keys, configuration secrets, and sensitive file paths out of shared logs.
Last reviewed
Dosya’s released rclone page configures a native dosya: remote with an API key, workspace ID, and https://api.dosya.dev. A useful job log records what happened without copying that credential or a complete configuration file into tickets, chat, or CI output.

Before you start
Use a dedicated API key whose permission, workspace, folder, protocol, IP range, active hours, and expiry match this one automation. The web key form shows the secret once, and the released rclone configuration stores it as api_key; treat both the key and the config file as secrets.
The repository’s production smoke runner supplies a tested failure envelope: connection timeout 15s, operation timeout 60s, one high-level retry, two low-level retries, and a hard 120s process ceiling. Those values keep an unattended failure finite and leave an exit status to record.
Steps
- Open Profile > API keys, create or identify the restricted key for this job, and confirm its workspace and folder reach before running rclone.
- Keep the credential in the protected rclone config returned by
rclone config file; do not placedos_…, an S3 secret, or the config contents in the command line or log header. - Run a harmless
rclone lsf dosya:check with the job’s config and the fail-fast timeouts, then record the UTC start time, rclone version, command verb, and exit code. - Put
--before file operands so a legal name such as-x.bincannot be interpreted as a flag, and log redacted source and destination labels rather than sensitive full paths. - Capture stdout or stderr needed for diagnosis, but replace API keys, bearer strings, signed URLs, passwords, tokens, and confidential names before the log leaves its restricted storage.
- Confirm the record contains elapsed time, transferred or checked counts, terminal exit status, and the first actionable error while a search for
dos_,secret_access_key, andAuthorizationreturns nothing.

Expected result
The log identifies when the rclone job ran, which safe command mode it used, what it attempted, and why it succeeded or failed. It contains enough timing and count evidence to reproduce the issue, while authentication material and protected names stay out of the artifact.
If rclone never terminates, apply the finite retry and timeout values before collecting another run. If the log says the config is missing, use rclone config file and verify permissions; the strict-confined Snap build cannot necessarily read hidden or temporary paths.
Related guides
Was this helpful?
Loading helpfulness results…
Voting saves a necessary ballot cookie for up to 180 days so you can change your answer.
Questions and replies
Ask about the steps in this guide. Questions are reviewed before publication.
Keep account details, credentials and private files out of public questions. Use private support for those.
Loading questions…
Sign in to your Dosya account to ask a question.