|
Re: Help with rsync: msg#00214misc.nslu2.linux
I currently do this to backup a remote server. Here is the command I use: /share/hdd/conf/opt/bin/rsync -urpLoge ssh remote.host.com:/. /share/hdd/data/mirror/. To do this via a cron job you must setup cronlogger. See: http://www.nslu2-linux.org/wiki/HowTo/EnableLoggingInCron Jeff On Tue, 08 Mar 2005 17:13:10 -0800, Josh Parsons <jbparsons-ZnEz5tD0I2KVc3sceRu5cw@xxxxxxxxxxxxxxxx> wrote: > > On Tue, 2005-03-08 at 21:55 +0000, mlsmith59 wrote: > > > Rsync workes but I can't get it to preserve > > owner/group. The receiving machine always ends up with > > nobody/nobody. > > As you may know, rsync can run in two modes: as a server on a dedicated > TCP port (which is what you are doing), or by using some rsh/ssh-like > remote shell protocol as a transport layer. To get the behavior you > want, you need to be using ssh (or rsh, but that is a very bad idea) as > the transport for rsync. > > An rsync server will always create files with the uid it is running as, > or if it is root, the uid set in rsyncd.conf (which defaults to nobody). > The reason for this is obvious when you think about it: anyone can > connect to an rsync server and ask to upload a file owned by root, or > even ask for it to be owned by root, setuid and world-executable. If > this was allowed, it would subvert the normal permissions mechanism on > the system running rsync. > > Even allowing write access at all via an rsync server is unsafe, as it > exposes your machine to DoS attacks aimed at consuming all disk space > available to the rsync server. > > In short, disable your rsync server and set up openssh instead. > > -- > Josh Parsons > Philosophy Department > 1238 Social Sciences and Humanities Bldg. > University of California > Davis, CA 95616-8673 > USA > > Please avoid sending me Word or PowerPoint attachments. > See http://www.fsf.org/philosophy/no-word-attachments.html > > > [ Moderator Note: All static information is slowly moving to the Wiki at > http://www.nslu2-linux.org ] > Yahoo! Groups Links > > > > > [ Moderator Note: All static information is slowly moving to the Wiki at http://www.nslu2-linux.org ] |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Help with rsync: 00214, mlsmith59 |
|---|---|
| Next by Date: | Re: Help with rsync: 00214, mlsmith59 |
| Previous by Thread: | Re: Help with rsynci: 00214, mlsmith59 |
| Next by Thread: | Query on OpenSlug beta issues: 00214, n1xnx |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |