Backups via CLI

What is the problem?
I want to automate backups on a regular basis. My plan was to set up a cronjob and use the CLI for the backup plugin to do this.

What did you already try to solve it?
I saw the documentation for the CLI here.

The docs show the command for a backup is:
$ octoprint plugins backup:backup

However this just returns -bash: octoprint: command not found

Do I need to do a manual install of Octoprint to be able to access the CLI? What other steps can I take to be able to access the backup CLI? Alternatively are there any better ways to automate backups?

Additional information about your setup
OctoPrint version: 1.3.11
OctoPi version: 0.15.1

The octoprint binary just isn't on the PATH. Try /home/pi/oprint/bin/octoprint.

1 Like

Oops! Thank you :slightly_smiling_face: