{"id":20969362,"url":"https://github.com/imranr98/restic-backup","last_synced_at":"2026-03-07T01:35:23.591Z","repository":{"id":123996858,"uuid":"286648873","full_name":"ImranR98/Restic-Backup","owner":"ImranR98","description":"Shell scripts to automate backup of a folder to a Backblaze B2 bucket using Restic.","archived":false,"fork":false,"pushed_at":"2024-02-03T04:57:22.000Z","size":33,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-26T10:44:53.812Z","etag":null,"topics":["automation","backblaze","backblaze-b2","backup","bash","bash-script","restic","restic-backup","restic-script"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ImranR98.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-11T04:53:32.000Z","updated_at":"2025-11-15T19:55:55.000Z","dependencies_parsed_at":"2024-02-03T05:32:14.913Z","dependency_job_id":"cc8b3d5a-e375-4175-9f7e-1218a14e6855","html_url":"https://github.com/ImranR98/Restic-Backup","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ImranR98/Restic-Backup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ImranR98%2FRestic-Backup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ImranR98%2FRestic-Backup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ImranR98%2FRestic-Backup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ImranR98%2FRestic-Backup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ImranR98","download_url":"https://codeload.github.com/ImranR98/Restic-Backup/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ImranR98%2FRestic-Backup/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30205212,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T19:07:06.838Z","status":"ssl_error","status_checked_at":"2026-03-06T18:57:34.882Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","backblaze","backblaze-b2","backup","bash","bash-script","restic","restic-backup","restic-script"],"created_at":"2024-11-19T03:20:33.619Z","updated_at":"2026-03-07T01:35:23.554Z","avatar_url":"https://github.com/ImranR98.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Restic-Backup\nShell scripts to automate backup of a folder to a Backblaze B2 bucket or another local folder using Restic.\n\n## Environment Variables\nCopy or rename the `vars.template.sh` file to `vars.sh`, then fill in the empty variables:\n\n- `B2_ACCOUNT_ID` - Application Key ID for a BackBlaze B2 account.\n- `B2_ACCOUNT_KEY` - Application Key for the above Key ID.\n- `RESTIC_PASSWORD` - Password to the encrypted Restic repo (if running for the first time, set this to the desired password). If this is empty, you will be asked for a password when running commands.\n- `TARGETBUCKET` - B2 Bucket name where the Restic repo should be. If this is left empty, the Restic repo is assumed to be a local folder at `REMOTEPATH`.\n- `LOCALPATH` - Path to the local folder to be backed up.\n- `REMOTEPATH` - Remote path for where the backup should be stored in the Restic repo on B2.\n- `RETENTIONPOLICY` - Options to use when running `forget` the command.\n\nYou can place `vars.sh` at an alternative path and provide it as the first argument to the script.\n\n## Actions\n- Backup - Backs up the folder to the Restic repo on BackBlaze, according to the configuration in `vars.sh`. Creates a backup if one does not exist, else updates the existing backup.\n- Forget - Runs a `forget` command to mark certain snapshots for deletion. Uses the `RETENTIONPOLICY` from `vars.sh` to target the snapshots to be deleted.\n- Prune - Runs a `prune` command to actually delete all snapshots that are marked for deletion, as well as any invalid snapshots.\n- List Backup Snapshots - Lists all backup snapshots for the configured Restic repo on BackBlaze.\n- Check Backup Integrity - Checks to see if the currently backed up snapshots are valid.\n- Mount - Mounts the repo to ~/resticBackup. This can be used to restore data.\n- Freeform - Allows you to run any other Restic command, such as `prune`, using the configuration in `vars.sh`.\n\n## Usage\nRun `main.sh` and pick a command.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimranr98%2Frestic-backup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimranr98%2Frestic-backup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimranr98%2Frestic-backup/lists"}