Jump to content

DMP Server Backup For Windows


Recommended Posts

So i created a little batch file that people with windows OS may find useful. It will create a backup and time stamp it, place a back up folder in your DMPSERVER folder. Just make sure your path to the folder looks like this "C:\program files\steam\steamapps\common\kerbal space program\DMPSERVER".

Place the following text into windows notepad and save as DMPBackup.bat, Then save where ever you like and set as task in taskmanager to run every hour or however long you want the time intervals to run. currently in the process of having it delte old files after a number of days.

--------------------------------------------------------------------------------------------------

@echo off

for /f "tokens=2 delims==" %%a in ('wmic OS Get localdatetime /value') do set "dt=%%a"

set "YY=%dt:~2,2%" & set "YYYY=%dt:~0,4%" & set "MM=%dt:~4,2%" & set "DD=%dt:~6,2%"

set "HH=%dt:~8,2%" & set "Min=%dt:~10,2%" & set "Sec=%dt:~12,2%"

set "datestamp=%MM%-%DD%-%YYYY%_%HH%-%MIN%%"

robocopy "C:\program files\steam\steamapps\common\kerbal space program\DMPSERVER\Universe" "C:\program files\steam\steamapps\common\kerbal space program\DMPSERVER\backup\backup_%datestamp%" /e /eta

exit

-------------------------------------------------------------------------------------------------------

Edited by SigmaRaider
Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...