Most of the time I create a separate B2 bucket and restic repo for each machineīecause it’s more secure: when machines share a restic repo they haveįull read write access to each other’s backups. Or each computer can back up to its own separate repo. When backing up multiple computers they can all back up to the same restic repo I find it simpler to create a separate bucket for each restic repo.Ī B2 account is limited to 100 buckets so if you have a lot of repos you might To subpaths of buckets so different hosts don’t have access to each other’s backups. This would allow a single B2 bucket to contain multiple restic repositories atĭifferent paths, and I think B2 application keys can be given access restricted Just add a path to the end of your RESTIC_REPOSITORY like this: b2:bucketname:path/to/repo. Name with no path ( b2:restic-seanh-laptop-79539).Īlternatively you could create the restic repository in a subdirectory within the bucket. ![]() That’s why my RESTIC_REPOSITORY environment variable contains just a bucket I create one restic repository in each B2 bucket, at the root of the bucket. One-to-one mapping between buckets and repositories You can leave B2’s default encryption disabled: restic will encrypt your files for you. Hence the random numbers at the end of the bucket name. Navigate to the B2 Cloud Storage Buckets page,īucket names must be unique across all of B2, including the names of other user’s buckets! Before you can back anything up to B2 you “unable to create lock in backend” errorīacking up a new machine for the first time 1.“Please specify repository location” error.Deleting snapshots with restic forget and restic prune.Restoring files from a snapshot with restic restore.Listing files in snapshots with restic ls.Listing snapshots with restic snapshots. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |