Skip to content

Instantly share code, notes, and snippets.

@trojanfoe
Last active June 19, 2020 17:18
Show Gist options
  • Save trojanfoe/3d24a220f0f17c55563ecd1e08d4557c to your computer and use it in GitHub Desktop.
Save trojanfoe/3d24a220f0f17c55563ecd1e08d4557c to your computer and use it in GitHub Desktop.
@echo off
REM Change this to where you want the files backed-up to...
REM (Always put a backslash at the end so xcopy knows you want to create a directory)
set dst="%USERPROFILE%\Backups\Minecraft Dungeons\"
set srcdir="%LOCALAPPDATA%\Packages\Microsoft.Lovika_8wekyb3d8bbwe\LocalCache\Local\Dungeons"
if exist %srcdir% goto find_subdir
set srcdir="%LOCALAPPDATA%\Dungeons"
if exist %srcdir% goto find_subdir
echo Could not find Minecraft Dungeons Save directory
goto exit
:find_subdir
for /F "tokens=*" %%F in ('dir /B %srcdir% ^| findstr /R /C:".*[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]"') do set src=%%F
if not "%src%" == "" goto backup
echo Could not find Minecraft Dungeons Save sub-directory
goto exit
:backup
xcopy /S /Y %srcdir%\%src% %dst%
echo These files were saved from directory %srcdir%\%src% > %dst%\README.txt
:exit
pause
@trojanfoe
Copy link
Author

This will backup your Minecraft Dungeons save files to the cloud (or whereever). See this reddit post.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment