D Andrew Reynhout | 1 Sep 2004 06:38
Favicon
Gravatar

Re: rsync, backup, Macintosh files


If your files are on the Linux fileserver and accessed by the OSX
clients via Netatalk, then resource forks and Finder metadata are
already being stored in a format that rsync understands.  Just run
rsync as usual.

If you were running HFS+ on the Linux box (hey, why not?), *then*
you'd need to do something special.  With ReiserFS or any of the
other common Linux filesystems, you'll have no problem.

Take a look on your fileserver.  For fonts, etc, you should find
the data fork in "Fontname", and the resource fork and metaddata
in "._Fontname".  Both files will get backed up by rsync without
problem.  If you need to do a restoration, the easiest thing to
do is restore to the fileserver, and let Netatalk deal with the
format (re-)conversion for you.

If you restore to the OSX box, you'll need to rejoin the forks,
which is a little trickier.  Apple distributes a utility called
FixupResourceForks, but it only implements part of the format
specification (the part used by SplitForks), so it might have
trouble with Netatalk files.

Good luck,
Andrew

On Tue, Aug 31, 2004 at 10:36:18AM +0200, reg <at> starring.se wrote:
> Our file server is running Debian Stable. We use Samba for our Windows 
> users and Netatalk (AFP) for our OS X clients. The filesystem used on 
> the server is ReiserFS if that is of any intress. Since we keep a lot 
(Continue reading)

neo | 1 Sep 2004 07:18
Picon
Favicon

Problems of preserving file owership and uid&gid options in rsyncd.conf

Hi,
 
I am trying to transfer some files to a remote rsync server. I have to preserve the ownership of these files in the remote server for future possibility of copying them back.
 
The command I am using is:
rsync -Cav /var/log/mp3log server2::var/log/mp3log
 
I have tried to add -o and -g options but still can't reach my purpose. I also remember to add a same user name to the remote rsync server. So what's the problem of my command?
 
Another question is: if I don't specify the root uid and gid in rsync.conf, it seems the rsync on the remote server doesn't has enough privilege to create folds, because it is using the uid 99 which is nobody. However, I can't find these same options as mine in the example script files. So what is the proper way to set the uid and gid options?.
 
Any suggestion is appreciated. Thanks!
 
my rsyncd.conf:
uid = root
gid = root
[var]
  path = /var
  comment = /var
  read only = no
  list = yes
 
Dong
--

-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Tim Conway | 1 Sep 2004 20:29
Picon
Favicon

Re: Problems of preserving file owership and uid&gid options in rsyncd.conf

move your uid and gid into the module.  They are not valid as global 
options.I hope there's something about auth users and a secrets file 
somewhere in there as well, as wide-open root to your /var is ill-advised.

Ding--

Tim Conway
Unix System Administration
Contractor - IBM Global Services
desk:3032734776
conway <at> us.ibm.com

 
I am trying to transfer some files to a remote rsync server. I have to 
preserve the ownership of these files in the remote server for future 
possibility of copying them back.

The command I am using is:
rsync -Cav /var/log/mp3log server2::var/log/mp3log

I have tried to add -o and -g options but still can't reach my purpose. I 
also remember to add a same user name to the remote rsync server. So 
what's the problem of my command? 

Another question is: if I don't specify the root uid and gid in 
rsync.conf, it seems the rsync on the remote server doesn't has enough 
privilege to create folds, because it is using the uid 99 which is nobody. 
However, I can't find these same options as mine in the example script 
files. So what is the proper way to set the uid and gid options?. 

Any suggestion is appreciated. Thanks!

my rsyncd.conf:
uid = root
gid = root
[var]
  path = /var
  comment = /var
  read only = no
  list = yes

Dong-- 
To unsubscribe or change options: 
http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
--

-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Tim Conway | 1 Sep 2004 20:41
Picon
Favicon

Re: rsync crashing Redhat RHEL3.0 server

