Autorestic quick start
Install autorestic:
sudo wget -qO - https://raw.githubusercontent.com/cupcakearmy/autorestic/master/install.sh | sudo bashConfig file:
/home/mac/.autorestic.yml
version: 2
locations:
  ansible_semaphore-mysql:
    from: ansible_semaphore-mysql  # The exact name of your Docker volume
    type: volume  # This tells Autorestic to handle it as a Docker volume
    to:
      - b2
    forget: prune
    options:
      forget:
        keep-daily: 7
        keep-weekly: 4
        keep-monthly: 12
  volume_folder:
    from: 
      - /home/mac/docker_volumes
    to: 
      - b2
    forget: prune
    options:
      forget:
        keep-daily: 7
        keep-weekly: 4
        keep-monthly: 12
backends:
  name-of-backend:
    type: b2
    path: 'bucket_name'
    # Or With a path
    # path: 'bucket_name:/some/path'
    key: "backblaze_password"
    env:
      B2_ACCOUNT_ID: 'backblaze_keyID'
      B2_ACCOUNT_KEY: 'backblaze_applicationKey'
Creating the repository and starting the backup
1) Set Environment Variables
sudo nano ~/.bashrc
Add the below to the bottom of the bashrc:
export B2_ACCOUNT_ID="your-b2-account-id"
export B2_ACCOUNT_KEY="your-b2-account-key"Apply the changes with source ~/.bashrc
2) Create a new repository
restic -r b2:Macslodge:/backups init3) Start the backup
sudo autorestic backup -a 
                
No comments to display
No comments to display