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.

Four-step workflow map for Write safe rclone job logs: Review the dedicated key’s boundaries, confirm workspace folder and protocol scope. Run a harmless lsf check with finite timeouts, record rclone version and exit status. Redact keys signed URLs and sensitive paths, preserve timing and error text. Search the final log for authentication secrets, retain useful counts and status.
This map follows write safe rclone job logs from “Review the dedicated key’s boundaries, confirm workspace folder and protocol scope.” through “Run a harmless lsf check with finite timeouts, record rclone version and exit status.” and “Redact keys signed URLs and sensitive paths, preserve timing and error text.”, ending with “Search the final log for authentication secrets, retain useful counts and status.”. Open full-size screenshot.

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

  1. Open Profile > API keys, create or identify the restricted key for this job, and confirm its workspace and folder reach before running rclone.
  2. Keep the credential in the protected rclone config returned by rclone config file; do not place dos_…, an S3 secret, or the config contents in the command line or log header.
  3. 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.
  4. Put -- before file operands so a legal name such as -x.bin cannot be interpreted as a flag, and log redacted source and destination labels rather than sensitive full paths.
  5. 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.
  6. 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, and Authorization returns nothing.
Reference for “Write safe rclone job logs”: Dosya rclone overview page.
Reference for “Write safe rclone job logs”: Dosya rclone overview page. Open full-size screenshot.

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.

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.

    Check the outcome before you retry

    Use these shared checks when a task needs a second look.