kmwoley / restic-windows-backup

Powershell scripts to run Restic backups on Windows
MIT License
330 stars 68 forks source link

Config Documentation / Append only config? #68

Open demlak opened 1 year ago

demlak commented 1 year ago

Heythere..

since we use append-only mode on rest-sever, we do not want to start pruning etc.

so i tried to understand the script and the config.. but.. well.. i am a little bit confused =)

It woul dbe very helpfull to have an explanation of each config-variable..

i don't know if i just should set $SnapshotMaintenanceEnabled = $false or if this will have more consequences i don't want to have..

so.. 2 questions: "how to work with append-only repos?" and "what about those config-variables?"

thx a lot..

ianneub commented 1 year ago

Setting $SnapshotMaintenanceEnabled = $false is what I do on a couple Windows machines and it has been running well for the last 9 months or so.

If you want to do any maintenance on the repository you will have to do that on your own.

I hope that helps!

kmwoley commented 1 year ago

Thanks, that's good feedback that the documentation could use improvement.

@ianneub is correct that setting $SnapshotMaintenanceEnabled = $false will stop all attempts to prune and forget, but it also will stop the script for checking data integrity.

If it's useful, I could add configuration points to disable forgetting and pruning individually so that maintenance could run, but just not those parts of "maintenance.