Is there some sort of advantage of symlinks over rsync or is it just your personal preference?
On Sat, Oct 6, 2012 at 10:06 AM, Andre Müller <[email protected]> wrote: > But you are working under Linux. > It's not so complicated, test it. > > 1. Updating the master in: /home/gamer/go/master/ > 2. Create a template with real files you whish to change them later > (server.cfg, gamemodes_server.txt ...), same structure: > /home/gamer/go/template/ > 3. Create the customer serverdirectory: mkdir /home/gamer/go/customer1/ > 4. Copy the template to the costomer: cp -r /home/gamer/go/template/* > /home/gamer/go/customer1/ > 5. Last step, copy the serverfiles as symlinks: cp -sr > /home/gamer/go/master/* /home/gamer/go/customer1/ > > After an update, you have to repeat the last step. To supress the > errors, you can use the redirection to stderr: cp -sr > /home/gamer/go/master/* /home/gamer/go/customer1/ 2>/dev/null > This command doesn't overwrite files. > > Sometimes after x-Updates some serverfiles got deleted by valve. So > you can seek for broken smylinks with find and delete them. (find -L > -type -l /home/gamer/go/ -print0 | xargs -0 rm) > > If you whish to backup a server, it's not helpful to have the original > serverfiles in your archive. First you can delete all symlinks with > find and after this backup the server. > > 2012/10/6 Absurd Minds <[email protected]>: >> Because I'm not a linux user and I have no idea how to use symlinks to >> run a bunch of servers, but I had a general of how I could use rsync >> to do it. >> >> On Sat, Oct 6, 2012 at 9:46 AM, Andre Müller <[email protected]> wrote: >>> Does your filesystem not support symlinks or why are you using this >>> slow procedure? >>> I think using rsync over more server get more complex, Why you don't >>> try to using Symlinks? >>> >>> 2012/10/6 Absurd Minds <[email protected]>: >>>> Oh ok. Thank you I will try that >>>> >>>> On Oct 6, 2012 2:07 AM, "Sam Klinger" <[email protected]> wrote: >>>>> >>>>> Correct the correction: >>>>> >>>>> - /home/gamer/go/master/csgo/GameModes_Server.txt >>>>> - /home/gamer/go/master/csgo/mapcycle.txt >>>>> - /home/gamer/go/master/csgo/cfg/** (I assume you want everything >>>>> under this directory not copied as well). >>>>> - /home/gamer/go/master/csgo/motd.txt >>>>> >>>>> On Sat, Oct 6, 2012 at 1:06 AM, Sam Klinger <[email protected]> wrote: >>>>> > Your exclude file format is wrong, as well as you are probably >>>>> > excluding the wrong path. Looks like your source path is >>>>> > /home/gamer/go/master/ but you are excluding folders in >>>>> > /home/gamer/go/server1/ the path should be /home/gamer/go/master/ >>>>> > >>>>> > Your include/exclude files should have a minus sign in front of the >>>>> > things you want excluded. >>>>> > >>>>> > So in your example (corrected): >>>>> > >>>>> > - /home/gamer/go/server1/csgo/GameModes_Server.txt >>>>> > - /home/gamer/go/server1/csgo/mapcycle.txt >>>>> > - /home/gamer/go/server1/csgo/cfg/** (I assume you want everything >>>>> > under this directory not copied as well). >>>>> > - /home/gamer/go/server1/csgo/motd.txt >>>>> > >>>>> > That should work. Really you should just throw everything into one >>>>> > file and use the switch --filter ". /some/file" and use the filter >>>>> > rules. >>>>> > >>>>> > I also suggest you read this document thoroughly, it will tell you >>>>> > everything you want to know about rysnc. >>>>> > http://www.samba.org/ftp/rsync/rsync.html >>>>> > >>>>> > >>>>> > On Fri, Oct 5, 2012 at 11:01 PM, Absurd Minds <[email protected]> >>>>> > wrote: >>>>> >> Can somebody show me the proper way to set up rsync? This is what I've >>>>> >> got, but it didn't exclude the proper files, so clearly I've got some >>>>> >> sort of syntax error. >>>>> >> >>>>> >> update.sh: >>>>> >> >>>>> >> #!/bin/bash >>>>> >> >>>>> >> for name in server server2 server3 large large2 large3 nobots arms >>>>> >> arms2 demo demo2 >>>>> >> do >>>>> >> echo 'rsync -avz /home/gamer/go/master/ >>>>> >> /home/gamer/go/'$name'/ >>>>> >> --exclude-from=/home/gamer/go/master/exclude.txt' >>>>> >> rsync -avz /home/gamer/go/master/ /home/gamer/go/'$name'/ >>>>> >> --exclude-from=/home/gamer/go/master/exclude.txt >>>>> >> done >>>>> >> >>>>> >> And a portion of exclude.txt >>>>> >> >>>>> >> /home/gamer/go/server1/csgo/GameModes_Server.txt >>>>> >> /home/gamer/go/server1/csgo/mapcycle.txt >>>>> >> /home/gamer/go/server1/csgo/cfg >>>>> >> /home/gamer/go/server1/csgo/motd.txt >>>>> >> >>>>> >> _______________________________________________ >>>>> >> Csgo_servers mailing list >>>>> >> [email protected] >>>>> >> https://list.valvesoftware.com/cgi-bin/mailman/listinfo/csgo_servers >>>>> >>>>> _______________________________________________ >>>>> Csgo_servers mailing list >>>>> [email protected] >>>>> https://list.valvesoftware.com/cgi-bin/mailman/listinfo/csgo_servers >>>> >>>> >>>> _______________________________________________ >>>> Csgo_servers mailing list >>>> [email protected] >>>> https://list.valvesoftware.com/cgi-bin/mailman/listinfo/csgo_servers >>> >>> _______________________________________________ >>> Csgo_servers mailing list >>> [email protected] >>> https://list.valvesoftware.com/cgi-bin/mailman/listinfo/csgo_servers >> >> _______________________________________________ >> Csgo_servers mailing list >> [email protected] >> https://list.valvesoftware.com/cgi-bin/mailman/listinfo/csgo_servers > > _______________________________________________ > Csgo_servers mailing list > [email protected] > https://list.valvesoftware.com/cgi-bin/mailman/listinfo/csgo_servers _______________________________________________ Csgo_servers mailing list [email protected] https://list.valvesoftware.com/cgi-bin/mailman/listinfo/csgo_servers
