Automating Rust Server Wipes: Procgen Seed Rotation, Blueprint Wipes & Discord Webhooks
Schedule automated bi-weekly map and blueprint wipes in Rust. Shell scripts for generating fresh seeds, wiping .map files, and posting changelogs to Discord.
M
By Marcus Vance, Principal Sysadmin
Zero-Click Wipe Scheduling
Competitive Rust servers thrive on predictable wipe schedules. Manually wiping servers at 2 PM on Thursdays invites administrative delays. A bash script triggered via cron can execute the entire wipe routine in 45 seconds.
1. The Automated Rust Wipe Script
#!/bin/bash
NEW_SEED=$((100000 + RANDOM % 899999))
SERVER_DIR="/home/rustserver/server/rust/server/my_server_identity"
systemctl stop rust.service
rm -f "$SERVER_DIR"/*.map "$SERVER_DIR"/*.sav
sed -i "s/-server.seed [0-9]*/-server.seed $NEW_SEED/" /home/rustserver/start_rust.sh
systemctl start rust.service
# Post announcement to Discord
curl -H "Content-Type: application/json" -X POST -d "{\"content\":\"Server has wiped! New Seed: $NEW_SEED\"}" "$DISCORD_WEBHOOK_URL"