Config-driven local → cloud backup using rclone. Designed to be extended to more
remotes (S3, NAS/SFTP) later without touching the scripts — add a line to
backup-sources.txt and a remote in rclone.
Each tab-separated line in backup-sources.txt:
name<TAB>/local/path<TAB>remote:path<TAB>exclude1,exclude2
name— label used in logs. Lines starting with#are comments./local/path— folder to back up (working tree, including uncommitted/untracked files).remote:path— rclone destination, e.g.backup:backups/design-maxxing.exclude1,exclude2— comma-separated rclone--excludepatterns (rebuildable dirs).
brew install rclone
./setup-gdrive.sh # interactive: name the remote "backup", type "drive"
./backup-manager.sh # run all backups
./backup-manager.sh clipboard # run only a specific backup by source namePrefer the non-interactive wizard? rclone config create backup drive scope drive (browser opens, paste the code).
Create a bot with @BotFather, get your chat id, then fill in
telegram.conf (gitignored):
BOT_TOKEN=123456:ABC...
CHAT_ID=123456789
Backup Manager pings you with the result of every run. Empty file = silent.
./schedule.sh enable # launchd: com.iftt.backup-manager, daily
./schedule.sh disableLogs land in logs/YYYY-MM-DD.log.
The IFTT Raycast extension includes a Backup Status command. It automatically reads your backup-sources.txt config and parses the logs to show:
- Real-time Google Drive space status (Used, Free, Total out of 5 TB) using
rclone about. - Health status for each source (
Idle,Uploading,Success,Failed). - Direct action shortcuts to: trigger all backups, trigger a specific backup, view the last run's log file inside Raycast, or reveal folders in Finder.
To run it in development mode:
cd ~/Developer/iftt/raycast-ext
bunx @raycast/api devIf you want to inspect progress manually:
# View live file uploads
tail -f ~/Developer/backup-manager/logs/YYYY-MM-DD.log
# Check size on Google Drive
rclone size backup:backups/design-maxxing
rclone size backup:backups/clipboard
# Verify local directory matches GDrive byte-for-byte
rclone check "/path/to/local" "backup:backups/dest"- S3:
rclone config→ new remote (types3), then appendsource<TAB>...<TAB>s3:mybucket/backups/.... - NAS/SFTP: new remote (type
sftp), same pattern.