restic-automatic-backup-scheduler
restic-automatic-backup-scheduler copied to clipboard
Installation error on Windows 2012 R2
Hi you all, I don't know if worth fixing it, because the system is pretty outdated.
When I ran
$ make install-schedtask
I got the output, and the tasks were not created.
install -m 0555 build/bin/restic_backup.sh /bin/restic_backup.sh install -m 0555 build/bin/restic_check.sh /bin/restic_check.sh install -m 0555 build/bin/resticw /bin/resticw install -m 0600 -b --suffix=.2024-05-08_15:13:23.bak build/etc/restic/_global.env.sh /etc/restic/_global.env.sh install -m 0600 -b --suffix=.2024-05-08_15:13:23.bak build/etc/restic/backup_exclude.txt /etc/restic/backup_exclude.txt install -m 0600 -b --suffix=.2024-05-08_15:13:23.bak build/etc/restic/default.env.sh /etc/restic/default.env.sh install -m 0600 -b --suffix=.2024-05-08_15:13:23.bak build/etc/restic/pw.txt /etc/restic/pw.txt test Windows != Windows || ./build/ScheduledTask/install.ps1 Register-ScheduledTask: Cannot process argument transformation on parameter 'Trigger'. Cannot convert value "Microsoft.PowerShell.ScheduledJob.ScheduledJobTrigger" to type "Microsoft.Management.Infrastructure.CimInstance[]". Error: "Cannot convert the "Microsoft.PowerShell.ScheduledJob.ScheduledJobTrigger" value of type "Deserialized.Microsoft.PowerShell.ScheduledJob.ScheduledJobTrigger" to type "Microsoft.Management.Infrastructure.CimInstance"." Register-ScheduledTask: Cannot process argument transformation on parameter 'Trigger'. Cannot convert value "Microsoft.PowerShell.ScheduledJob.ScheduledJobTrigger" to type "Microsoft.Management.Infrastructure.CimInstance[]". Error: "Cannot convert the "Microsoft.PowerShell.ScheduledJob.ScheduledJobTrigger" value of type "Deserialized.Microsoft.PowerShell.ScheduledJob.ScheduledJobTrigger" to type "Microsoft.Management.Infrastructure.CimInstance"."
It's a Windows 2012 problem, I did google it.