<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi all<div><br></div><div>I am trying to use rsync as part of a backup solution for a machine with multiple users. The intention is to run rsyncd on a different server with typically different user IDs. I also intend to run rsync from the client as root and essentially back up the following:</div><div><br></div><div>/etc/passwd</div><div>/etc/shadow</div><div>/etc/group</div><div>/home</div><div><br></div><div>In the event of a disaster we would reprovision the machine then restore the user accounts etc with a single run of rsync by root. Ideally all the home directories and their contents would be restored back to their original UIDs and GIDs which would be fine because we would have provided the mapping by restoring the passwd and group files too.</div><div><br></div><div>I am in early prototyping phase now and have the following rsyncd.conf file:</div><div><div>max connections = 4</div><div><br></div><div>[school10000]</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;path = /backup/school/./10000</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;read only = false</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;use chroot = true</div><div><br></div><div>I ran the following command (on the same machine as the server):</div><div>rsync -az ./.viminfo fw.school10000::school10000</div><div><br></div><div>The result on the server is:</div><div><div>root@fw.school10000:/etc# ls -nal /backup/school/10000/</div><div>total 12</div><div>drwxrwxrwx 2 &nbsp; &nbsp; 0 &nbsp; &nbsp; 0 4096 2011-02-14 14:08 .</div><div>drwxr-xr-x 3 &nbsp; &nbsp; 0 &nbsp; &nbsp; 0 4096 2011-02-14 11:30 ..</div><div>-rw------- 1 65534 65534 &nbsp;590 2011-02-14 10:52 .viminfo</div></div><div><br></div><div>The file has been saved as nobody:nogroup.</div><div><br></div><div>There appears to be a related bug (<a href="https://bugzilla.samba.org/show_bug.cgi?id=7773">https://bugzilla.samba.org/show_bug.cgi?id=7773</a>) which has been marked as a duplicate of&nbsp;<a href="https://bugzilla.samba.org/show_bug.cgi?id=3829">https://bugzilla.samba.org/show_bug.cgi?id=3829</a>.</div><div><br></div><div>Could someone please confirm whether what I am trying to do is possible or whether I am bumping into the bug as noted above.</div><div><br></div><div>If there is a solution I would be keen to know. If it is the bug it would be great to know if it is being worked on?</div><div><br></div><div>Thanks</div><div><br></div><div>
<div>Robert Crida</div><div><a href="mailto:rcrida@clue.co.za">rcrida@clue.co.za</a></div><div><br></div><br class="Apple-interchange-newline">
</div>
<br></div></body></html>