PC Feature for Save Sync is required!!!

For single player saves, not dedicated servers saves i wrote this batch file

Winrar is needed (it’s a free prog that compacts files)  https://www.win-rar.com/start.html?&L=0

Copy this into a text editor and save as “SP saves.bat” the "bat" part is important, dont save as a txt file, save as bat, so windows "knows" its a batch file, basically means its a "program to run"

@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=%YYYY%%MM%%DD%" & set "timestamp=%HH%%Min%%Sec%"
For /f "tokens=2-4 delims=/ " %%a in ("%DATE%") do (
    SET YYYY=%%c
    SET MM=%%a
    SET DD=%%b
)
For /f "tokens=1-4 delims=/:." %%a in ("%TIME%") do (
    SET HH24=%%a
    SET MI=%%b
    SET SS=%%c
    SET FF=%%d
)
SET savename="player save files"-%datestamp%-%HH24%%MI%%SS%
SET xfolder=%appdata%\7DaysToDie\saves
"C:\Program Files\WinRAR\rar.exe" a %savename% %xfolder% -inul


Run it before you start your game, and after if needed

It creates a backup file of single player saves, with date and time in the filename

It will save a backup in the same folder where you put the bat file

 
Last edited by a moderator:
Back
Top