# Xmx and Xms set the maximum and minimum RAM usage, respectively. # They can take any number, followed by an M or a G. # M means Megabyte, G means Gigabyte. # For example, to set the maximum to 3GB: -Xmx3G # To set the minimum to 2.5GB: -Xms2500M
# A good default for a modded server is 4GB. # Uncomment the next line to set it. -Djava.net.preferIPv4Stack=true -XX:ActiveProcessorCount=2 -XX:ParallelGCThreads=2 -Xmx4G -Xms2G
view-distance: 6 Reduces the number of rendered chunks per player. simulation-distance: 6 Limits the number of chunks that are actively simulated. max-players: 4 Sets the maximum number of players allowed on the server. allow-flight: true Enables flight for players using mods in Survival mode. sync-chunk-writes: false Allows asynchronous chunk saving, reducing server load.
# Define parameters $BackupDriveLetter = "E" # Change to your backup drive $VMHost = "localhost" # Change if backing up from a different host $VMNames = @("Bedrock2404_10.10.10.3", "Bedrock2404_10.10.10.4", "Bedrock2404_10.10.10.5", "Java2404_10.10.10.6", "Java2404_10.10.10.7", "Java2404_10.10.10.9", "PaperMC_10.10.10.8" ) # List of VMs to back up
Remove-Item -Path E:\VMBackups -Recurse -Force
# Function to back up VMs function Backup-VMs { param ( [string]$BackupDriveLetter, [string]$VMHost, [string[]]$VMNames )
foreach ($VMName in $VMNames) { # Export the VM Export-VM -Name $VMName -Path "E:\VMBackups\$VMName" } }
# Call the backup function Backup-VMs -BackupDriveLetter E -VMHost $VMHost -VMNames $VMNames