Recipes

Backup & recovery

Back up a directory with rclone

Copy a local directory to any rclone remote without deleting files at the destination.

Supported platforms

LinuxmacOSWindows

Prerequisites

  • An rclone remote configured for the Dagu user
  • Read access to the source directory

Workflow YAML

description: Copy a local directory to an rclone remote without deleting destination files.
schedule: "0 3 * * *"

params:
  - name: source
    default: /srv/data
    description: Local directory to copy
  - name: destination
    default: backup:data
    description: rclone destination

steps:
  - id: copy
    action: rclone@v1
    with:
      command: copy
      source: ${params.source}
      destination: ${params.destination}
      checksum: true
      fastList: true
      transfers: 4
      stats: 30s

Review before running

Replace example values, configure the listed secrets, and review every command for your environment. Syntax validation does not make a community workflow trusted.

Running this workflow with a team?

The Team plan adds SSO, role-based access, audit logs, incident routing, and priority support for three self-hosted Dagu servers. Start a 14-day trial without a credit card.

Start Team trial
View sourceInstall DaguContributed by @dagucloud · validated with Dagu 2.13.0

Related Recipes