Skip to content

Instantly share code, notes, and snippets.

@hiteshjasani
Last active May 27, 2018 15:18
Show Gist options
  • Save hiteshjasani/bd1e79a4820af025a14f1954b80af19a to your computer and use it in GitHub Desktop.
Save hiteshjasani/bd1e79a4820af025a14f1954b80af19a to your computer and use it in GitHub Desktop.
Backup Configuration

Backup Providers

  • Mac and Windows backup applications
  • Linux supported through scripts to Backblaze B2 (Object Storage) service

Caveats

  • Expicitly disallows backing up of /usr/, so anything installed in /usr/local/ via Homebrew will NOT be backed up!
    • Workaround 1: Homebrew users can mitigate this somewhat by periodically capturing their list of installed packages using brew list > ~/homebrew.packages. Having this list makes it easier to reinstall packages if they need to rebuild their machine.
    • Workaround 2: Write scripts to back up /usr/local/ to Backblaze B2.
  • Explicitly disallows backing up of /Applications. Users will have to reinstall any third party software they installed here.
  • No gui application for Linux
  • Backblaze B2 is not encrypted, files backed up to it would need to be encrypted by scripts on the client.
  • Not an archival system. This means that any files that no longer exist on your laptop for more than 30 days will automatically be deleted from the backup system as well.

Config

  • Add ~/.m2 exclusion

Restic is an open source backup tool that supports many different storage providers.

Features

  • Runs on Mac, Linux, Windows
  • Can back up to:
    • Local directory
    • sftp server (via SSH)
    • HTTP REST server (protocol rest-server)
    • AWS S3 (either from Amazon or using the Minio server)
    • DigitalOcean Spaces
    • OpenStack Swift
    • BackBlaze B2
    • Microsoft Azure Blob Storage
    • Google Cloud Storage
    • And many other services via the rclone Backend

Solutions

DigitalOcean Spaces is an Object Storage system can be used for archival, sharing of files and as a backup location.

Similar to Backblaze, provides "unlimited" storage but not archival as files are removed if not seen in a backup for 90 days.

Caveats

Backup Configuration

Directory Exclusions

Exclusions

  • ~/.m2

Inclusions

  • /usr/local/

Files

Exclusions

  • *.dmg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment