Collection of scripts for Windows that wrap the Restic backup tool for local repository.
- Scoop
- Restic
scoop install restic - Create local Restic repository (if you do not have a repository yet):
restic init --repo /path/to/repo - Prepare excludes list:
create_restic_ignore.bat - You may then review the
.resticignoreand edit based on your preference
- (Optional) Enter password for the session:
session_login.bat - Run command to backup:
restic_backup.bat /path/to/source /path/to/repo
- if you would like to exclude a file pattern only when there is a file exists in same folder (i.e. only exclude
targetfolder whenpom.xmlexists), you may run command below:dir /b/s /path/to/source | findstr "\\pom.xml" | optional\findrepl.bat "pom.xml" target >> .resticignore
optional\findrepl.batis from Aicini@dostips.com