Announcement

Collapse
No announcement yet.

Dedicated Server Autosave - Simple DOS Solution

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Dedicated Server Autosave - Simple DOS Solution

    1st off thanks to DEADication for his post here,


    https://7daystodie.com/forums/showthread.php?48291-Control-your-server-with-Telnet-(Putty)

    To have your server autosave - basically you need to use 3 things --- DOS batch script, Telnet working, and Plink as described in the link above.

    You don't need to have a Plink session running to execute this.

    Create 2 DOS batch files, How it works is that the echoed output of one batch file --- pipes into the other for Plink to use.

    Here are my working examples.

    The main batch file used to call Plink. Call it what you like.bat

    Code:
    @echo off
    
    echo Executing save world script
    echo.
    echo.
    echo.
    timeout 36000
    
    :Saverepeat
    cls
    
    echo Saving.
    echo.
    echo.
    echo.
    7D2Dswcom|plink.exe (your server IP on your LAN without the parenthesis) -raw -P 8081
    
    timeout 1800
    
    echo.
    echo.
    echo.
    echo Looping saveworld script
    
    timeout 5
    
    goto Saverepeat
    
    exit

    7D2Dswcom.bat --- used to pipe the echo results into Plink above. Call it what you like of course but this is the example name.

    Code:
    @echo off
    echo (insert telnet password here without the parenthesis)
    
    echo saveworld
    
    echo exit
    That's all there is to it.

    At these settings it saves roughly every 30 minutes.

    You can call this from your Dedicated.bat script if you like to get it going after you bring your server up.
    Last edited by TechieZero; 01-30-2020, 12:56 AM.

    #2
    The saveworld command doesn't really do anything anymore. All the files are being saved to constantly as the client is working. It's not like this creates an extra copy that you could use as a backup either.

    No offense intended, but this won't have any positive affects. It's just going to poll system resources to run a needless command.

    Comment


      #3
      Originally posted by SylenThunder View Post
      The saveworld command doesn't really do anything anymore. All the files are being saved to constantly as the client is working. It's not like this creates an extra copy that you could use as a backup either.

      No offense intended, but this won't have any positive affects. It's just going to poll system resources to run a needless command.
      I found that when running a Dedi server --- this is invaluable. Your server for a variety of reasons can go down without a proper shutdown.

      Comment

      Working...
      X