![]() ![]() From the elevated (Run as Administrator) Powershell window, run.The scripts assume you want to get emails about the success/failure of each backup attempt. Email sending configuration is also contained with this file.restic will pick up the repo destination from the environment variables you set in this file - see this doc for more information about configuring restic repos.secrets_template.ps1 is a template for the secrets.ps1 file - copy or rename this file to secrets.ps1 and edit.The secrets file contains location and passwords for your restic repository.Depending on the policy you choose, may need to 'unblock' the execution of the scripts you download by running Unblock-File *.ps1.For example, Set-ExecutionPolicy -ExecutionPolicy RemoteSigned is a good default. If you haven't done so in the past, set your Powershell script execution policy to allow for scripts to run.Change your working directory to C:\restic.Download scripts from, and unzip them into C:\restic.This is up to you to sort out where you want the data to go to.Runs routine maintenence (pruning and checking the repo for errors on a regular basis).Emailing the results of each execution, including log files when there are problems.Backup, Maintenance and Monitoring are Automated - backup.ps1 script handles.Easy Installation - install.ps1 script downloads Restic, initializes the restic repository, and setups up a Windows Task Scheduler task to run the backup daily.Removable, External Drives - drives can be identified by their volume labels or serial numbers, making it easy to backup drives that occasionally aren't there or change drive letter.VSS (Volume Snapshot Service) support - backup everything, don't worry about what files are open/in-use.Simplifies the process of installation and running daily backups. Powershell scripts to run Restic backups on Windows. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |