Absurd Minds
http://forums.absurdminds.net/

Using rsync for GO server installation
http://forums.absurdminds.net/viewtopic.php?f=18&t=1566
Page 1 of 1

Author:  Amaroq [ 04 Oct 2012 06:29 ]
Post subject:  Using rsync for GO server installation

GO servers aren't set up with any sort of automatic updating like every other valve game in existence, so it's really cumbersome to have multiple servers if an update is ever released. I've heard tell that you can set up a master install and just update that one, and then use rsync to copy the new files over to all of the other servers. How could I set something like that up?

Author:  jero [ 04 Oct 2012 14:18 ]
Post subject:  Re: Using rsync for GO server installation

In its most basic form
Code:
rsync -avz /updated/server/ /other/server/

That would carry over maps and specific config files which may cause a problem. For files and directories that you don't want to "sync" we would have to make a list in a file... we'll call exclude.txt.
Code:
rsync -avz --exclude-from 'exclude.txt' /updated/server/ /other/server/
and inside that file would be a simple list like below(I always suggest using absolute paths)
Code:
/updated/server/maps
/updated/server/config.cfg
/updated/server/mods

Author:  serialp0rt [ 04 Oct 2012 15:14 ]
Post subject:  Re: Using rsync for GO server installation

man this would be fucking useful

Author:  Amaroq [ 04 Oct 2012 15:49 ]
Post subject:  Re: Using rsync for GO server installation

Quote:
In its most basic form
Code:
rsync -avz /updated/server/ /other/server/

That would carry over maps and specific config files which may cause a problem. For files and directories that you don't want to "sync" we would have to make a list in a file... we'll call exclude.txt.
Code:
rsync -avz --exclude-from 'exclude.txt' /updated/server/ /other/server/
and inside that file would be a simple list like below(I always suggest using absolute paths)
Code:
/updated/server/maps
/updated/server/config.cfg
/updated/server/mods
When it updates, it only does certain files. Is it possible to do the rsync so where it only copies over files that have been updated in the past, say, 24 hours?

Author:  jero [ 04 Oct 2012 18:25 ]
Post subject:  Re: Using rsync for GO server installation

Rsync only copies files that have been changed since the last time it runs. So if only one file changed, rsync would only copy that file. I use it for my backups at work.

Author:  Amaroq [ 04 Oct 2012 19:04 ]
Post subject:  Re: Using rsync for GO server installation

EDIT: Oh, nevermind, you explained it.

Author:  Amaroq [ 12 Oct 2012 06:44 ]
Post subject:  Re: Using rsync for GO server installation

Well, it took three hours, and didn't work at all.

I think I'll just go back to manually updating every server individually ever time.

Author:  serialp0rt [ 12 Oct 2012 18:41 ]
Post subject:  Re: Using rsync for GO server installation

yeah rsync takes more than 4 or 5 times as long as doing them each individually.

Page 1 of 1 All times are UTC-04:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/