Congratulations, you've found a weakness in the ethernet driver.  Check 
up2date, as there may be a kernel update for that.  You could also maybe 
plug in a different type of ethernet card.  The kernel is explaining that 
there's a problem at that level, and your rsync log shows what happens 
when that problem comes up. 
Don't worry about adding memory (or swap), as you're likely to be using 
only a few hundred MB when this happens.

Tim Conway
Unix System Administration
Contractor - IBM Global Services
desk:3032734776
conway <at> us.ibm.com

We are using rsync to mirror around 10 of our websites from dedicated 
server A to dedicated server B runing RHEL 3.0 and rysnc v2.6.3pre1 in a 
daemon mode. I am using the following crontab script command on dedicated 
server A:

/usr/local/bin/rsync -avz -e "ssh -i 
/home/users/admin/publicKey-for-server-B" /home/serverA/site3 
serverB::home/mirror

Dedicated server B (where the mirroring of websites from server A is done) 

 is sometimes crashing with the following error message from the linux 
kernel:

Aug 29 22:47:02 ns2 kernel: eth0: Memory squeeze,deferring packet.
Aug 29 22:47:23 ns2 kernel: eth0: NULL pointer encountered in Rx ring, 
skipping

The following is the error message from rsync log in dedicated server B:

2004/08/29 22:45:02 [18367] rsync allowed access on module home from 
ns.serverA.co.uk
2004/08/29 22:45:02 [18367] rsync to home/mirror from  ns.serverA.co.uk
2004/08/29 22:45:51 [18367] site3/logs/
2004/08/30 00:58:15 [18367] rsync: connection unexpectedly closed (355347 
bytes received so far) [receiver]
2004/08/30 00:58:15 [18367] rsync: writefd_unbuffered failed to write 84 
bytes: phase "unknown" [generator]: Broken pipe (32)
2004/08/30 00:58:15 [18367] rsync error: error in rsync protocol data 
stream (code 12) at io.c(909)

I've 10 separate crontab rsync scripts for mirroring the 10 websites. I've 

allowed enough time intervalls so that the each crontab rsync process 
finishes before the next one starts. Occasionally, however (about once a 
week) rsync crashes dedicated server B during any one of these 10 crontab 
processes.

I would be very grateful for your help.

regards,
Daniel. 

Daniel Berhane
bmj.com web administrator
The BMJ Publishing Group Limited
BMA House,
Tavistock Square,
London WC1H 9JR

http://bmj.com 
Tel: +44 (0)20 7383 6362 
Fax: +44 (0)20 7383 6997
-- 
To unsubscribe or change options: 
http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

--

-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

SPJ.Schembri | 2 Sep 2004 08:58
Favicon

--partiall-dir not behaving like it ought too

Hi,

I have awaited the new release inorder to use the  -"-partial-dir" option.
But after testing it seems that it does not behave like it says on the tin.

It will correctly move and rename the interrupted file to the declared
directory, but it will not
attempt to use it when the client attempts to rsync the file again.

I have a Solaris 8 box running as a server (Matthew), and another Solaris 8
box (Danielle) running as the client.
Both boxes have 2.6.3pre1 and the command issued was =>

rsync -av --progress --partial-dir=./tmp --bwlimit=100 /tcwork/bigfile.tar
root <at> matthew::root

the reason for the --bwlimit=100 is so that the process can be monitored.

Am I issuing the wrong command ?

Replacing "--partial-dir=./tmp" with "--partial" works perfectly.

Can someone please advise.

Thanking you in anticipation

Stephen

--

-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Dan Bolser | 2 Sep 2004 10:51
Picon
Picon

test


hello?

--

-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Dan Bolser | 2 Sep 2004 11:10
Picon
Picon

Compile error on cygwin


Hi, 

I am am new to cygwin, so if this email lacks any glaring detail,
please let me know how I can send it along.

Rsync is the first app I have tried to install on cygwin, I have version
2.5.5 already installed, but I am trying to upgrade to remove the 'rsync
hangs with cygwin' problem.

I am trying to install verison 2.6.2 from rsync-2.6.2.tar.gz. 

