docker-mc-backup icon indicating copy to clipboard operation
docker-mc-backup copied to clipboard

How to restore the server to a given state from a backup (tar)?

Open barseghyanartur opened this issue 2 years ago • 4 comments

Maybe a stupid question, but how do I restore the server from backups that I have?

barseghyanartur avatar Jun 05 '22 20:06 barseghyanartur

Using the restore method of the chosen backup method, stage the contents into a volume/directory that will be re-mounted as the container /data path. (If using the default tar method, then use tar xf.) Then, recreate the container mounting the restored content to the /data/ path.

itzg avatar Jun 05 '22 20:06 itzg

@itzg: Awesome! Thanks a lot.

barseghyanartur avatar Jun 05 '22 22:06 barseghyanartur

Hi, I tried setting the volume to the old version I wanted to restore and it just created a new world. Any ideas on how to restore a world?

alexk1919 avatar Dec 12 '22 05:12 alexk1919

@alexk1919 you'll need to elaborate on what you tried: compose files, run commands, before and after, etc?

itzg avatar Dec 12 '22 13:12 itzg