Powershell scripts to backup local folders to a removable drive.
Translated from README.fr.md.
Before the first use the target directory must be created on the removable disk. The script searches for this directory on all volumes, so it must not exist on one of the fixed volumes.
The data to be backed up must not be locked (no use of VSS)
Script using restic.
Initialize the backup repository with :
$env:RESTIC_PASSWORD='your_password'
restic init --repo 'V:\backup-photos'
Script using rclone. Can easily be adapted for cloud backup. Does not suit me for local backup because directories are created with the date of the script execution.
Script using the Robocopy tool available on Windows.