Rsync is my friend
by rullzer on Oct.03, 2006, under Linux, Programming things
Before today i never took a closer look to rsync. I did an easy setup according to a wiki about how to setup my local rsync mirror. But after adding a new HD to my server. I decided it is safest to have a backup of my backup. Seems like overkill but the truth is it isn’t a new hard disk. So you never know what might happen and well i just figured that in that case it would be wise to have 2 copies of my backups.
So i read the man page and i was on my way. And everything worked fine. In the basic settings. No security etc. After having this fixed i do not want my backups to be readable by everyone but i needed rsync to access it. And so on and so forth.
What it basically means that i wanted to separated lists of users. Everyone on my network can use my portage rsync mirror. But not everyone can access my backup. I want my backup rsync to be both protected a username and password and i want rsync to use a different gid. Now I’ll let you in on the secret of rsync. Once you specify something in the main body of the config file. That is used as global. But if you remove it there and add it to each of you rsync dirs config. You can specify it per rsync dir. Isn’t that just great?






