OpsVault

rclone Setup

Configure rclone to upload backups to remote storage.

OpsVault uses rclone to upload backup files to remote storage. This guide walks you through configuring a rclone remote.

Install rclone

curl https://rclone.org/install.sh | sudo bash
rclone version

Configure a remote

Run the interactive configuration wizard:

rclone config

Select n for new remote, enter a name (e.g. gdrive, s3backup), and follow the prompts for your storage provider.

Run rclone config and choose n → new remote.

Name it (e.g. gdrive), choose drive as the storage type.

Leave client_id and client_secret blank to use rclone's shared credentials.

Choose scope drive.file (recommended — only files created by rclone).

When prompted for auto config, select N on a headless server and follow the URL shown.

storage:
  rclone:
    enabled: true
    remote: "gdrive"
    path: "opsvault/{hostname}/{name}"

Run rclone config, name it s3backup, choose s3 as storage type.

Choose your provider (e.g. AWS).

Enter your AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY.

Select your region and leave other options at defaults.

storage:
  rclone:
    enabled: true
    remote: "s3backup"
    path: "my-bucket/opsvault/{hostname}/{name}"

Create an application key in the Backblaze B2 console with read/write access to your bucket.

Run rclone config, name it b2, choose b2 as storage type.

Enter the Account ID and Application Key.

storage:
  rclone:
    enabled: true
    remote: "b2"
    path: "my-b2-bucket/opsvault/{name}"

Run rclone config, name it (e.g. mysftp), choose sftp as storage type.

Enter the host, port, user, and either a password or path to a private key.

storage:
  rclone:
    enabled: true
    remote: "mysftp"
    path: "/backups/opsvault/{hostname}/{name}"

Test the remote

# List files on the remote
rclone ls gdrive:

# Test by copying a small file
echo "test" > /tmp/rclone-test.txt
rclone copy /tmp/rclone-test.txt gdrive:opsvault-test/
rclone ls gdrive:opsvault-test/
rclone delete gdrive:opsvault-test/rclone-test.txt

Using a non-root rclone config

If you configured rclone as a non-root user but run OpsVault as root, point to the correct config file:

storage:
  rclone:
    rclone_config: "/home/youruser/.config/rclone/rclone.conf"

Or copy the config to root's home:

mkdir -p /root/.config/rclone
cp /home/youruser/.config/rclone/rclone.conf /root/.config/rclone/rclone.conf

On this page