Configure runs fine, but make gives me the following output...

$ make
gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W  -c rsync.c -o rsync.o
In file included from rsync.c:23:
rsync.h:276:17: operator '==' has no left operand
rsync.h:278:20: operator '==' has no left operand
rsync.h:280:21: operator '==' has no left operand
rsync.h:303:20: operator '==' has no left operand
rsync.h:305:19: operator '==' has no left operand
rsync.h:315:18: operator '==' has no left operand
rsync.h:317:19: operator '==' has no left operand
make: *** [rsync.o] Error 1

I tried to build version 2.4.0 as per the exelent instructions provided
by Paul Thompson at

http://www.cygwin.com/ml/cygwin/2003-10/msg00129.html

And it does compile, creating an rsync.exe

However, this exe is mostly unresponsive, and when it does do something it
does a core dump. i.e. 

$ ./rsync --verions
rsync: unknown option -- verions
Segmentation fault (core dumped)

$ ./rsync --version

$ ./rsync --help
Segmentation fault (core dumped)

The above error (about ==) does not appear in google, so any help you
could offer a novice would be greatly appreciated.

$ uname -a
CYGWIN_NT-5.1 GENUS 1.3.15(0.63/3/2) 2002-11-06 22:41 i686 unknown

Thanks,
Dan.

--

-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Greger Cronquist | 2 Sep 2004 11:29
Picon
Favicon

Re: Compile error on cygwin


Dan Bolser wrote:

>$ uname -a
>CYGWIN_NT-5.1 GENUS 1.3.15(0.63/3/2) 2002-11-06 22:41 i686 unknown
>
>  
>
You are using an *ancient* version of cygwin, do consider to update it (www.cygwin.com/setup.exe) Using
the installer you can also elect to install rsync 2.6.2 directly.

If that's not an option for you, you can still try cwrsync at www.itefix.no, but that also comes with a newer
cygwin DLL and probably causes problems with your old installation.

Regards, Greger

--

-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Dan Bolser | 2 Sep 2004 12:04
Picon
Picon

Re: Compile error on cygwin

On Thu, 2 Sep 2004, Greger Cronquist wrote:

>
>
>Dan Bolser wrote:
>
>>$ uname -a
>>CYGWIN_NT-5.1 GENUS 1.3.15(0.63/3/2) 2002-11-06 22:41 i686 unknown
>>
>>  
>>
>
>You are using an *ancient* version of cygwin, do consider to update it
>(www.cygwin.com/setup.exe) Using the installer you can also elect to
>install rsync 2.6.2 directly.

I never would have known!

Thanks very much!

Dan.

>
>If that's not an option for you, you can still try cwrsync at www.itefix.no, but that also comes with a newer
cygwin DLL and probably causes problems with your old installation.
>
>Regards, Greger
>
>

--

-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Essyug | 2 Sep 2004 16:05
Picon
Favicon

Ownership

Hello,

I'm setting up a Linux backup server for Windows Workstations, using
rsync-2.6.3pre1+acl on the server and cygwin rsync-2.6.2-2 on the
Workstations. At this point, I don't care about perserving the acls ; I
only want to preserve the ownership of the files. My server is running
in daemon mode as root, and winbindd (from samba 3.0.6) is running 
correctly : I can get all the users entries from my W2k PDC with 
"gentent passwd", their uid beeing mapped to the 10000-20000 range. Here 
is my /etc/rsyncd.conf file :

[backup]
path = /backuptest
uid = root
gid = root
read only = false

My test directory on W2k and all its content are owned by 
DOMAIN\testuser, which is a domain administrator.

When I run the following command under cygwin:

rsync -avP testdir $BACKUPserver::backuptest

... the directory is owned by 544:root on the Linux server. Samba shows 
the owner as S-12345-etc.

I've tried --numeric-ids with exactly the same result. This is annoying 
since a would like to use quota on the backup partition.

Is there any way to work aroubnd this problem ?

--

-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Gmane