Viewing 1 post (of 1 total)
  • Author
    Posts
  • #12050
    Admin bar avatarPierre
    Participant

    Ingredients:
    – B2 Cloud Storage
    – Restic backup utility

    Directions:
    Register for ‘B2 Cloud Storage’ at backblaze.com
    Create a B2 bucket with the name SPIREBUCKET, note the ID and KEY
    Download Restic from github.com/restic more info at restic.net

    Make a new folder on your Desktop lets call it Backup
    Rename download to restic.exe and place in Backup folder.
    Create a batch file in the Backup folder, lets name it mybackup.cmd and open it with Notepad

    mybackup.cmd
    ============

    @echo off
    set B2_ACCOUNT_ID=000cf3a13a0be500000000003
    set B2_ACCOUNT_KEY=K00Hd76384GdGRh2TY65hG7sFGHatDw00342000
    set RESTIC_REPOSITORY=b2:SPIREBUCKET:/
    set RESTIC_PASSWORD=my_secret_jksdhfkjsd78687SFDG

    c:
    cd %USERPROFILE%\Desktop\Backup

    restic init
    restic backup C:\ProgramData\Spire\Snapshots
    restic ls latest
    pause

     

    ============
    When you run the mybackup.cmd you might get access denied. To gain access to  C:\ProgramData\Spire\Snapshots  you must Run as Administrator. Right click  mybackup.cmd choose Run as Administrator.

    Notes:
    restic init – You only need to run this once to initialise the restic repository on B2. If you run it again it will complain “Already Initialised” but is otherwise harmless. You may REM it out to if you like.
    restic backup C:\ProgramData\Spire\Snapshots – Does the backup to B2
    restic ls latest – displays a listing of your latest backup in the cloud

    Backblaze does not charge for the first 10GB of storage. If your backup exceeds 10GB they will charge you the overage and it’s dirt cheap.

    Remember: If you neglect to restore and verify then – “You don’t have a backup.”

    Finally use Task Scheduler to run mybackup.cmd nightly.

     

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic. Login here