项目作者: theotherlars

项目描述 :
Backup your minecraft server with powershell
高级语言: PowerShell
项目地址: git://github.com/theotherlars/minecraftbackup_powershell.git
创建时间: 2020-07-26T20:37:07Z
项目社区:https://github.com/theotherlars/minecraftbackup_powershell

开源协议:The Unlicense

下载


minecraftbackup_powershell

Backup your minecraft server with powershell.
This script archives the Mincraft “world” folder (.zip) and moves it to a backup folder/location.
It also deletes the oldest .zip based on the $daysToKeepBackup variable

Required changes to the script

  • location of the server folder
  • location of the backup folder

Optional changes to the script

  • $daysToKeepBackup, change this variable to how many days you want to keep the backup before the script deletes it.

Schedule for backup

Add this script to the Task Scheduler on your Windows machine that runs either the Minecraft client or server.

Under action when you create the task:

  1. "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -ExecutionPolicy Bypass "minecraftbackup.ps1 file location"