Skip to content

About

Backup Manager Config-driven local → cloud backup using rclone. Designed to be extended to more remotes (S3, NAS/SFTP) later without

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

Backup Manager

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.

Sources

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 --exclude patterns (rebuildable dirs).

Setup (Google Drive, once)

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 name

Prefer the non-interactive wizard? rclone config create backup drive scope drive (browser opens, paste the code).

Telegram notifications (optional)

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.

Daily schedule

./schedule.sh enable     # launchd: com.iftt.backup-manager, daily
./schedule.sh disable

Logs land in logs/YYYY-MM-DD.log.

Monitoring & Raycast Integration

Raycast Dashboard

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 dev

Manual CLI Checks

If 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"

Later additions

  • S3: rclone config → new remote (type s3), then append source<TAB>...<TAB>s3:mybucket/backups/....
  • NAS/SFTP: new remote (type sftp), same pattern.

About

Backup Manager Config-driven local → cloud backup using rclone. Designed to be extended to more remotes (S3, NAS/SFTP) later without

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages