> For the complete documentation index, see [llms.txt](https://docs.roboflow.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.roboflow.com/deployment/self-hosted/enterprise/deployment-manager/making-changes/redeploy-deployment-manager.md).

# Redeploy Deployment Manager

Redeploy Deployment Manager onto an existing device to recover its Roboflow configuration after a failure.

In some cases, you want to redeploy Deployment Manager onto an existing device. This is most common when you find an existing device has become corrupted or you have an unrecoverable hardware failure.

Redeploy the device to retrieve its saved Roboflow configuration. The new installation keeps the same Device ID and device API key. Files stored only on the old device, such as Event Store images and container volumes, are not restored.

:warning: Please ensure that you don't redeploy manager onto a second device while the first device is still operational.

To redeploy onto a new device, open the existing device in Deployment Manager. Then open the options menu in the top right and click "Redeploy Device".

<figure><img src="https://1583372177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoksNmwps1HmYr8TqHDnX%2Fuploads%2Fgit-blob-2c428ca51c97dbdb097182ed005ddb53c7480106%2Fenterprise-device-menu.png?alt=media" alt="Device options menu with Redeploy Device" width="240"><figcaption></figcaption></figure>

Then, click on "Generate Redeploy Command" to get the install script.

On a Roboflow OS device, click "Generate Setup Code" instead. Then set up the device with the new Setup Code or `device.json`, the same way as when you [add a device](https://docs.roboflow.com/deployment/self-hosted/enterprise/deployment-manager/setting-up/add-a-device.md#roboflow-os).

On a Roboflow OS Lite device, click "Continue", then build a new image and write it to the card, the same way as when you [set up the device](https://docs.roboflow.com/deployment/self-hosted/enterprise/deployment-manager/setting-up/set-up-a-roboflow-os-lite-device.md#create-the-device-image).

The steps below are for Debian devices.

<figure><img src="https://1583372177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoksNmwps1HmYr8TqHDnX%2Fuploads%2Fgit-blob-2c2fd34304a0ea3c79193ad1eadd306f630fa672%2Fenterprise-redeploy-device.png?alt=media" alt="Redeploy Device dialog with Generate Redeploy Command" width="640"><figcaption></figcaption></figure>

Then copy the install script and execute it from a terminal on the device with elevated privileges. The script reinstalls the device software and interrupts any processes running on the device.

:warning: Note that the install script is only active for 10 minutes and then expires. After expiration, you'd have to regenerate the install script.
