Absurd Minds

More than 100 years without a motto.
It is currently 28 Mar 2024 06:26

All times are UTC-04:00




Post new topic  Reply to topic  [ 8 posts ] 
Author Message
PostPosted: 04 Oct 2012 06:29 
Offline
User avatar

Joined: 25 Mar 2010 19:07
Posts: 8392
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?

_________________
Server list
Donate


Top
   
PostPosted: 04 Oct 2012 14:18 
Offline
User avatar

Joined: 25 Feb 2012 19:18
Posts: 908
Location: Ontario, Canada
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

_________________
Image


Top
   
PostPosted: 04 Oct 2012 15:14 
Offline
User avatar

Joined: 25 Mar 2010 19:21
Posts: 5029
man this would be fucking useful

_________________
I'm so official, like a dealer with a pistol or referee with a whistle.


Top
   
PostPosted: 04 Oct 2012 15:49 
Offline
User avatar

Joined: 25 Mar 2010 19:07
Posts: 8392
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?

_________________
Server list
Donate


Top
   
PostPosted: 04 Oct 2012 18:25 
Offline
User avatar

Joined: 25 Feb 2012 19:18
Posts: 908
Location: Ontario, Canada
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.

_________________
Image


Top
   
PostPosted: 04 Oct 2012 19:04 
Offline
User avatar

Joined: 25 Mar 2010 19:07
Posts: 8392
EDIT: Oh, nevermind, you explained it.

_________________
Server list
Donate


Top
   
PostPosted: 12 Oct 2012 06:44 
Offline
User avatar

Joined: 25 Mar 2010 19:07
Posts: 8392
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.

_________________
Server list
Donate


Top
   
PostPosted: 12 Oct 2012 18:41 
Offline
User avatar

Joined: 25 Mar 2010 19:21
Posts: 5029
yeah rsync takes more than 4 or 5 times as long as doing them each individually.

_________________
I'm so official, like a dealer with a pistol or referee with a whistle.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 8 posts ] 

All times are UTC-04:00


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Limited