Command Line Backup utilities Restic with Backblaze B2 - Command Line Backup Utility Updated February 17 2026
If you want to use Restic to do important backups to Backblaze, this article has some important security considerations.
https://medium.com/@benjamin.ritter/how-to-do-ransomware-resistant-backups-properly-with-restic-and-backblaze-b2-e649e676b7fa


Example B2 Command to create a new B2 Bucket for restic backups. Change "NewBucketName" to the name you need.

Copy to Clipboard b2 bucket create --defaultServerSideEncryption=SSE-B2 NewBucketName --lifecycleRule '{"daysFromHidingToDeleting": 90, "daysFromUploadingToHiding": 90, "fileNamePrefix": ""}' allPrivatewrite or b2 bucket create --default-server-side-encryption SSE-B2 --lifecycle-rule '{"daysFromHidingToDeleting": 30, "daysFromUploadingToHiding": null, "fileNamePrefix": ""}' important-backup allPrivate


Example B2 Command to create a new API key for this new bucket:
Copy to Clipboard b2 key create --bucket important-backup restic-key listBuckets,listFiles,readFiles,writeFiles


More details on Backblaze B2 here:
https://www.backblaze.com/docs/cloud-storage-lifecycle-rules
https://www.backblaze.com/docs/cloud-storage-buckets


brestore - Bucket Restore for AWS and GCP. This lets you restore a bucket back to a certain day/time (depending on your lifecycle rules)
https://github.com/viltgroup/bucket-restore?tab=readme-ov-file




©2024 - Some portions of this website are Copyrighted.
Your IP: 216.73.216.119     Referring URL:
Browser: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Terms and Conditions, Privacy Policy, and Security Policy