Compiling error with SCO OpenServer(TM) Release 5

2004-10-28 Thread YongHo Gil




Hi,

I 've try to install rsync under SCO OpenServer.


I had an error : /rsync/rsync-2.6.3 : 
# configure --with-rsh=rcmd
.
.
.
.
#
# make 
  cc -I. -I. -g -DHAVE_CONFIG_H -I./popt -c rsync.c -o rsync.o
  
"./rsync.h", line 360: warning: ANSI C behavior differs; not modifying
typedef with "unsigned"
  
"./rsync.h", line 360: warning: syntax requires ";" after last
struct/union member
  
"./rsync.h", line 360: error: Syntax error before or at: inode
  
"./rsync.h", line 361: warning: ANSI C behavior differs; not modifying
typedef with "unsigned"
  
"./rsync.h", line 361: error: cannot recover from previous errors
  
*** Error code 1 (bu21)
  


Any comments would be highly appreciated.

Thanks,
Yong


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

Re: 8 bit filenames?

2004-10-28 Thread Paul Slootman
On Wed 27 Oct 2004, Dan Stromberg wrote:
 
 Are there any characters that can occur in filenames that will choke
 rsync?
 
 We're transferring lots of data, and some of our users' filenames appear
 to have their high bit set.
 
 I don't expect it to cope with filenames having a \0 or / in them
 (sometimes created over appletalk shares - strange but true), but it'd
 be great to know if rsync can handle all other characters, or only
 normal characters.

rsync doesn't do anything with the individual bytes in a filename; to
rsync it's just a string of characters.  That said, a null byte will of
course serve to terminate the string there... and a slash will be
interpreted as a directory separator (although I'm not familiar enough
with the rsync internals to know whether rsync explicitly checks for
'/').

I've transferred filenames with all sorts of wierd characters with rsync
without any problem.

One potential problem is if the character set on the two systems is
different. Because rsync does nothing with the bytes, a system that uses
e.g. UTF8 and a system that uses iso8859-1 will show the same string of
bytes differently if there are any 8-bit chars used...


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


Remote file deletion

2004-10-28 Thread Dale Amon
I've a particular situation in which I need to sometimes
delete one or two files from a remote site. I haven't
figured out a way to do it with rsync yet... I've considered
playing games with --exclude and --delete but I'm a bit
nervous of the chances of mayhem by a simple error.

Situation is a remote repository to which files are 
added on occasion; there is no local copy. On occasion
it is necessary to delete one or two files by name.
It certainly would be nice to be able to do this via
rsync. I've looked at the shell command hack but don't
see a way to get a remote 'rm /mydir/foo' to execute
that way.

Please respond directly as I am not on the list,
although I will try to check in through the samba.org
web pages.

-- 
--
   Dale Amon [EMAIL PROTECTED]+44-7802-188325
   International linux systems consultancy
 Hardware  software system design, security
and networking, systems programming and Admin
  Have Laptop, Will Travel
--


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

Rsyncing files

2004-10-28 Thread Ryan Holowaychuk



I want to to an 
Rsync with 4 servers.I want to sync the passwd and shadow. But I 
only want to do certain records to sync. basically all the user 
info. Is there away that this can be done? or do I have to do the whole 
file?

thank 
you

Ryan 
Holowaychuk
Owner - HGIlive
www.hgilive.com
250-371-1459
Secretary - 
Rotary Club of Kamloops Aurora
Director - 
British Columbia Printing Imaging Association (interior Chair)



--
Outgoing mail is certified Virus Free.
Checked by AVG Anti-Virus (http://www.grisoft.com).
Version: 7.0.280 / Virus Database: 264.12.4 - Release Date: 10/27/2004
 
-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Re: Rsyncing files

2004-10-28 Thread Paul Slootman
On Thu 28 Oct 2004, Ryan Holowaychuk wrote:

 I want to to an Rsync with 4 servers. I want to sync the passwd and shadow.
 But I only want to do certain records to sync.  basically all the user info.
 Is there away that this can be done? or do I have to do the whole file?

Rsync handles data per file, it has no concept of records or such.
I suggest you make some other way of generating the passwd and shadow
files from different input files (system entries and user entries), so
that you can transfer the files with just the user records.


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


Re: Remote file deletion

2004-10-28 Thread Wayne Davison
On Thu, Oct 28, 2004 at 01:15:18PM +0100, Dale Amon wrote:
 I've looked at the shell command hack but don't see a way to get a
 remote 'rm /mydir/foo' to execute that way.

If you're using ssh or rsh as your rsync connection, you can simply do
this:

ssh host rm /mydir/foo /mydir/bar /yourdir/baz

or even this:

ssh host xargs rm -rf /tmp/local-list-of-files-and-dirs

If you're trying to do this by talking to a daemon or a restricted
rsync-only ssh setup, you should be able to transfer an empty directory
with some simple excludes to do what you want, but it's easiest to copy
into each directory separately.  For instance, if you want to delete
mydir/foo, mydir/bar, and yourdir/baz on host host in module mod,
you could do this:

mkdir emptydir
rsync -av --include=foo --include=bar --exclude='*' --delete emptydir/ host::mod/mydir
rsync -av --include=baz --exclude='*' --delete emptydir/ host::mod/yourdir
rmdir emptydir

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