<p>There is an OctoPrint plugin that attempts to achieve exactly that. The plugin is called <a href="https://plugins.octoprint.org/plugins/powerfailure/" rel="nofollow noreferrer">OctoPrint-PowerFailure</a> and it's page describes:</p>
<blockquote>
<p>OctoPrint-PowerFailure attempts to recover a print after a power failure or printer disconnect. It is intended as a last resort and does not replace the use of proper power backup and appropriate communication setups. Recovered parts are certain to show small defects, but this may be acceptable in some cases.</p>
</blockquote>

CC BY-SA 4.0
2023-12-18T20:14:38.050Z
2023-12-18T20:14:38.050Z
Bob Ortiz
<p>As per the Marlin documentation for G-code <a href="https://marlinfw.org/docs/gcode/M413.html" rel="nofollow noreferrer">M413 - Power-loss Recovery</a>:</p>
<blockquote>
<p>When Power-loss Recovery is enabled, and Marlin runs a print job <strong>from the SD Card or Flash Drive</strong>, it periodically saves the print job state to the SD Card / Flash Drive. If the machine crashes or a power outage occurs, Marlin presents the option to resume the interrupted print job.</p>
</blockquote>
<p>If the printer is controlled by a host over USB instead (such as OctoPrint), can you still use Power-loss Recovery?</p>

<marlin><octoprint>
Can you use Power-loss Recovery when printing from OctoPrint?
Bob Ortiz
# Can you use Power-loss Recovery when printing from OctoPrint?

(Asked by: username_0 on 2023-12-12)

As per the Marlin documentation for G-code [M413 - Power-loss Recovery](https://marlinfw.org/docs/gcode/M413.html):

> When Power-loss Recovery is enabled, and Marlin runs a print job **from the SD Card or Flash Drive**, it periodically saves the print job state to the SD Card / Flash Drive. If the machine crashes or a power outage occurs, Marlin presents the option to resume the interrupted print job.

If the printer is controlled by a host over USB instead (such as OctoPrint), can you still use Power-loss Recovery?

**Tags:** marlin, octoprint


---

## 1 answers

### Answer by username_0 on 2023-12-18. Score: 1 | Accepted answer

There is an OctoPrint plugin that attempts to achieve exactly that. The plugin is called [OctoPrint-PowerFailure](https://plugins.octoprint.org/plugins/powerfailure/) and it's page describes:

> OctoPrint-PowerFailure attempts to recover a print after a power failure or printer disconnect. It is intended as a last resort and does not replace the use of proper power backup and appropriate communication setups. Recovered parts are certain to show small defects, but this may be acceptable in some cases.


---

