r/starbound•
joeka

Slim dedicated server using rsync (380MB)

I have seen several posts suggesting copying the linux64 and assets folders to a server, to get a dedicated server (without steamcmd), but this would be quite big for just a server.

There are many files that are not necessary, like the client binary (313MB) and the music/sound assets (more than 622MB). You can't exclude the graphics though, because they are loaded even on the server.

So here is the script I use to sync the server files via ssh: (what else could be excluded?)

#!/bin/bash
    
starbounddir=~/.local/share/Steam/SteamApps/common/Starbound
sshport=22
sshuser=starbound
sshhost=localhost
targetdir=/home/starbound/

rsync -avz --no-links --progress -e "ssh -p $sshport" \
	--exclude "assets/music" \
	--exclude "assets/sfx" \
	--exclude "*.ogg" \
	--exclude "*.wav" \
	--exclude Starbound.app \
	--exclude linux32 \
	--exclude win32 \
	--exclude linux64/launch_starbound.sh \
	--exclude linux64/starbound \
	--exclude linux64/universe \
	--exclude linux64/player \
	--exclude linux64/starbound.log \
	--exclude linux64/starbound.config \
	--exclude linux64/starbound_server.log \
	"$starbounddir" $sshuser@$sshhost:"$targetdir"

--no-links is in there, because I needed to symlink some libs on my local machine (arch) and this is not necessary on my server.

Posted Dec 6, 2013, 3:12 PM UTC · edited

21
adamundercover•

Nice! Can't wait to try this out

1