Skip to main content Skip to navigation Skip to footer

Backup & Restore

Back up encrypted repositories to external storage, restore from backups, and schedule automated backups.

Backup & Restore

Rediacc can back up encrypted repositories to external storage providers and restore them on the same or different machines. Backups are encrypted — the repository’s LUKS credential is required to restore.

Configure Storage

Before pushing backups, register a storage provider. Rediacc supports any rclone-compatible storage: S3, B2, Google Drive, and many more.

Import from rclone

If you already have an rclone remote configured:

rdc context import-storage my-storage

This imports the storage configuration from your rclone config into the current context.

View Storages

rdc context storages

Push a Backup

Push a repository backup to external storage:

rdc backup push my-app -m server-1 --to my-storage
OptionDescription
--to <storage>Target storage location
--to-machine <machine>Target machine for machine-to-machine backup
--dest <filename>Custom destination filename
--checkpointCreate a checkpoint before pushing
--forceOverride an existing backup
--tag <tag>Tag the backup
-w, --watchWatch the operation progress
--debugEnable verbose output

Pull / Restore a Backup

Pull a repository backup from external storage:

rdc backup pull my-app -m server-1 --from my-storage
OptionDescription
--from <storage>Source storage location
--from-machine <machine>Source machine for machine-to-machine restore
--forceOverride existing local backup
-w, --watchWatch the operation progress
--debugEnable verbose output

List Backups

View available backups in a storage location:

rdc backup list --from my-storage -m server-1

Bulk Sync

Push or pull all repositories at once:

Push All to Storage

rdc backup sync --to my-storage -m server-1

Pull All from Storage

rdc backup sync --from my-storage -m server-1
OptionDescription
--to <storage>Target storage (push direction)
--from <storage>Source storage (pull direction)
--repo <name>Sync specific repositories (repeatable)
--overrideOverride existing backups
--debugEnable verbose output

Scheduled Backups

Automate backups with a cron schedule that runs as a systemd timer on the remote machine.

Set Schedule

rdc backup schedule set --destination my-storage --cron "0 2 * * *" --enable
OptionDescription
--destination <storage>Default backup destination
--cron <expression>Cron expression (e.g., "0 2 * * *" for daily at 2 AM)
--enableEnable the schedule
--disableDisable the schedule

Push Schedule to Machine

Deploy the schedule configuration to a machine as a systemd timer:

rdc backup schedule push server-1

View Schedule

rdc backup schedule show

Browse Storage

Browse the contents of a storage location:

rdc storage browse my-storage -m server-1

Best Practices

  • Schedule daily backups to at least one storage provider
  • Test restores periodically to verify backup integrity
  • Use multiple storage providers for critical data (e.g., S3 + B2)
  • Keep credentials secure — backups are encrypted but the LUKS credential is required to restore