This commit is contained in:
Florian Späth
2025-01-31 01:44:28 +01:00
commit f2f011343f
9 changed files with 105 additions and 0 deletions

9
R710/backup.ps1 Normal file
View File

@@ -0,0 +1,9 @@
$source="E:\Server-Files-1.1.0\world"
$local="G:\ATM8-world-backups"
$NAS="Y:\Gameserver-Sicherung\ATM8-world-backups"
if (Test-Path -Path $source) {
Remove-Item -Recurse -Force $local
Copy-Item -Path "$source*" -Destination $local -PassThru -recurse
Remove-Item -Recurse -Force $NAS
Copy-Item -Path "$source*" -Destination $NAS -PassThru -recurse
}

22
R710/manage-r710.ps1 Normal file
View File

@@ -0,0 +1,22 @@
# Autor: Florian Späth
# v1.2.0
$racadmpath = "D:\Dell\rac5"
$whattodo = Read-Host "Was moechtest du tun? 1 = Server starten, 2 = Server stoppen, 3 = Systemzustand"
if ($whattodo -eq "1") {
.\racadm.exe -r spaeth-bayern.de:5005 -u root -p "kt}y/6ZHF~.@" serveraction powerup
Write-Host "Server startet! Dauer: ca. 5 min. Minecraft Server startet automatisch mit."
}elseif($whattodo -eq "2"){
#$confirmation = Read-Host "Ist der Minecraft server ausgeschaltet? j/n"
#if ($confirmation -eq "j") {
#.\racadm.exe -r spaeth-bayern.de:5005 -u root -p "kt}y/6ZHF~.@" serveraction powerdown
#Write-Host "Server stoppt!"
#}else{
Write-Host "Schalte den Minecraft Server aus: Druecke T, schreibe /stop in die Kommandozeile."
#}
}elseif($whattodo -eq "3"){
Write-host "Systeminfo:"
.\racadm.exe -r spaeth-bayern.de:5005 -u root -p "kt}y/6ZHF~.@" getsysinfo
}
Write-host "Console schliesst sich in 15 sec. "
start-sleep 15

5
R710/readme.md Normal file
View File

@@ -0,0 +1,5 @@
# Manage R710:
Greift auf die iDrac oberfläche zu. 3 Optionen zur auswahl. 1. Server Starten, 2. Server ausschalten, 3. Serverinfo
# Backup:
Automatisches backup auf NAS aller aktiven Filesysteme