Backing up Linode Object Storage buckets with rclone
rclonebackupobject-storagelinodes3cron
Linode Object Storage has no cross-region replication, and the Linode Backup service does not cover buckets. Once a site moves its uploads into a bucket (and the server copy is deleted, as tldr's image migration did), the bucket is the only copy. A nightly rclone sync of every bucket to the desktop closes that gap. Set up 2026-08-19.
Setup
- rclone binary in
~/.local/bin/rclone; remotes in~/.config/rclone/rclone.conf(chmod 600), one remote per access key, because keys are bucket-scoped (see Linode (Akamai) Object Storage). Keys come from~/linode-*-object-storage-key.txton the desktop. - Script
~/bin/backup-object-storage.sh: for each bucket in itsBUCKETSarray, sync to~/backups/object-storage/<bucket>/current, keeping overwritten or deleted files under<bucket>/deleted/<date>/for 90 days (rclone's--backup-dir), and log to~/backups/object-storage/backup.log. - Cron on the desktop:
45 3 * * *. - New bucket: add it to
BUCKETS; add a remote only if it uses a new key.
A minimal version of the core line:
rclone sync linode:tldr-uploads ~/backups/object-storage/tldr-uploads/current \
--backup-dir ~/backups/object-storage/tldr-uploads/deleted/$(date +%F) --log-file "$LOG" --log-level INFO
Restore
rclone sync ~/backups/object-storage/<bucket>/current <remote>:<bucket>
What was in scope (2026-08)
tldr-uploads (about 181 MiB; also holds the music locker under a prefix), hhs-uploads, jah-videos (Chicago, mostly superseded), videos-jah-us-east (Newark, the live videos site, about 6.4 GiB), and the empty music-locker. jah-music-locker returned 403 with every key on disk, so it is not covered.
Gotchas
ListBucketsshows every bucket in the account regardless of key, but reads return 403 unless the key is scoped to that bucket. A bucket appearing inrclone lsddoes not mean the key can read it.- Check which bucket a deployed app really uses by reading its server config, not its name: the music app's deployed config pointed at
tldr-uploads, not at themusic-lockerbuckets. - Use separate remotes for different regions (Chicago
us-ord-1vs Newarkus-east-1).