Skip to content

Instantly share code, notes, and snippets.

@jralvarezc
Last active August 9, 2019 06:35
Show Gist options
  • Save jralvarezc/2dca3328d75c6da75b91bd2060e0bf06 to your computer and use it in GitHub Desktop.
Save jralvarezc/2dca3328d75c6da75b91bd2060e0bf06 to your computer and use it in GitHub Desktop.
# Sign-up at https://www.backblaze.com/ and raise the CAPS
# Setup parameters on the environment
$ export B2_ACCOUNT_ID=X
$ export B2_ACCOUNT_KEY=Y
$ export RESTIC_REPOSITORY=b2:ralvarezc:auto
$ export RESTIC_PASSWORD_FILE=$HOME/.secrets/restic
# Install restic
$ nix-env -i restic
# Init the repo
$ restic init
enter password for new repository:
enter password again:
created restic repository W at $RESTIC_REPOSITORY
Please note that knowledge of your password is required to access
the repository. Losing your password means that your data is
irrecoverably lost.
# First backup
$ restic backup --verbose $HOME --exclude=$HOME/.cache
enter password for repository:
repository XXXXXX opened successfully, password is correct
created new cache in $HOME/.cache/restic
[11:03:59] 63.07% 307860 files 41.071 GiB, total 416916 files 65.119 GiB, 0 errors ETA 6:28:46
# wait aprox 18h for 65GiB from Medellín, Colombia. Claro ISP at 40 Mbps
# TODO
# a. Nixify
# https://github.com/danieldk/nix-home/blob/master/cfg/restic.nix
# https://github.com/sboehler/nixos-config/blob/master/modules/nuc-backup.nix
# b. check backups commands
# c. restore commands
# d. Wasabi store?
# https://wasabi-support.zendesk.com/hc/en-us/articles/115002240372-How-do-I-use-Restic-with-Wasabi-
# https://forum.restic.net/t/using-wasabi-for-offsite-backups-with-restic/204/24
# e. --keep-tag: checkpoints?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment