Skip to main content Skip to navigation Skip to footer

Backup & Networking

Watch and follow along as we configure backup schedules, storage providers, and network infrastructure.

Tutorial: Backup & Networking

This tutorial covers backup scheduling, storage configuration, and infrastructure networking setup: the commands you use to protect data and expose services.

Prerequisites

Interactive Recording

What You’ll See

The recording above walks through each step below. Use the playback bar to navigate between commands.

Step 1: View current storages

rdc config storages

Lists all configured storage providers (S3, B2, Google Drive, etc.) imported from rclone configs. Storages are used as backup destinations.

Step 2: Configure backup schedule

rdc backup schedule set --destination my-s3 --cron "0 2 * * *" --enable

Sets an automated backup schedule: push all repositories to the my-s3 storage every day at 2 AM. The schedule is stored in your config and can be deployed to machines as a systemd timer.

Step 3: View backup schedule

rdc backup schedule show

Shows the current backup schedule configuration: destination, cron expression, and enabled status.

Step 4: Configure infrastructure

rdc config set-infra server-1 \
  --public-ipv4 203.0.113.50 \
  --base-domain example.com \
  --cert-email admin@example.com

Configures the machine’s public networking: its external IP, base domain for auto-routes, and email for Let’s Encrypt TLS certificates.

Step 5: Add TCP/UDP ports

rdc config set-infra server-1 \
  --tcp-ports 25,143,465,587,993 \
  --udp-ports 53

Registers additional TCP/UDP ports for the reverse proxy. These create Traefik entrypoints (tcp-25, udp-53, etc.) that can be referenced in Docker labels.

Step 6: View infrastructure config

rdc config show-infra server-1

Displays the full infrastructure configuration for a machine: public IPs, domain, email, and registered ports.

Step 7: Disable backup schedule

rdc backup schedule set --disable
rdc backup schedule show

Disables the automated backup schedule. The configuration is preserved so it can be re-enabled later.

Next Steps