- Place the script
resticbackup.cmd
intoC:\Windows
- Customize the script (S3 credentials, S3 endpoint, folders, ...)
- Create the file
C:\Windows\resticbackup.password
containing the restic repository password - Install the restic binary at
C:\Windows\restic.exe
- Create a task in Windows' task scheduler application that executes the
C:\Windows\resticbackup.cmd
script as an action on the desired schedule (e.g. nightly).
Created
November 29, 2024 01:09
-
-
Save pschichtel/e838f74bc14b02ae6deb103ee78d4948 to your computer and use it in GitHub Desktop.
Restic Backups on Windows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
:The S3 access key | |
set "AWS_ACCESS_KEY_ID=" | |
:The S3 secret key | |
set "AWS_SECRET_ACCESS_KEY=" | |
restic --repo "s3:https://s3 host/bucket name/" --password-file C:\Windows\resticbackup.password backup --limit-upload 8000 <folders*> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment