Skip to content

Collection of scripts for Windows that wrap the Restic backup tool for local repository

License

Notifications You must be signed in to change notification settings

thiamteck/restic-scripts

Repository files navigation

Restic scripts (Windows)

Collection of scripts for Windows that wrap the Restic backup tool for local repository.

Pre-requisite

  1. Scoop
  2. Restic
    scoop install restic
  3. Create local Restic repository (if you do not have a repository yet):
    restic init --repo /path/to/repo
  4. Prepare excludes list:
    create_restic_ignore.bat
  5. You may then review the .resticignore and edit based on your preference

Steps:

  1. (Optional) Enter password for the session:
    session_login.bat
  2. Run command to backup:
    restic_backup.bat /path/to/source /path/to/repo

Extra:

  1. if you would like to exclude a file pattern only when there is a file exists in same folder (i.e. only exclude target folder when pom.xml exists), you may run command below:
     dir /b/s /path/to/source | findstr "\\pom.xml" | optional\findrepl.bat "pom.xml" target >> .resticignore

Credits:

About

Collection of scripts for Windows that wrap the Restic backup tool for local repository

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published