vorta icon indicating copy to clipboard operation
vorta copied to clipboard

Expose scheduler funtionality

Open Readonly12 opened this issue 2 years ago • 2 comments

Problem: Backup missed, because external Drive Destination is not connected. Backup should be started as soon as the drive is mounted.

As mentioned in #1301, there doesn‘t seem to be a cross platform way to check for mounted media.

So instead I‘m proposing to expose the Scheduler funtionality to be used in scripts. A simple commandline argument returning true/false if a backup is needed.

That would be enough to implement a backup on mount.

Readonly12 avatar Sep 09 '23 15:09 Readonly12

You can already start a backup from a script:

--create PROFILE Create a backup in the background using the given profile. Vorta must already be running for this to work.

m3nu avatar Sep 09 '23 20:09 m3nu

Thanks for the reply! I‘m sorry, but thats not the point of the issue. I already know about starting the backup. It‘s quite easy to start a backup on disk mount. The problem is that there is no way to check if a backup should be done, since the schedule functionality can‘t be accessed.

Readonly12 avatar Sep 10 '23 11:09 Readonly12