Commit Graph

104 Commits

Author SHA1 Message Date
Kevin Woley
edef828984 Merge pull request #112 from innovara/fix_typos_release_1.7.1
Fix some typos on comments
2025-02-03 10:18:19 -08:00
Manuel Fombuena
19d8e65d92 fix some typos
Signed-off-by: Manuel Fombuena <fombuena@outlook.com>
2025-02-03 11:00:54 +00:00
Kevin Woley
d180f3f30c Metered connection check is now works for PowerShell 7, improved internet connection check logging 2025-02-01 22:48:06 -08:00
Kevin Woley
b642afa509 fix logic for checking metered network configuration settings 2025-01-27 15:28:23 -08:00
Kevin Woley
add848471f make $BackupOnMeteredNetwork default to true in config 2025-01-27 15:16:27 -08:00
Kevin Woley
8fed01a1f6 Merge pull request #108 from innovara/metered-check
Add feature to control backups on metered connections
2025-01-27 15:12:00 -08:00
Kevin Woley
21e68f4b42 Merge branch 'release_1.7.1' into metered-check 2025-01-27 15:09:09 -08:00
Kevin Woley
c75bc74724 added more verose and explicit logging to the console via Write-Host 2025-01-27 11:14:41 -08:00
Kevin Woley
80fab4092c remove $Global: scoped variables in favor of $Script: scope, and explicitly scope each usage 2025-01-27 10:26:45 -08:00
Kevin Woley
c433c44b70 updated install script to use the global parameters, removed separate $SelfUpdateParameters 2025-01-27 10:15:13 -08:00
Kevin Woley
c8776b42c0 replaced "&" execution with Invoke-Expression, enabled refactoring to set $GlobalParameters in one place
Removed $ResticExe, $StateFile, and $LogPath from config.ps1
2025-01-26 12:53:12 -08:00
Kevin Woley
33163ecb60 reorganize the layout/order of the config.ps1 file 2025-01-26 10:41:09 -08:00
Kevin Woley
7673c83e3f Merge pull request #96 from woelfisch/main
Add optional configuration options for additional parameters to resti…
2025-01-26 00:03:30 -08:00
Kevin Woley
c930b9499e Merge branch 'main' into main 2025-01-26 00:00:29 -08:00
Kevin Woley
3f3a87a04f Change log for 1.7 1.7 2025-01-25 17:44:13 -08:00
Kevin Woley
6ef3526716 Merge pull request #110 from kmwoley/2024.11
Merge 2024.11 into Main
2025-01-25 17:13:31 -08:00
Kevin Woley
8a8165fe01 cast email addresses to their Mimekit types 2025-01-25 17:04:19 -08:00
Kevin Woley
296621268e streamline the Send-MailKitMessage installation 2025-01-25 16:44:08 -08:00
Kevin Woley
4ee0eff191 rename email $PS* variable name settings to $Restic*, and warn if using deprecated email settings, 2025-01-24 23:34:43 -08:00
Kevin Woley
6e5bf4823b fix merged credential handling, handle back compat for existing secrets for SMTP port 2025-01-24 23:10:35 -08:00
innovara
c4a497e0d1 Replace deprecated Send-MailMessage with Send-MailKitMessage (#107)
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>
2025-01-24 21:50:08 -08:00
Kevin Woley
b81aa242bc improve default configuration values 2024-11-14 12:15:14 -08:00
Manuel Fombuena
09b9066049 Add feature to control backups on metered connections
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>
2024-11-11 22:10:00 +00:00
Kevin Woley
efcdc9d291 clean up variable naming, style conventions for previous PR 2024-11-10 23:41:08 -08:00
SeeJayEmm
aad279210a Allow for unauthenticated SMTP. (#81)
* Allow for unauthenticated SMTP, fixes #66
2024-11-10 23:26:31 -08:00
Kevin Woley
5a660ea5d6 powershell 7.3+ fixes 2024-11-10 23:14:46 -08:00
Daniel Harding
7609b8147a Limit snapshot pruning to the current host (#94)
* Limit snapshot pruning to the current host

Address #70 by only pruning snapshots from the current host by default when performing maintenance.  This avoids inadvertently pruning snapshots from other hosts when that might not be desired.

* add back 'host' to group-by

I think it's safer to keep `--group-by 'host,tags'` even if the `--host` parameter is provided. This makes sure that the `forget` always groups together snapshots from the same host. It may be unneeded.

---------

Co-authored-by: Kevin Woley <kmwoley@users.noreply.github.com>
2024-11-10 15:41:26 -08:00
Export33
b33d2d176b Added Example (#84)
Co-authored-by: Export <donotforgetme@web.de>
2024-11-10 15:16:18 -08:00
Export33
6ec929a75c fix typ (#83)
Co-authored-by: Export <donotforgetme@web.de>
2024-11-10 15:13:29 -08:00
Jonas Hagenberg
e06230c68b fix typo in readme (#74) 2024-11-10 14:52:32 -08:00
Kevin Woley
3a8fb017d7 adding the full path to restic to AV process exclusion 2024-11-09 11:23:57 -08:00
Kevin Woley
1456799955 add "Nextcloud" to the default windows exclude directory 2024-11-09 11:13:06 -08:00
Kevin Woley
df52535a17 update .gitignore to include restic.exe backup file 2024-11-09 11:12:37 -08:00
Kevin Woley
7f520e3995 update install script to restic version 0.17.3 2024-11-09 11:12:09 -08:00
Joerg Reuter
0e8262ab05 Add optional configuration options for additional parameters to restic calls, $AdditionalParameters and $SelfUpdateParameters and make self update of restic binary configurable via $AllowResticSelfUpdate config option 2024-03-17 16:26:51 +01:00
Kevin Woley
f759630532 removing harmless, unneeded ; 2023-01-14 23:20:34 -08:00
enzo-g
6b13a4b710 Update README.md (#58)
Correct one typo mistake
2023-01-14 23:01:05 -08:00
Kevin Woley
be5e8ead2b Release 1.6 Merge (#73)
* $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
1.6
2023-01-14 22:44:11 -08:00
Kevin Woley
c949cdde59 wording and style changes to the README 2021-11-14 20:05:59 -08:00
Felix Knecht
6d98ee03d8 Document how to get backup to sftp running (#52) 2021-11-14 20:01:46 -08:00
Kevin Woley
73142af934 added instructions for setting the Powershell execution policy 2021-09-12 20:07:30 -07:00
Kevin Woley
37426fa0fc Merge pull request #49 from ianneub/fix-url
Fix URLs for 64bit setup
2021-09-12 19:55:23 -07:00
Ian Neubert
8cf4190c8f Fix URLs for 64bit setup 2021-09-11 11:11:27 -07:00
Kevin Woley
5aebe71dab type: Restic 0.12.1, not 12.1 2021-09-11 06:04:27 -07:00
Kevin Woley
99cce23b42 minor spelling, typo fixes 1.5 2021-09-11 05:48:09 -07:00
Kevin Woley
a0180a6a4d added external, removable drive features 2021-09-11 05:44:06 -07:00
Kevin Woley
4c796b92b8 minor typos corrected 2021-09-11 05:43:58 -07:00
Kevin Woley
bd40ae1d5f Merge pull request #47 from kmwoley/release_1_5
Release 1.5
2021-09-11 05:26:53 -07:00
Kevin Woley
48d0ab73b2 update changelog for 1.5 release 2021-09-11 05:25:19 -07:00
Kevin Woley
fac2462981 Add the ability to $IgnoreMissingBackupSources
- 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
2021-09-10 21:51:01 -07:00