Loading repository data…
Loading repository data…
ImranR98 / repository
Shell scripts to automate backup of a folder to a Backblaze B2 bucket using Restic.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
Shell scripts to automate backup of a folder to a Backblaze B2 bucket or another local folder using Restic.
Copy or rename the vars.template.sh file to vars.sh, then fill in the empty variables:
B2_ACCOUNT_ID - Application Key ID for a BackBlaze B2 account.B2_ACCOUNT_KEY - Application Key for the above Key ID.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.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.LOCALPATH - Path to the local folder to be backed up.REMOTEPATH - Remote path for where the backup should be stored in the Restic repo on B2.RETENTIONPOLICY - Options to use when running forget the command.You can place vars.sh at an alternative path and provide it as the first argument to the script.
vars.sh. Creates a backup if one does not exist, else updates the existing backup.forget command to mark certain snapshots for deletion. Uses the RETENTIONPOLICY from vars.sh to target the snapshots to be deleted.prune command to actually delete all snapshots that are marked for deletion, as well as any invalid snapshots.prune, using the configuration in vars.sh.Run main.sh and pick a command.