garethgeorge / backrest

Backrest is a web UI and orchestrator for restic backup.
GNU General Public License v3.0
1.57k stars 41 forks source link

backrest can't use vss-snapshot with startup #412

Open swartjie opened 2 months ago

swartjie commented 2 months ago

Note: if you have a question or need support please post in the discussions area.

Describe the bug When I installed the latest version of backrest, It seems as though the VSS Snapshot feature can't be implemented, after I restart the pc. The backup fails if I try and implement it complaining about "VSS error: The caller does not have sufficient backup privileges or is not an administrator: E_ACCESSDENIED"

How can we fix it? Or what can I do?

To Reproduce Steps to reproduce the behavior:

Install Backrest on windows Setup repo Setup backup plan (enable vss snapshot flag) Reboot Run Backup

Expected behavior it's supposed to backup the system after making a snapshot.

Platform Info Windows 11

daniel-rikowski commented 2 months ago

Do you run backrest as Administrator? The VSS feature requires elevated rights... In principle, adding the user to the Backup Operators group would suffice, but if you are using a scheduled task, perhaps it's easier to just tick the "Run with highest privileges" checkbox.

swartjie commented 2 months ago

I initially ran it as admin, but how can I continue to run it as admin? Starting up as admin doesn't work with the shortcut in the startup folder, or am I missing something?

daniel-rikowski commented 2 months ago

No, you are right, it's not possible without jumping through some hoops.

The most straight forward way is to create a scheduled task and set the trigger to "At logon"

See https://superuser.com/a/929227/2603 (Also consider the comments)

Also tick the "Run with highest privileges" checkbox.

daniel-l commented 1 month ago

No, you are right, it's not possible without jumping through some hoops.

The most straight forward way is to create a scheduled task and set the trigger to "At logon"

See https://superuser.com/a/929227/2603 (Also consider the comments)

Also tick the "Run with highest privileges" checkbox.

This is right and the way to got. I have set up two machines this way and it is working flawlessly since weeks.