# Restore Rancher 2.X from Backup

**URL:** <https://forums.suse.com/t/restore-rancher-2-x-from-backup/16103>\
**Category:** SUSE Rancher Prime\
**Created:** [December 17, 2019, 6:51am UTC](https://forums.suse.com/t/restore-rancher-2-x-from-backup/16103 "2019-12-17T06:51:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lolhax1337](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/lolhax1337/32/4967_2.png) [@lolhax1337](https://forums.suse.com/u/lolhax1337)\
**Post date:** [December 17, 2019, 6:51am UTC](https://forums.suse.com/t/restore-rancher-2-x-from-backup/16103/1 "2019-12-17T06:51:27Z")

</div>

Hi,

Docker on my machine with single-install Rancher 2 crashed. I have no containers, images, but have backup in accordance with this manual:  
[https://rancher.com/docs/rancher/v2.x/en/backups/backups/single-node-backups/](https://rancher.com/docs/rancher/v2.x/en/backups/backups/single-node-backups/)

So, I have a file like: **rancher-data-backup-v2.1-9.10.2019.tar.gz** and **fresh installation** of docker. But when I try to restore Rancher from backup:  
[https://rancher.com/docs/rancher/v2.x/en/backups/restorations/single-node-restoration/](https://rancher.com/docs/rancher/v2.x/en/backups/restorations/single-node-restoration/)

I have to type “rancher container name”

> docker run --volumes-from **\<RANCHER\_CONTAINER\_NAME\>** -v $PWD:/backup   
> busybox sh -c "rm /var/lib/rancher/\* -rf &&   
> tar zxvf /backup/rancher-data-backup-\<RANCHER\_VERSION\>-.tar.gz

And do I really need a container name? I have no old containers becouse of docker crash. Is it really necessary to have old container with Rancher? It looks like a not very useful backup ☹

---

<div class="post-metadata">

**Author:** ![TheNightHawk](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/thenighthawk/32/5772_2.png) [@TheNightHawk](https://forums.suse.com/u/TheNightHawk)\
**Post date:** [December 27, 2019, 10:19am UTC](https://forums.suse.com/t/restore-rancher-2-x-from-backup/16103/2 "2019-12-27T10:19:59Z")

</div>

So what you need to do is create a new Rancher install and then run the restore. The Rancher backup doesn’t contain the actual Docker container, it’s just a backup of the app data.
