I just lost my 140+ day world due to an unexpected power-off of a pc.
As the game is in Alpha, I should have been backing up my saves. My bad. So I made a powershell script that will backup the save game area of 7d2d and then start the launcher. If you want to use it, you'll need to enable powershell scripts in windows
Launch powershell as administrator, then execute this:
Set-ExecutionPolicy RemoteSigned
Then open a file editor like notepad and put this in the file:
----
$gameData = "C:\Users\username\AppData\Roaming\7DaysToDie"
$saveDir = "C:\Users\username\AppData\Roaming\7DaysToDieBackups"
$today = (Get-Date).ToString('yyyy-MM-dd_HHmmss')
$location = New-Item -Path $saveDir -Type Directory -Name $today
Copy-Item -Recurse $gameData -Destination $location
$gameStart = "C:\Program Files (x86)\Steam\steamapps\common\7 Days To Die\7dLauncher.exe"
$gameDir = "C:\Program Files (x86)\Steam\steamapps\common\7 Days To Die"
Start-Process -FilePath $gameStart -WorkingDirectory $gameDir
----
replace 'username' with whatever name you use to log into windows.
Then run the script. (in powershell, .\7d2die.ps1) It will copy the 7DaysToDie folder (mine is about 1 gig), naming it based on the date with minutes and seconds. So watch your hard drive space. 1gig each time can add up.
As the game is in Alpha, I should have been backing up my saves. My bad. So I made a powershell script that will backup the save game area of 7d2d and then start the launcher. If you want to use it, you'll need to enable powershell scripts in windows
Launch powershell as administrator, then execute this:
Set-ExecutionPolicy RemoteSigned
Then open a file editor like notepad and put this in the file:
----
$gameData = "C:\Users\username\AppData\Roaming\7DaysToDie"
$saveDir = "C:\Users\username\AppData\Roaming\7DaysToDieBackups"
$today = (Get-Date).ToString('yyyy-MM-dd_HHmmss')
$location = New-Item -Path $saveDir -Type Directory -Name $today
Copy-Item -Recurse $gameData -Destination $location
$gameStart = "C:\Program Files (x86)\Steam\steamapps\common\7 Days To Die\7dLauncher.exe"
$gameDir = "C:\Program Files (x86)\Steam\steamapps\common\7 Days To Die"
Start-Process -FilePath $gameStart -WorkingDirectory $gameDir
----
replace 'username' with whatever name you use to log into windows.
Then run the script. (in powershell, .\7d2die.ps1) It will copy the 7DaysToDie folder (mine is about 1 gig), naming it based on the date with minutes and seconds. So watch your hard drive space. 1gig each time can add up.
Last edited by a moderator: