The Send-MailMessage cmdlet is obsolete. It doesn't guarantee secure connections to SMTP servers.
Use Send-MailKitMessage module instead.
Signed-off-by: Manuel Fombuena <fombuena@outlook.com>
Co-authored-by: Kevin Woley <kmwoley@users.noreply.github.com>
restic-windows-backup runs backups irrespective of the host being on a metered connection or unrestricted. That can lead to situations in which the backup takes place when the user is on a metered connection and would rather not do it at that time, either because they would incur costs or use up their data allowance.
The default value of $BackupOnMeteredNetwork is set to $false following a conservative approach.
Closes https://github.com/kmwoley/restic-windows-backup/issues/82
Signed-off-by: Manuel Fombuena <fombuena@outlook.com>
* $SnapshotDeepMaintenanceDays = $null disables deep data checks
* updated install binary links to v0.14
* add config point for additional backup parameters
* - backup and maintenance run independently
- fixed issues with several incorrect function return values
* check for new version of restic during maintenance
* removing duplicate excludes, resolves#60
* update restic .exe version
add self-update to the install script
* Release 1.6 Changelog updates
- when $true, missing external drives or folders don't produce errors
- when $null or $false, missing drives and/or folders result in an error
- Default is set ot $false as not to silently fail backing up a source
- select backup source by drive label, device name, or serial number
- fix forget policy to be safe for multiple drives (group by host,tags)
- tag each backup source with drive/source name
Adds double quotes around each path and removes a trailing backslash from them as well. I have found through experimentation that restic does not like a backslash followed by a double quote. The backslash appears to be an escape character.
Surrounding the path with double quotes allows paths with spaces to be used.
Related changes -
removed folder enumeration and instead point to the root filesystem:
snapshot handling will be better now that changing folders won't group sets
default exlusion list updates:
C:\$Recycle.Bin
C:\$WINDOWS.~BT
C:\$WinREAgent