cbeley / beleyenv

A dev-focused, idempotent system bootstrap script for ChromeOS's officially supported Linux container. Designed for me, but flexible enough for you to use too!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ubuntu borg backup to Google Drive

cbeley opened this issue · comments

Currently, I have backups going to /home/backups. On ChromeOS, they go to the mounted google drive folder.

While I could mount google drive and or start backing up via a ssh mount to my vps, I'm going to continue backing up locally to /home/backups. This is similar to what I do on ChromeOS, since the backup folder on ChromeOS is set to always be available offline.

This will increase overall performance and allow backups and backup restores to occur quickly, without a network connection, and without potential issues that can arise from backing up to remote filesystems.

rclone mount support for gdrive is apparently good, but still not without flaws.

So, the end results will be:

  • Back up to /home/backups (compressed, but try to exclude large things)
  • Have another job that periodically runs rclone to sync to Google drive, one way. If it fails, no big deal, it'll pick itself up later.

I'll need to add a new user systemd timer and read up on rclone to do this. backing up to /home/backups already works and uses a separate config than chromeOS via config.json.

Added generic rclone remote syncing capability to the existing borg backup scripts. Opt-in and optional via setting an rclone remote in config.json. Implemented in 9b4693f . Documentation at https://github.com/cbeley/beleyenv#sync-borg-backups-via-rclone