Closed brian6932 closed 1 year ago
Sure.
CPLB creates a scheduled task by default, but I think scheduling a reoccurring backup should be an additional manual command for this module.
I'm currently thinking something along the lines of:
scoop-backup -s
where the new -s
flag not only runs the backup script, but schedules it to reoccur on a weekly basis.
In additional, you'll be able to provide a number of hours between backups to override the default of 168 (1 week).
I'll probably push this over the weekend but feel free to bump this issue if I forget.
Thanks for the suggestion.
I'll probably push this over the weekend but feel free to bump this issue if I forget.
^
Whoops, checking back in. I made an attempt at this but as it turns out, scheduling tasks in Windows is a non-negligible feat.
Here's the snags I've encountered:
If anybody else has a workaround suggestion or PR they want to push addressing this, be my guest. But I've basically bumped up against the amount of time I'm willing to spend on this atm.
For a determined user, consider using the Windows Task Scheduler. I couldn't even get it to work in this context, and debugging this was highly unpleasant, but I would assume refactors would be necessary.
closing ancient issues
So on Chocolatey, there's a similar backup package called CPLB for its packages respectively, and one feature from that package I find really handy is that it creates a scheduled task to backup my Chocolatey packages weekly. Would it be possible to port such a feature?