Re: config

2021-06-25 Thread Joe via rsync
Part of the genius of Linux is the concept that each tool should do one
thing well and with pipes it is extremely easy to chain these tools
together in combinations unique to the current requirements of any task.

I can't speak for the rsync developers, but I don't believe they would be
open to adding functionality to their codebase that is already easily
obtained with a few lines of shell scripting. This would also open the
door to many other custom requests that that could tie up the developers
while adding no functionality to rsync itself.

Unless you are in an isolated location, it should be relatively easy to
find a local programmer who can add a few lines of code to your backup
system to give you the desired output. If the system is setup nicely, the
required work might take a few minutes to complete. If it's hard to get to
the output itself before it gets emailed, then it might take a little
longer.

Joe
>
> Am 25.06.2021 um 17:34 schrieb Knight, Dave:
>> The rsync stdout typically lists directories "considered" with a "/"
>> at the end and lists those files that actually get copied/sync'd by
>> name with no "/" at the end.  If I understand your "problem"
>> correctly, you want to see only the copied files.
>>
>> My suggestion: save the report email as a text file (e.g. report.txt)
>> and use the grep command to filter out the lines that end with a "/"
>> (forward slash) character, e.g.:
>>
>>     grep -v '\$'  report.txt
> Exactly that is my problem.I would have to run a routine every day to
> see what is backed up.Wouldn't it be much easier if rsync itself filters
> out the lines that have been backed up?A program with so many options
> could also contain an additional function with which the desired can be
> set.That would be a lot easier than doing it yourself every day.Sorry,
> but I'm not a programmer to do this myself ...
>>
>> The grep command comes standard with all *nix and Linux distros and is
>> incluaded with CygwinX for windows
>>  systems.  See this macworld
>> article 
>> if you are running a mac.
>>
>> I hope this is helpful...
>>
>> Viel Glück!
>>
>> --
>>
>> In your time of need, may your piece be with you!
>>
>> The trouble with many of today's college graduates is not that they're
>> ignorant, it's that they've been taught so much that just isn't so!
>>
>> (with apologies to Ronald Reagan).
>>
>>
>>
>> On Fri, Jun 25, 2021 at 9:49 AM Gerhard Obermayr via rsync
>> mailto:rsync@lists.samba.org>> wrote:
>>
>> Hello everyone,
>>
>> Briefly to my problem - or wish: By lucky coincidence I came into
>> possession of an HP Proliant.
>> My junior installed OpenMediaVault for me.
>> I've been using it as a daily backup for my TeraStation ever since.
>> Rsync is set up for this.
>> Every day I get two emails from this backup, in which the complete
>> directory is listed that is due to be backed up.
>> But that's pretty confusing, because that's currently more than
>> 8000 lines in total.
>> And why? Because, among other things, I back up my directories
>> with the photos from one NAS to another.
>> And that's quite a lot of directories from the last 20 years ...
>> In between, individual files appear in individual directories that
>> have changed and have been saved as a result.
>> Isn't it possible that only those files appear in this mail that
>> were actually backed up because of the change?
>> That would be easier and clearer ...
>> Maybe there is already a solution - an additional option button -
>> *to only display the copied files in the report* ...
>>
>> What can i do? What parameter work right? Is there an option for
>> that?
>>
>> --
>> Liebe Grüße aus Haag - und Xund bleim!
>>
>> Gerhard Obermayr
>>
>> --
>> Please use reply-all for most replies to avoid omitting the
>> mailing list.
>> To unsubscribe or change options:
>> https://lists.samba.org/mailman/listinfo/rsync
>> 
>> Before posting, read:
>> http://www.catb.org/~esr/faqs/smart-questions.html
>> 
>>
>
> --
> Liebe Grüße aus Haag - und Xund bleim!
>
> Gerhard Obermayr
>
> --
> Please use reply-all for most replies to avoid omitting the mailing list.
> To unsubscribe or change options:
> https://lists.samba.org/mailman/listinfo/rsync
> Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
>



-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: config

2021-06-25 Thread Gerhard Obermayr via rsync


Am 25.06.2021 um 17:34 schrieb Knight, Dave:
The rsync stdout typically lists directories "considered" with a "/" 
at the end and lists those files that actually get copied/sync'd by 
name with no "/" at the end.  If I understand your "problem" 
correctly, you want to see only the copied files.


My suggestion: save the report email as a text file (e.g. report.txt) 
and use the grep command to filter out the lines that end with a "/" 
(forward slash) character, e.g.:


    grep -v '\$'  report.txt
Exactly that is my problem.I would have to run a routine every day to 
see what is backed up.Wouldn't it be much easier if rsync itself filters 
out the lines that have been backed up?A program with so many options 
could also contain an additional function with which the desired can be 
set.That would be a lot easier than doing it yourself every day.Sorry, 
but I'm not a programmer to do this myself ...


The grep command comes standard with all *nix and Linux distros and is 
incluaded with CygwinX for windows 
 systems.  See this macworld 
article  
if you are running a mac.


I hope this is helpful...

Viel Glück!

--

In your time of need, may your piece be with you!

The trouble with many of today's college graduates is not that they're
ignorant, it's that they've been taught so much that just isn't so!

(with apologies to Ronald Reagan).



On Fri, Jun 25, 2021 at 9:49 AM Gerhard Obermayr via rsync 
mailto:rsync@lists.samba.org>> wrote:


Hello everyone,

Briefly to my problem - or wish: By lucky coincidence I came into
possession of an HP Proliant.
My junior installed OpenMediaVault for me.
I've been using it as a daily backup for my TeraStation ever since.
Rsync is set up for this.
Every day I get two emails from this backup, in which the complete
directory is listed that is due to be backed up.
But that's pretty confusing, because that's currently more than
8000 lines in total.
And why? Because, among other things, I back up my directories
with the photos from one NAS to another.
And that's quite a lot of directories from the last 20 years ...
In between, individual files appear in individual directories that
have changed and have been saved as a result.
Isn't it possible that only those files appear in this mail that
were actually backed up because of the change?
That would be easier and clearer ...
Maybe there is already a solution - an additional option button -
*to only display the copied files in the report* ...

What can i do? What parameter work right? Is there an option for
that?

-- 
Liebe Grüße aus Haag - und Xund bleim!


Gerhard Obermayr

-- 
Please use reply-all for most replies to avoid omitting the

mailing list.
To unsubscribe or change options:
https://lists.samba.org/mailman/listinfo/rsync

Before posting, read:
http://www.catb.org/~esr/faqs/smart-questions.html




--
Liebe Grüße aus Haag - und Xund bleim!

Gerhard Obermayr

-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: config

2021-06-25 Thread Joe via rsync
Once you have the closest superset of what you want to see in your rsync
output, run the result through a filter to clean it up before sending it.

sed and awk are great for this, but any language/script you are familiar
with will do. Having regexes for the pattern matching will make the job
easier as long as the required patterns aren't too complex.

Joe

> Rsync by default displays nothing.  There are more than one options that
> tell it to display the files it is touching.  There are other (and
> duplicate) options that tell it to show everything.  You didn't say what
> options you are using so we have no idea.  Except that you aren't using
> --itemize-changes which is the only option that will tell you why it is
> saying what it is saying.
>
> On 6/25/21 9:48 AM, Gerhard Obermayr via rsync wrote:
>> Hello everyone,
>>
>> Briefly to my problem - or wish: By lucky coincidence I came into
>> possession of an HP Proliant.
>> My junior installed OpenMediaVault for me.
>> I've been using it as a daily backup for my TeraStation ever since.
>> Rsync is set up for this.
>> Every day I get two emails from this backup, in which the complete
>> directory is listed that is due to be backed up.
>> But that's pretty confusing, because that's currently more than 8000
>> lines in total.
>> And why? Because, among other things, I back up my directories with the
>> photos from one NAS to another.
>> And that's quite a lot of directories from the last 20 years ...
>> In between, individual files appear in individual directories that have
>> changed and have been saved as a result.
>> Isn't it possible that only those files appear in this mail that were
>> actually backed up because of the change?
>> That would be easier and clearer ...
>> Maybe there is already a solution - an additional option button - *to
>> only display the copied files in the report* ...
>>
>> What can i do? What parameter work right? Is there an option for that?
>>
>> --
>> Liebe Grüße aus Haag - und Xund bleim!
>>
>> Gerhard Obermayr
>>
>>
>
> --
> ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,
>   Kevin Korb  Phone:(407) 252-6853
>   Systems Administrator   Internet:
>   FutureQuest, Inc.   ke...@futurequest.net  (work)
>   Orlando, Floridak...@sanitarium.net (personal)
>   Web page:   https://sanitarium.net/
>   PGP public key available on web site.
> ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,
>
> --
> Please use reply-all for most


-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: config

2021-06-25 Thread Kevin Korb via rsync
Rsync by default displays nothing.  There are more than one options that
tell it to display the files it is touching.  There are other (and
duplicate) options that tell it to show everything.  You didn't say what
options you are using so we have no idea.  Except that you aren't using
--itemize-changes which is the only option that will tell you why it is
saying what it is saying.

On 6/25/21 9:48 AM, Gerhard Obermayr via rsync wrote:
> Hello everyone,
> 
> Briefly to my problem - or wish: By lucky coincidence I came into
> possession of an HP Proliant.
> My junior installed OpenMediaVault for me.
> I've been using it as a daily backup for my TeraStation ever since.
> Rsync is set up for this.
> Every day I get two emails from this backup, in which the complete
> directory is listed that is due to be backed up.
> But that's pretty confusing, because that's currently more than 8000
> lines in total.
> And why? Because, among other things, I back up my directories with the
> photos from one NAS to another.
> And that's quite a lot of directories from the last 20 years ...
> In between, individual files appear in individual directories that have
> changed and have been saved as a result.
> Isn't it possible that only those files appear in this mail that were
> actually backed up because of the change?
> That would be easier and clearer ...
> Maybe there is already a solution - an additional option button - *to
> only display the copied files in the report* ...
> 
> What can i do? What parameter work right? Is there an option for that?
> 
> -- 
> Liebe Grüße aus Haag - und Xund bleim!
> 
> Gerhard Obermayr
> 
> 

-- 
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,
Kevin Korb  Phone:(407) 252-6853
Systems Administrator   Internet:
FutureQuest, Inc.   ke...@futurequest.net  (work)
Orlando, Floridak...@sanitarium.net (personal)
Web page:   https://sanitarium.net/
PGP public key available on web site.
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,

-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


config

2021-06-25 Thread Gerhard Obermayr via rsync

Hello everyone,

Briefly to my problem - or wish: By lucky coincidence I came into 
possession of an HP Proliant.

My junior installed OpenMediaVault for me.
I've been using it as a daily backup for my TeraStation ever since.
Rsync is set up for this.
Every day I get two emails from this backup, in which the complete 
directory is listed that is due to be backed up.
But that's pretty confusing, because that's currently more than 8000 
lines in total.
And why? Because, among other things, I back up my directories with the 
photos from one NAS to another.

And that's quite a lot of directories from the last 20 years ...
In between, individual files appear in individual directories that have 
changed and have been saved as a result.
Isn't it possible that only those files appear in this mail that were 
actually backed up because of the change?

That would be easier and clearer ...
Maybe there is already a solution - an additional option button - *to 
only display the copied files in the report* ...


What can i do? What parameter work right? Is there an option for that?

--
Liebe Grüße aus Haag - und Xund bleim!

Gerhard Obermayr

-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


[Bug 10557] .ssh/config settings are incompletely applied with -e or --rsh

2014-04-19 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=10557

Wayne Davison  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID

--- Comment #4 from Wayne Davison  2014-04-19 16:47:00 UTC ---
What you should try is the sudo ssh command to see what errors it is
generating.  I imagine that root is refusing to use a file owned by someone
else.  You can instead copy the config and key to root's .ssh dir and set it up
to work that way.

-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: [Bug 10557] .ssh/config settings are incompletely applied with -e or --rsh

2014-04-18 Thread Jonathan Aquilina
Just to shed light on the OSX matter, they actually use sudo as well.


On Thu, Apr 17, 2014 at 9:37 PM,  wrote:

> https://bugzilla.samba.org/show_bug.cgi?id=10557
>
> --- Comment #3 from Kevin Korb  2014-04-17 19:37:06
> UTC ---
> OK, I was speaking from a Linux perspective.  I have no idea what OSX uses
> as
> root's home dir.  Simply put, under sudo you are running as root and root
> has a
> different home dir therefore a different ~/.ssh/config file.
>
> Also, note that permissions and usernames matter at both ends.
>
> --
> Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
> --- You are receiving this mail because: ---
> You are the QA contact for the bug.
> --
> Please use reply-all for most replies to avoid omitting the mailing list.
> To unsubscribe or change options:
> https://lists.samba.org/mailman/listinfo/rsync
> Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
>



-- 
Jonathan Aquilina
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

[Bug 10557] .ssh/config settings are incompletely applied with -e or --rsh

2014-04-17 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=10557

--- Comment #3 from Kevin Korb  2014-04-17 19:37:06 UTC 
---
OK, I was speaking from a Linux perspective.  I have no idea what OSX uses as
root's home dir.  Simply put, under sudo you are running as root and root has a
different home dir therefore a different ~/.ssh/config file.

Also, note that permissions and usernames matter at both ends.

-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


[Bug 10557] .ssh/config settings are incompletely applied with -e or --rsh

2014-04-17 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=10557

--- Comment #2 from kesten  2014-04-17 18:44:27 UTC 
---
Thanks for the faster-than-light response.

I mounted the samba file server to my mac as recommended in
https://discussions.apple.com/message/25112468#25112468

I then symlink and chown to kbroughton so that everything is owned by me down
to /var/lib which is of course root:wheel

[kbroughton@mb-kbroughton:lynx-ansible/21ct-ansible + (develop)] ls
/var/lib/lynxeon/sources/LYNXeon3_fraud_demo_data 
lrwxr-xr-x  1 kbroughton  21TECHNOLOGIES\Domain Users78B Apr 17 09:48
/var/lib/lynxeon/sources/LYNXeon3_fraud_demo_data ->
/Volumes/Temp/Departmental_Shares/Lynxeon/FileArchive/LYNXeon3_fraud_demo_data

However, I get a file permission error without sudo

[kbroughton@mb-kbroughton:lynx-ansible/21ct-ansible + (develop)]
/usr/local/bin/rsync -az -e "ssh  -i
/Users/kbroughton/.ssh/identities/21ct_dev1_key" 
/var/lib/lynxeon/sources/LYNXeon3_fraud_demo_data/fraud_1_2_bootstrap.gz
cloud-user@21ct-dev1-lynx01:/var/lib/lynxeon/sources/LYNXeon3_fraud_demo_data
--progress
sending incremental file list
rsync: change_dir "/var/lib/lynxeon/sources/LYNXeon3_fraud_demo_data" failed:
Permission denied (13)
Killed by signal 1.
rsync error: some files/attrs were not transferred (see previous errors) (code
23) at main.c(1236) [sender=3.1.0]

I can ls just fine so it seems i've gotten around the apple bug mentioned in
the link, but rsync still has a problem.  There is not /root to try putting the
.ssh/config there as you suggested.

thanks

-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


[Bug 10557] .ssh/config settings are incompletely applied with -e or --rsh

2014-04-17 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=10557

--- Comment #1 from Kevin Korb  2014-04-17 18:35:45 UTC 
---
The key here is the sudo.  ssh will always look to ~/.ssh/config but once you
sudo your ~ is /root instead of /Users/kbroughton.  Duplicate your
~/.ssh/config in ~root/.ssh/config and it should work fine.

The reason that -F partially works is because the ProxyCommand is a second ssh
session that doesn't have the -F param so is again looking at
/root/.ssh/config.

-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


[Bug 10557] New: .ssh/config settings are incompletely applied with -e or --rsh

2014-04-17 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=10557

   Summary: .ssh/config settings are incompletely applied with -e
or --rsh
   Product: rsync
   Version: 3.1.1
  Platform: All
OS/Version: All
Status: NEW
  Severity: normal
  Priority: P5
 Component: core
AssignedTo: way...@samba.org
ReportedBy: kesten.brough...@gmail.com
 QAContact: rsync...@samba.org


.ssh/config settings are not applied at all without coaxing.
The IdentityFile setting is not passed to rsync.

For better formatting, see the report here.

http://unix.stackexchange.com/questions/94421/how-to-use-ssh-config-setting-for-each-server-by-rsync/125251#125251


If i force it with -F "path to .ssh/conf" then the IdentityFile is used
correctly, but the jump-hosting fails.

sudo /usr/local/bin/rsync -az -e "ssh -F /Users/kbroughton/.ssh/config -i
/Users/kbroughton/.ssh/identities/21ct_dev1_key"  /var/data/sources/data.tar.gz
cloud-user@21ct-dev1-pivot:/home/cloud-user

Error without -F or -i
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
ssh_exchange_identification: Connection closed by remote host
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(226) [sender=3.1.0]

Error with hostname 
/var/lib/lynxeon/sources/LYNXeon3_fraud_demo_data --progress
ssh: Could not resolve hostname 21ct-dev1-lynx01: nodename nor servname
provided, or not known
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(226) [sender=3.1.0]

ssh 21ct-dev1-lynx01 
works

rsync -e "ssh -F /Users/kbroughton/.ssh/config" /local_src
10.x.y.z:/remote_dest 
works

ENVIRONMENT
local Mac maverics
both [default=2.6.9] and homebrew installed 3.1.0 were tried, with no
difference.
Remote centos6.5 rsync 3.0.9

I would expect that by default or with a CLI option rsync would read the local
~/.ssh/config file and apply ALL of its settings including jump-hosting when
the -e or -rsh option is used.

-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


DO NOT REPLY [Bug 7633] add support for include/includedir config file directives

2010-09-10 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=7633


way...@samba.org changed:

   What|Removed |Added

 CC||bdgr...@pitt.edu




--- Comment #2 from way...@samba.org  2010-09-10 20:34 CST ---
*** Bug 7672 has been marked as a duplicate of this bug. ***


-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug, or are watching the QA contact.
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


DO NOT REPLY [Bug 7633] add support for include/includedir config file directives

2010-08-21 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=7633


way...@samba.org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED




--- Comment #1 from way...@samba.org  2010-08-21 12:57 CST ---
See the CONFIG DIRECTIVES section of the rsyncd.conf manpage in 3.1.0.  At work
we use "&include /etc/rsyncd.d" inside a simple /etc/rsyncd.conf file so we can
put whatever module-defining *.conf files we like inside that directory.


-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug, or are watching the QA contact.
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


DO NOT REPLY [Bug 7633] New: add support for include/includedir config file directives

2010-08-19 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=7633

   Summary: add support for include/includedir config file
directives
   Product: rsync
   Version: 3.1.0
  Platform: Other
OS/Version: All
Status: NEW
  Severity: enhancement
  Priority: P3
 Component: core
AssignedTo: way...@samba.org
ReportedBy: sa...@askneil.com
 QAContact: rsync...@samba.org


The samba configuration has support for including an external configuration
file into the smb.conf file.

rsync does not support this functionality.

I'm requesting this functionality so rsync server configurations can be
modularly changed without having to edit the "main" file, by dropping other
config files into a directory and having the main config file reference them.

At some level this is just syntactic sugar: I could just combine all the
other files together at run time.  But it would be convenient if rsync
provided the functionality natively.


-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug, or are watching the QA contact.
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: How do you specify an alternate config file when using rsync with ssh?

2007-04-10 Thread rcorujo

Yes, that worked.  Thank you very much, Matt.

Rigoberto


Matt McCutchen-3 wrote:
> 
> On 4/9/07, rcorujo <[EMAIL PROTECTED]> wrote:
>> It seems that the "--config" option is only used when rsync is run as a
>> daemon.  However, it you want to run something like "rsync -e ssh
>> --config= ..." the "--config" option is ignored.  When I run
>> rsync with ssh, I want to specify a different config file that contains
>> different modules than the config file used by the rsync daemon.  How do
>> I
>> accomplish this?
> 
> Specify an --rsync-path that includes the --config option to be given
> to the remote process:
> 
> rsync --rsync-path='rsync --config=' -e ssh
> 
> 
> Matt
> -- 
> To unsubscribe or change options:
> https://lists.samba.org/mailman/listinfo/rsync
> Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-do-you-specify-an-alternate-config-file-when-using-rsync-with-ssh--tf3549430.html#a9919158
Sent from the Samba - rsync mailing list archive at Nabble.com.

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


Re: How do you specify an alternate config file when using rsync with ssh?

2007-04-09 Thread Matt McCutchen

On 4/9/07, rcorujo <[EMAIL PROTECTED]> wrote:

It seems that the "--config" option is only used when rsync is run as a
daemon.  However, it you want to run something like "rsync -e ssh
--config= ..." the "--config" option is ignored.  When I run
rsync with ssh, I want to specify a different config file that contains
different modules than the config file used by the rsync daemon.  How do I
accomplish this?


Specify an --rsync-path that includes the --config option to be given
to the remote process:

rsync --rsync-path='rsync --config=' -e ssh


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


How do you specify an alternate config file when using rsync with ssh?

2007-04-09 Thread rcorujo

It seems that the "--config" option is only used when rsync is run as a
daemon.  However, it you want to run something like "rsync -e ssh
--config= ..." the "--config" option is ignored.  When I run
rsync with ssh, I want to specify a different config file that contains
different modules than the config file used by the rsync daemon.  How do I
accomplish this?

Thank you.

Rigoberto
-- 
View this message in context: 
http://www.nabble.com/How-do-you-specify-an-alternate-config-file-when-using-rsync-with-ssh--tf3549430.html#a9909033
Sent from the Samba - rsync mailing list archive at Nabble.com.

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


Re: rsync --rsh not reading .ssh/config

2004-11-11 Thread Bill Moseley
On Thu, Nov 11, 2004 at 09:06:49PM -0800, Wayne Davison wrote:
> On Thu, Nov 11, 2004 at 08:26:23PM -0800, Bill Moseley wrote:
> > So why isn't is using ssh?
> 
> Because you're using an archaic version of rsync that doesn't support
> the feature you're trying to use.  Upgrade to 2.6.3.

Well, that's what I was thinking.  But, I just kept believing the man pages
on that system that explain how to use rsync over ssh.


-- 
Bill Moseley
[EMAIL PROTECTED]

-- 
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: rsync --rsh not reading .ssh/config

2004-11-11 Thread Wayne Davison
On Thu, Nov 11, 2004 at 08:26:23PM -0800, Bill Moseley wrote:
> So why isn't is using ssh?

Because you're using an archaic version of rsync that doesn't support
the feature you're trying to use.  Upgrade to 2.6.3.

..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


Re: rsync --rsh not reading .ssh/config

2004-11-11 Thread Bill Moseley
On Thu, Nov 11, 2004 at 04:47:32PM -0800, Wayne Davison wrote:
> > > $ rsync -a --rsh="ssh -F $HOME/.ssh/config -i $HOME/.ssh/mysqldump" 
> > > remotehost::
> > > unknown host: remotehost
> 
> It looks like this command didn't even connect to the remote host, so
> that would explain why the access times on the ssh files didn't get
> updated.

Yes, I think you are right.

> I'd suggest looking into name server issues or something like
> that.

No, it's not a DNS issue.

   $ ssh remotehost

works -- if you look at my original post you will see how rsync on the
remote host is responding:

    $ ssh remotehost
@RSYNCD: 28
^C

which tells me that .ssh/config is read and my single use key is used.

> Also, specify another -v so you can see the exact command that
> rsync is running -- you can try running that command manually, and that
> may help you to figure out what is wrong.

A -v where?  I tried that, but can't get it to generate any output.

$ rsync -v -a --rsh="ssh -v remotehost" ::
unknown host:

$ rsync -v -a --rsh="ssh -v remotehost"::
rsync version 2.4.6 Copyright Andrew Tridgell and Paul Mackerras
[ ... rsync help trimmed ... ]

If I use the actual hostname I can see it's
not using ssh, but the rsync protocol:

$ rsync -e ssh library9.berkeley.edu::

$ netstat | grep -i berkeley
tcp0  1 server:1451 library9.Berkeley:rsync SYN_SENT

So that's the problem.  Should work, according to the help:

$ rsync -help | grep -i rsh
 -e, --rsh=COMMAND   specify rsh replacement

So why isn't is using ssh?


-- 
Bill Moseley
[EMAIL PROTECTED]

-- 
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: rsync --rsh not reading .ssh/config

2004-11-11 Thread Wayne Davison
On Thu, Nov 11, 2004 at 11:01:30PM +0100, Paul Slootman wrote:
> When you use a double colon "host::", then you're telling ssh to connect
> directly to the rsync daemon running on that host using port 873. In
> other words, ssh does not come into the equation, so it's pretty logical
> that the .ssh config isn't being read...

That used to be true, but rsync has supported daemon mode over ssh for
quite a while now, so using both -e (--rsh) and "::" is fine.

> On Thu 11 Nov 2004, Bill Moseley wrote:
> > $ rsync -a --rsh="ssh -F $HOME/.ssh/config -i $HOME/.ssh/mysqldump" 
> > remotehost::
> > unknown host: remotehost

It looks like this command didn't even connect to the remote host, so
that would explain why the access times on the ssh files didn't get
updated.  I'd suggest looking into name server issues or something like
that.  Also, specify another -v so you can see the exact command that
rsync is running -- you can try running that command manually, and that
may help you to figure out what is wrong.

..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


Re: rsync --rsh not reading .ssh/config

2004-11-11 Thread Paul Slootman
On Thu 11 Nov 2004, Bill Moseley wrote:
> 
> Again, the problem seems that on this machine .ssh/config is not being
> read, but only when ssh is run via rsync.  My guess is this is just a
> problem with running the older rsync.  

Ah, you mean ".ssh/config is being read, but not when ssh is run via
rsync.". Your sentence is a bit confusing :-)

> Is that the case, and is there a workaround other than upgrading
> rsync?

What works a lot better is understanding the rsync syntax.

> Here's some examples of how it's not reading my .ssh/config:
...
> $ rsync -a --rsh="ssh -F $HOME/.ssh/config -i $HOME/.ssh/mysqldump" 
> remotehost::
> unknown host: remotehost

When you use a double colon "host::", then you're telling ssh to connect
directly to the rsync daemon running on that host using port 873. In
other words, ssh does not come into the equation, so it's pretty logical
that the .ssh config isn't being read...

Use a single colon, and it should be as you expect.
This is covered in basically the first page of the manual.


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


rsync --rsh not reading .ssh/config

2004-11-11 Thread Bill Moseley
I've setup up a single-use key on a remote host to run rsync in server
mode.  I've also setup .ssh/config locally with an IdentityFile to
select the single-use ssh key.

This works on my Debian sid machine:

   rsync --rsh="ssh remove_host" ::

But on another machine that command (and others tried below) do not
access .ssh/config.  The machine is running these:

$ ssh -v 
OpenSSH_3.1p1, SSH protocols 1.5/2.0, OpenSSL 0x0090602f

$ rsync --version
rsync version 2.4.6  protocol version 24

Again, the problem seems that on this machine .ssh/config is not being
read, but only when ssh is run via rsync.  My guess is this is just a
problem with running the older rsync.  

Is that the case, and is there a workaround other than upgrading
rsync?

Here's some examples of how it's not reading my .ssh/config:


"mysqldump" is the single-use key.  You can see that rsync --rsh=ssh
isn't reading .ssh/config:

$ ls -ltu $HOME/.ssh/config /home/moseley/.ssh/mysqldump
-rw---1 moseley  users 668 Nov 11 06:45 
/home/moseley/.ssh/mysqldump
-rw-r--r--1 moseley  users     268 Nov 11 06:45 
/home/moseley/.ssh/config

$ rsync -a --rsh="ssh -F $HOME/.ssh/config -i $HOME/.ssh/mysqldump" remotehost::
unknown host: remotehost

$ ls -ltu $HOME/.ssh/config /home/moseley/.ssh/mysqldump
-rw---1 moseley  users 668 Nov 11 06:45 
/home/moseley/.ssh/mysqldump
-rw-r--r--1 moseley  users 268 Nov 11 06:45 
/home/moseley/.ssh/config


But if I use ssh directly, you can see .ssh/config is used:

$ ssh remotehost
@RSYNCD: 28
^C

$ ls -ltu $HOME/.ssh/config /home/moseley/.ssh/mysqldump
-rw---1 moseley  users 668 Nov 11 09:36 
/home/moseley/.ssh/mysqldump
-rw-r--r--1 moseley  users 268 Nov 11 09:36 
/home/moseley/.ssh/config


Other things I've tried:

  $ rsync -e ssh remotehost::
  $ rsync --rsh="ssh -i ~/.ssh/mysqldump" [EMAIL PROTECTED]::
  $ RSYNC_RSH="ssh -i ~/.ssh/mysqldump" rsync [EMAIL PROTECTED]::




-- 
Bill Moseley
[EMAIL PROTECTED]


-- 
Bill Moseley
[EMAIL PROTECTED]

-- 
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: How to Config & Start Backup Process in NW6 with RSync

2003-08-20 Thread jw schultz

On Wed, Aug 20, 2003 at 12:06:37PM -, MalleswaraRao  Durga wrote:
> Dear Experts,
>I got Two Netware 6 Servers in the Same LAN. Server A is a 
> main server (File Server). I'ld like to configure Server B as 
> Backup server for Server A with RSync.
>I've follwed the documetnation at 
> http://www.novell.com/coolsolutions/netware/features/trenches/tr_rsync_nw.html
>But im confused how to start the process.
> Kindly help me how to Configure rsync in  Server B as Backup 
> Server and Start the Backup process.
>   I need 7 days incremental backup.
> kindly help me

You will need to contact Novell for support of the Novell
rsync product.

Rsync on Netware is not rsync.  Novell has modified rsync
very heavily to work on the Netware environment.  The rsync
team is unable to help with this or other modified rsync
products.

-- 

J.W. SchultzPegasystems Technologies
email address:  [EMAIL PROTECTED]

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


How to Config & Start Backup Process in NW6 with RSync

2003-08-20 Thread MalleswaraRao Durga
Dear Experts,
   I got Two Netware 6 Servers in the Same LAN. Server A is a 
main server (File Server). I'ld like to configure Server B as 
Backup server for Server A with RSync.
   I've follwed the documetnation at 
http://www.novell.com/coolsolutions/netware/features/trenches/tr_rsync_nw.html
   But im confused how to start the process.
Kindly help me how to Configure rsync in  Server B as Backup 
Server and Start the Backup process.
  I need 7 days incremental backup.
kindly help me

Thnaks in adv.,
malleswar
Malleswara Rao.N.D M.B.A
Manager,
Sys Admin Dept.,
Efftronics Sys Pvt Ltd.,
Vijayawada. INDIA
___
Meet your old school or college friends from
1 Million + database...
Click here to reunite www.batchmates.com/rediff.asp
--
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: rsync2.5.6 can't find system config file

2003-03-09 Thread Brad Hards
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Mon, 10 Mar 2003 16:51, Chris Hare, CISSP, CISA wrote:
> I am still stuck with this problem.  Does anyone have any advice?
Have you tried putting it in /etc/rsync/rsyncd.conf?

Brad
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE+bDiQW6pHgIdAuOMRAnQgAJ93ObLZlMMHSdrhGHjMwCkc+cncmwCeM9rQ
zzniDZCfduMZNjv+paEbCm8=
=7+2u
-END PGP SIGNATURE-

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


Re: rsync2.5.6 can't find system config file

2003-03-09 Thread Chris Hare, CISSP, CISA
I am still stuck with this problem.  Does anyone have any advice?

- Original Message -
From: "Chris Hare" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, March 01, 2003 7:10 PM
Subject: rsync2.5.6 can't find system config file


>
> I had rsync2.5.5 running fine ona RedHat Linux 8 system.  I downloaded the
rsync2.5.6 code and it compiled with no problems.  However, operations which
worked before are now failing.  Here is my rsyncd.conf file
>
> uid = nobody
> gid = nobody
> # use chroot = no
> max connections = 4
> syslog facility = local5
> pid file = /var/run/rsyncd.pid
> motd file = /etc/rsyncd.motd
>
> [ftp]
> path = /var/ftp/pub
> comment = whole ftp area
> read only = yes
> list = yes
> ignore nonreadable = yes
>
> [movies]
> path = /var/ftp/pub/movies
> comment = Movies and Video Clips
>
> [slides]
> path = /var/ftp/pub/slides
> comment = Slides and Pictures (requires authentication)
> auth users = chare, hawkins
> secrets file = /etc/rsyncd.secrets
> uid = 500
> gid = 500
> read only = yes
> list = yes
> hosts allow = 192.168.0.3
>
>
> Executing the command
>
> [EMAIL PROTECTED] chare]$ rsync - 192.168.0.3::slides//
> opening tcp connection to 192.168.0.3 port 873
>
> Password:
> @ERROR: auth failed on module slides
> rsync: connection unexpectedly closed (91 bytes read so far)
> _exit_cleanup(code=12, file=io.c, line=165): entered
> rsync error: error in rsync protocol data stream (code 12) at io.c(165)
> _exit_cleanup(code=12, file=io.c, line=165): about to call exit(12)
>
>
> fails, whereas it worked before.  Likewise
>
> [EMAIL PROTECTED] chare]$ rsync -a --rsh="ssh -l chare" [EMAIL PROTECTED]::
> cmd=ssh -l chare machine=192.168.0.3 user=chare path=
> cmd=ssh -l chare 192.168.0.3 rsync --server --daemon .
> opening connection using ssh -l chare 192.168.0.3 rsync --server --daemon
.
> [EMAIL PROTECTED]'s password:
> rsync: unable to open configuration file "rsyncd.conf": No such file or
directory
> rsync error: syntax or usage error (code 1) at clientserver.c(502)
> rsync: connection unexpectedly closed (0 bytes read so far)
> _exit_cleanup(code=12, file=io.c, line=165): entered
> rsync error: error in rsync protocol data stream (code 12) at io.c(165)
> _exit_cleanup(code=12, file=io.c, line=165): about to call exit(12)
>
>
> Now, rsyncd can't seem to find the /etc/rsyncd.conf file, even though it
is there and hasn't changed.
>
> Ideas??
>
> Chris
>
>
>
>
>
>
>
> -
> Do you Yahoo!?
> Yahoo! Tax Center - forms, calculators, tips, and more
> --
> To unsubscribe or change options:
http://lists.samba.org/mailman/listinfo/rsync
> Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html
>


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


rsync2.5.6 can't find system config file

2003-03-01 Thread Chris Hare

I had rsync2.5.5 running fine ona RedHat Linux 8 system.  I downloaded the rsync2.5.6 
code and it compiled with no problems.  However, operations which worked before are 
now failing.  Here is my rsyncd.conf file

uid = nobody
gid = nobody
# use chroot = no
max connections = 4
syslog facility = local5
pid file = /var/run/rsyncd.pid
motd file = /etc/rsyncd.motd

[ftp]
path = /var/ftp/pub
comment = whole ftp area
read only = yes
list = yes
ignore nonreadable = yes

[movies]
path = /var/ftp/pub/movies
comment = Movies and Video Clips

[slides]
path = /var/ftp/pub/slides
comment = Slides and Pictures (requires authentication)
auth users = chare, hawkins
secrets file = /etc/rsyncd.secrets
uid = 500
gid = 500
read only = yes
list = yes
hosts allow = 192.168.0.3


Executing the command

[EMAIL PROTECTED] chare]$ rsync - 192.168.0.3::slides//
opening tcp connection to 192.168.0.3 port 873

Password:
@ERROR: auth failed on module slides
rsync: connection unexpectedly closed (91 bytes read so far)
_exit_cleanup(code=12, file=io.c, line=165): entered
rsync error: error in rsync protocol data stream (code 12) at io.c(165)
_exit_cleanup(code=12, file=io.c, line=165): about to call exit(12)


fails, whereas it worked before.  Likewise

[EMAIL PROTECTED] chare]$ rsync -a --rsh="ssh -l chare" [EMAIL PROTECTED]::
cmd=ssh -l chare machine=192.168.0.3 user=chare path=
cmd=ssh -l chare 192.168.0.3 rsync --server --daemon .
opening connection using ssh -l chare 192.168.0.3 rsync --server --daemon .
[EMAIL PROTECTED]'s password:
rsync: unable to open configuration file "rsyncd.conf": No such file or directory
rsync error: syntax or usage error (code 1) at clientserver.c(502)
rsync: connection unexpectedly closed (0 bytes read so far)
_exit_cleanup(code=12, file=io.c, line=165): entered
rsync error: error in rsync protocol data stream (code 12) at io.c(165)
_exit_cleanup(code=12, file=io.c, line=165): about to call exit(12)


Now, rsyncd can't seem to find the /etc/rsyncd.conf file, even though it is there and 
hasn't changed.  

Ideas??

Chris

 

 



-
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, and more
-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html


Re: rcopy.pl an Perl script for rsync (with XML config)

2002-09-07 Thread Sean O'Neill

At 03:07 PM 9/7/2002 -0400, Luis M wrote:

>And you can read an article I did explaining it's usage (Spanish only, use 
>the Fish to translate -- http://world.altavista.com ) from this link:
>
>http://www.latinomixed.com/article.php3?story_id=232

For some reason, Fish doesn't translate the entire article.  It stops about 
half way through.  At least with this article, you'll get more "translation 
milage" using http://www.freetranslation.com.


--

. ..- -. .. -..- .-. ..- .-.. . ... 
.-- .. -. -... .-.. --- .-- ... -.. .-. --- --- .-.. ...

Sean O'Neill

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



Re: [PATCH] rsync on cygwin - textmode config files

2002-03-26 Thread Martin Pool

Thanks, this will be merged in 2.6.  Please let me know if anything
further is required.

-- 
Martin 

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



Re: [PATCH] rsync on cygwin - textmode config files

2002-02-21 Thread Ville Herva

On Wed, Feb 20, 2002 at 11:17:24AM -0800, you [Martin Pool] wrote:
>
> OK, already fixed.  --no-fork would be good to add in the future -- it
> can be handy for debugging.

As said, I only added the --dont-fork==--no-detach  mostly because I use it
in my scripts. (The original --dont-fork did disable just the fork() call,
not the whole become_daemon() call, so it was slightly different from
--no-detach.)
  
> > O_TEXT and O_BINARY
> 
> Good.
> 
> It might be cleaner to #ifdef on O_BINARY or something that will also
> work on MSVC++.

O_TEXT and O_BINARY also work on MSVC (and propably on most other windows
compilers.)

So perhaps 

#if defined(_WIN32) || defined(__CYGWIN__)
#define TEXT O_TEXT
#define BINARY O_BINARY
#else
#define TEXT 0
#define BINARY 0
#endif

and

   fd = open(fname, O_RDONLY | TEXT)

(not sure what to call those -- "TEXT"/"BINARY" might collide with
something?)

Or is 

#if !defined(O_TEXT)
#define O_TEXT 0
#endif
#if !defined(O_BINARY)
#define O_BINARY 0
#endif

better?
 
> Can't you say "rt" as an fopen mode?  That works on all C platforms
> that I know, and avoids the ifdef.

I'm not sure what I was thinking back then :) (This dates back to few years
ago). Perhaps I tried "rt", but it didn't work or something. Or perhaps it
was just my thinko. It should work now with cygwin, you're right.

> > (3) avoid perm check on password file
> 
> This seems good, though again perhaps ideally we would ifdef for "the
> windows platform" rather than "cygwin".

Ok, how about 

#if defined(_WIN32) || defined(__CYGWIN__)

?


-- v --

[EMAIL PROTECTED]


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



Re: [PATCH] rsync on cygwin - textmode config files

2002-02-20 Thread Martin Pool

> (1) --no-detach

OK, already fixed.  --no-fork would be good to add in the future -- it
can be handy for debugging.

> (2) ctrl-c

Fixed recently by Colin Walters.

> O_TEXT and O_BINARY

Good.

It might be cleaner to #ifdef on O_BINARY or something that will also
work on MSVC++.

> +#ifdef __CYGWIN__
> +   {
> +   /* CYGWIN has no O_TEXT equivalent for
> +   fopen... */
> +   int fd = open( FileName, O_RDONLY | O_TEXT);
> +   OpenedFile = fdopen( fd, "r" );
> +   }
> +#else 
> +   OpenedFile = fopen( FileName, "r" );
> +#endif

Can't you say "rt" as an fopen mode?  That works on all C platforms
that I know, and avoids the ifdef.

> (3) avoid perm check on password file

This seems good, though again perhaps ideally we would ifdef for "the
windows platform" rather than "cygwin".

Thanks very much,
-- 
Martin 


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



Re: [PATCH] rsync on cygwin - textmode config files

2002-02-20 Thread Ville Herva

On Wed, Feb 20, 2002 at 08:27:07AM +0200,  [Ville Herva] wrote:
> 
>(2) Secondly, if I connect to rsync daemon from another machine and hit
>ctrl-c at the client end during transfer, the rsync daemon exists (not
>just the connection handler process, but every rsync). I guess this is
>because rsync gets sigpipe signal, which is handled by sig_int, which
>in turn sends sigusr to the parent. I have no idea why this should be.
>I changed sigpipe handler to SIG_IGN, and I now get the behaviour I
>want: if there is a network error (such as premature socket closing)
>the rysnc daemon won't die, and I can reconnect to it. I didn't do
>this cleanly: the connection handler process should in fact exit
>(perhaps after some clean up), but not the parent. This is not a
>problem, however, since the parent will reap the connection handler
>after a minute.
> 
> This I'm not sure about. Does more recent cygwin handle this better? I'll
> try it without the patch and try to reproduce the bug I was seeing back
> then.

Ok, from 2.5.2 -> 2.5.3pre1:

signal(SIGINT,SIGNAL_CAST sig_int);
-   signal(SIGPIPE,SIGNAL_CAST sig_int);
signal(SIGHUP,SIGNAL_CAST sig_int);
signal(SIGTERM,SIGNAL_CAST sig_int);
 
+   /* Ignore SIGPIPE; we consistently check error codes and will
+* see the EPIPE. */
+   signal(SIGPIPE, SIG_IGN);

So mainline does the same thing nowadays (the "consistently check error
codes and will see the EPIPE" was something I propably didn't do, anyway).


-- v --

[EMAIL PROTECTED]




[PATCH] rsync on cygwin - textmode config files

2002-02-19 Thread Ville Herva

I've been running rsync-2.4.2 with an old patch of mine for some time for
backup purposes. Due to the recent remote bug, I thought it was time to
upgrade, even if the host was behind a firewall.

So I dug up the old patch (2.5.2 version attached), that I think I sent ages
ago to this list as well. It does the following:

   (1) Firstly, the only sensible way to run something as "daemon" under NT
   is to run it as service. One can use SrvAny.exe from the NT resource
   kit for this. However, as it is, rsync immediately forks another 
   process, and net stop has not desired effect, since srvany can't kill
   the rsync daemon. I added --dont-fork option so rsync can be forced 
   not to fork when run as daemon. This way starting and stopping
   services works right.

Ok. This is nowadays handled by --no-detach (I added --dont-fork for
backward compability).

   (2) Secondly, if I connect to rsync daemon from another machine and hit
   ctrl-c at the client end during transfer, the rsync daemon exists (not
   just the connection handler process, but every rsync). I guess this is
   because rsync gets sigpipe signal, which is handled by sig_int, which
   in turn sends sigusr to the parent. I have no idea why this should be.
   I changed sigpipe handler to SIG_IGN, and I now get the behaviour I
   want: if there is a network error (such as premature socket closing)
   the rysnc daemon won't die, and I can reconnect to it. I didn't do
   this cleanly: the connection handler process should in fact exit
   (perhaps after some clean up), but not the parent. This is not a
   problem, however, since the parent will reap the connection handler
   after a minute.

This I'm not sure about. Does more recent cygwin handle this better? I'll
try it without the patch and try to reproduce the bug I was seeing back
then.

   (3) Third, under CYGWIN, it makes little sense to force attribute check on
   the password file. It can be made to work if env var CYGWIN contains
   "ntea" (nt extended attribute mode -- CYGWIN emulates unix permissions
   through a hack), but frankly, it is a MAJOR pain in the ass to get 
   working especially when trying to run rsync as a NT service. Besides,
   CYGWIN permissions won't give you any added security -- the security
   should be handled with NTFS ACL's. So I added a #ifndef __CYGWIN__'s 

Perhaps this would make sense for mainline rsync as well?

   (4) Lastly, the original reason I began compiling my own version was that
   I had a binary version that did not force binary open (I got corrupted
   .doc files etc in the transmission.) I found out that the mainline
   rsync source (as of 2.4.2) already has that O_BINARY bit in do_open,
   so no problem here. It works without, if you mount everything with -b
   (binary) in CYGWIN or force that with "set CYGWIN=BINMODE", but 
   O_BINARY is the (most) correct way to do it -- it works regardless how
   the user has mounted his filesystems. However, if the mounts are
   binary, the configuration files are not read right: if, for example,
   the user makes a password file with notepad, he'll get an additional
   CR into the password (due to missing CR/LF->LF conversion). So I added
   open(O_TEXT) forcing to every config file open (#ifdef CYGWIN'ed, of
   course). Now the users shouldn't have to worry about mount types.

And this as well?

I contacted rsync cygwin mnaintainer (Lapo Luchini <[EMAIL PROTECTED]>), and he
suggested to forward (3) and (4) to rsync mailing list, so here they are.
The patch attached is against 2.5.2 and includes (3) and (4).


regards,

-- 
Ville Herva[EMAIL PROTECTED] +358-40-5756996
Viasys Oy  Hannuntie 6  FIN-02360 Espoo  +358-9-2313-2160
PGP key available: http://www.iki.fi/v/pgp.html  fax +358-9-2313-2250


diff -Naur --show-c-function --exclude=*.o --exclude=*.1852$ --exclude=*.exe 
--exclude=Makefile --exclude=con* --exclude=*~ rsync-2.5.2/authenticate.c 
rsync-2.5.2-patched/authenticate.c
--- rsync-2.5.2/authenticate.c  Thu Jan 24 04:33:45 2002
+++ rsync-2.5.2-patched/authenticate.c  Tue Feb 19 14:04:36 2002
@@ -82,13 +82,24 @@ static int get_secret(int module, char *
 
if (!fname || !*fname) return 0;
 
-   fd = open(fname,O_RDONLY);
+   fd = open(fname,O_RDONLY
+#ifdef __CYGWIN__
+   | O_TEXT
+#endif
+   );
if (fd == -1) return 0;
 
if (do_stat(fname, &st) == -1) {
rsyserr(FERROR, errno, "stat(%s)", fname);
ok = 0;
} else if (lp_strict_modes(module)) {
+/* Under CYGWIN, we don't want to force attribute check. It can be made to
+   work if env var CYGWIN contains "ntea" (nt extended attribute mode), but
+  

Re: Bug in rsyncd 2.5.0 while handling config file string values

2001-12-03 Thread tim . conway

Well, that's a bug, I'd reckon, but i want to point out that a config file 
with only one line is invalid.  you need to have at least a module and its 
path defined.  I wouldn't expect daemon mode to gracefully handle an 
invalid config, though simply declaring that the file is invalid and 
exiting would be nice.

Tim Conway
[EMAIL PROTECTED]
303.682.4917
Philips Semiconductor - Longmont TC
1880 Industrial Circle, Suite D
Longmont, CO 80501
Available via SameTime Connect within Philips, n9hmg on AIM
perl -e 'print pack(, 
19061,29556,8289,28271,29800,25970,8304,25970,27680,26721,25451,25970), 
".\n" '
"There are some who call me Tim?"




Heikki Vatiainen <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
12/02/2001 06:14 AM

 
To: [EMAIL PROTECTED]
cc: (bcc: Tim Conway/LMT/SC/PHILIPS)
Subject:Bug in rsyncd 2.5.0 while handling config file string values
Classification: 



I compiled and tried rsync 2.5.0 but could not get the server
running. loadparm.c:string_set() now calls free() which it did not do
in 2.4.6 and this free() tries to free memory that was not allocated
with malloc.

Here is a gdb run (done after adding return before fork() in
become_daemon) which shows where it crashes and what my minimal config
file for demonstrating the bug was. The config file only had one line
which was: uid = foobar

/usr/local/src/rsync/rsync-2.5.0:>gdb ./rsync
GNU gdb 5.0.90-cvs (MI_OUT)

(gdb) r --daemon --config=../rsyncd.conf
Starting program: /usr/local/src/rsync/rsync-2.5.0/./rsync --daemon 
--config=../rsyncd.conf

Program received signal SIGSEGV, Segmentation fault.
0x4009cb2d in free () from /lib/libc.so.6
(gdb) bt
#0  0x4009cb2d in free () from /lib/libc.so.6
#1  0x08061286 in string_set (s=0x807ace4, v=0x808b374 "foobar") at 
loadparm.c:400
#2  0x08061a20 in lp_do_parameter (snum=-2, parmname=0x808b370 "uid", 
parmvalue=0x808b374 "foobar")
at loadparm.c:647
#3  0x08061b8b in do_parameter (parmname=0x808b370 "uid", 
parmvalue=0x808b374 "foobar") at loadparm.c:678
#4  0x0806057b in Parameter (InFile=0x808b200, pfunc=0x8061b58 
, c=0) at params.c:405
#5  0x080606a4 in Parse (InFile=0x808b200, sfunc=0, pfunc=0x8061b58 
) at params.c:461
#6  0x08060848 in pm_process (FileName=0xb80c "../rsyncd.conf", 
sfunc=0, 
pfunc=0x8061b58 ) at params.c:540
#7  0x08061cc7 in lp_load (pszFname=0x808b1c0 "../rsyncd.conf", 
globals_only=1) at loadparm.c:747
#8  0x08063095 in daemon_main () at clientserver.c:506
#9  0x0805225a in main (argc=0, argv=0x0) at main.c:817
#10 0x400476ef in __libc_start_main () from /lib/libc.so.6

(gdb) select 1
(gdb) p s
$1 = (char **) 0x807ace4
(gdb) p *s
$2 = 0x807680c "nobody"

(gdb) p sDefault
$3 = {name = 0x0, path = 0x0, comment = 0x0, lock_file = 0x8076813 
"/var/run/rsyncd.lock", 
  read_only = 1, list = 1, use_chroot = 1, transfer_logging = 0, 
ignore_errors = 0, 
  uid = 0x807680c "nobody", gid = 0x807680c "nobody", hosts_allow = 0x0, 
hosts_deny = 0x0, 
  auth_users = 0x0, secrets_file = 0x0, strict_modes = 1, exclude = 0x0, 
exclude_from = 0x0, 
  include = 0x0, include_from = 0x0, log_format = 0x80767f3 "%o %h [%a] %m 
(%u) %f %l", 
  refuse_options = 0x0, dont_compress = 0x80767c0 "*.gz *.tgz *.zip *.z 
*.rpm *.deb *.iso *.bz2 *.tbz", 
  timeout = 0, max_connections = 0, ignore_nonreadable = 0}

(gdb) shell cat ../rsyncd.conf 
uid = foobar
(gdb) 



-- 
Heikki Vatiainen  * [EMAIL PROTECTED]
Tampere University of Technology  * Tampere, Finland








Re: Bug in rsyncd 2.5.0 while handling config file string values

2001-12-02 Thread Martin Pool

On  2 Dec 2001, Heikki Vatiainen <[EMAIL PROTECTED]> wrote:
> I compiled and tried rsync 2.5.0 but could not get the server
> running. loadparm.c:string_set() now calls free() which it did not do
> in 2.4.6 and this free() tries to free memory that was not allocated
> with malloc.

Thankyou for the report.  This should be fixed in 2.5.1pre1, which is
available from the usual site.

--
Martin




Bug in rsyncd 2.5.0 while handling config file string values

2001-12-02 Thread Heikki Vatiainen

I compiled and tried rsync 2.5.0 but could not get the server
running. loadparm.c:string_set() now calls free() which it did not do
in 2.4.6 and this free() tries to free memory that was not allocated
with malloc.

Here is a gdb run (done after adding return before fork() in
become_daemon) which shows where it crashes and what my minimal config
file for demonstrating the bug was. The config file only had one line
which was: uid = foobar

/usr/local/src/rsync/rsync-2.5.0:>gdb ./rsync
GNU gdb 5.0.90-cvs (MI_OUT)

(gdb) r --daemon --config=../rsyncd.conf
Starting program: /usr/local/src/rsync/rsync-2.5.0/./rsync --daemon 
--config=../rsyncd.conf

Program received signal SIGSEGV, Segmentation fault.
0x4009cb2d in free () from /lib/libc.so.6
(gdb) bt
#0  0x4009cb2d in free () from /lib/libc.so.6
#1  0x08061286 in string_set (s=0x807ace4, v=0x808b374 "foobar") at loadparm.c:400
#2  0x08061a20 in lp_do_parameter (snum=-2, parmname=0x808b370 "uid", 
parmvalue=0x808b374 "foobar")
at loadparm.c:647
#3  0x08061b8b in do_parameter (parmname=0x808b370 "uid", parmvalue=0x808b374 
"foobar") at loadparm.c:678
#4  0x0806057b in Parameter (InFile=0x808b200, pfunc=0x8061b58 , c=0) at 
params.c:405
#5  0x080606a4 in Parse (InFile=0x808b200, sfunc=0, pfunc=0x8061b58 ) at 
params.c:461
#6  0x08060848 in pm_process (FileName=0xb80c "../rsyncd.conf", sfunc=0, 
pfunc=0x8061b58 ) at params.c:540
#7  0x08061cc7 in lp_load (pszFname=0x808b1c0 "../rsyncd.conf", globals_only=1) at 
loadparm.c:747
#8  0x08063095 in daemon_main () at clientserver.c:506
#9  0x0805225a in main (argc=0, argv=0x0) at main.c:817
#10 0x400476ef in __libc_start_main () from /lib/libc.so.6

(gdb) select 1
(gdb) p s
$1 = (char **) 0x807ace4
(gdb) p *s
$2 = 0x807680c "nobody"

(gdb) p sDefault
$3 = {name = 0x0, path = 0x0, comment = 0x0, lock_file = 0x8076813 
"/var/run/rsyncd.lock", 
  read_only = 1, list = 1, use_chroot = 1, transfer_logging = 0, ignore_errors = 0, 
  uid = 0x807680c "nobody", gid = 0x807680c "nobody", hosts_allow = 0x0, hosts_deny = 
0x0, 
  auth_users = 0x0, secrets_file = 0x0, strict_modes = 1, exclude = 0x0, exclude_from 
= 0x0, 
  include = 0x0, include_from = 0x0, log_format = 0x80767f3 "%o %h [%a] %m (%u) %f 
%l", 
  refuse_options = 0x0, dont_compress = 0x80767c0 "*.gz *.tgz *.zip *.z *.rpm *.deb 
*.iso *.bz2 *.tbz", 
  timeout = 0, max_connections = 0, ignore_nonreadable = 0}

(gdb) shell cat ../rsyncd.conf 
uid = foobar
(gdb) 



-- 
Heikki Vatiainen  * [EMAIL PROTECTED]
Tampere University of Technology  * Tampere, Finland




Re: Multiple questions (rsync hangs, logging config, etc.)

2001-06-15 Thread Dave Dykstra

On Fri, Jun 15, 2001 at 11:13:27AM -0400, [EMAIL PROTECTED] wrote:
> 
> 
> Dave,
> Thanks much.  Up and running & logging successfully with rsync in daemon
> mode.
> 
> One general question - what's the benefit of using rsh/ssh as transport
> versus using rsync in daemon mode?


Mainly security.   If you don't protect the writes with a password, anybody
on your network can write to it.  It doesn't have any host-spoofing
protection like SSH does.

Also, the rsync daemon mode was designed primarily for anonymous read
access like a web server and in general doesn't do very well on writes. 
It doesn't report most error messages to the client.  You have to change
all kinds of defaults in order to let it write.  People have reported
trouble with preservation of user and group ids.


> Also , I've received a error similar to the following multiple times --
> what might this be indicative of?
>Invalid file index -324461374 (count=32262)
> 
> Thanks again.
> Peter


It doesn't look familiar to me.  Are you perhaps transferring some very
large files (>2GB)?  If not, perhaps the protocol is getting out of sync.

- Dave Dykstra




Re: Multiple questions (rsync hangs, logging config, etc.)

2001-06-15 Thread pbellamy



Dave,
Thanks much.  Up and running & logging successfully with rsync in daemon
mode.

One general question - what's the benefit of using rsh/ssh as transport
versus using rsync in daemon mode?

Also , I've received a error similar to the following multiple times --
what might this be indicative of?
   Invalid file index -324461374 (count=32262)

Thanks again.
Peter





Dave Dykstra <[EMAIL PROTECTED]> on 06/15/2001 09:42:50 AM

To:   [EMAIL PROTECTED]
cc:   [EMAIL PROTECTED]

Subject:  Re: Multiple questions (rsync hangs, logging config, etc.)

On Thu, Jun 14, 2001 at 05:26:29PM -0400, [EMAIL PROTECTED] wrote:
>
> I'm new to rsync and I'm trying to use rsync-2.4.6 to sync web content
> between 2 AIX (4.3.3.0) boxes (from SERVERA to SERVERB).
>
> I've gone through the man pages for rsync and rsyncd.conf, searched the
web
> site and browsed several months worth of the mailing list, but I still
> can't figure out which end is up.
>
> I've had rsync working successfully on a small scale replicate some test
> directories (100+ files in 10 directories).
>
> Now that I'm trying to run rsync to replicate 32000+ at once, I'm having
> several problems.
>
> I initiate rsync with the following script from SERVERA:
>==> cat /opt/rysnc/sync.sh
>/opt/rsync/rsync --rsh=/usr/bin/rsh --rsync-path=/opt/rsync/rsync
>--delete --timeout=0 --progress --verbose
>--exclude-from=/opt/rsync/exclude.dat --delete-excluded --recursive
>--links --hard-links --perms --owner --group --times /www/www.xyz.com/
>SERVERB:/www/www.xyz.com
>==>


If you use a single colon for "SERVERB:", you are using the default rsh
mode and not the daemon mode.  Can you rsh as root from SERVERA to
SERVERB?  To talk to the daemon, you use "SERVERB::".  If you can use rsh,
I think it would probably be better to do that and just forget about the
daemon.



> My /opt/rsync/exclude.dat file is as follows:
>==>cat exclude.dat
>- /logs/
>- /logs/*
>==>
>
> 1)  Running rsync as root, rsync appears to hang, as follows.
>==>./sync.sh
>building file list ... done
>^C
>==>
>
> Sometimes the rsync ends with an error message (but I haven't found any
> reference to all of the various error codes and what they mean. Can
someone
> point me in the right direction?)

There are known problems with verbose mode causing hanging in rsync 2.4.6;
try it without to see if that helps.  I'm not familiar with AIX; perhaps
there's an additional problem with rsync on that operating system.  Rsync
does tend to drive TCP very hard and has revealed bugs in several vendors'
implementations.



> 2) How do I configure logging correctly?
>
> I initiate rsync as a daemon on SERVERB as follows:
>==> /opt/rsync/rsync --daemon
>
> I have the rsyncd.conf on SERVERB as follows:
>==>cat /etc/rsyncd.conf
># /etc/rsyncd.conf
>log file = /var/adm/rsync.log
>use chroot = no
>max connections = 1
>pid file = /etc/rsync.pid
>transfer logging = true
>[www]
>path = /www
>comment = WWW Content
>strict modes = true
>root@SERVERB:/
>==>

If you do intend to write to the rsync daemon, you will at least need to
add
uid = root
gid = root
read only = no



> My /etc/syslog.conf contains the following line:
>daemon.debug,info,notice  /var/adm/rsync.log


When you set "log file" in rsyncd.conf, syslog is completely bypassed so
there's no need to put a line in syslog.conf.


> The only thing that appears in this log is:
>==>tail -f /var/adm/rsync.log
>2001/06/14 14:49:57 [30764] rsyncd version 2.4.6 starting
>2001/06/14 16:08:44 [29374] rsyncd version 2.4.6 starting

There's nothing else because you're not connecting to the daemon.


> 3) Wouldn't a search engine for the mailing list archives be a valuable
> addition?   Especilly for newbies like myself?

I've wished for that too (and I'm no rsync newbie :-)).

- Dave Dykstra









Re: Multiple questions (rsync hangs, logging config, etc.)

2001-06-15 Thread Dave Dykstra

On Thu, Jun 14, 2001 at 05:26:29PM -0400, [EMAIL PROTECTED] wrote:
> 
> I'm new to rsync and I'm trying to use rsync-2.4.6 to sync web content
> between 2 AIX (4.3.3.0) boxes (from SERVERA to SERVERB).
> 
> I've gone through the man pages for rsync and rsyncd.conf, searched the web
> site and browsed several months worth of the mailing list, but I still
> can't figure out which end is up.
> 
> I've had rsync working successfully on a small scale replicate some test
> directories (100+ files in 10 directories).
> 
> Now that I'm trying to run rsync to replicate 32000+ at once, I'm having
> several problems.
> 
> I initiate rsync with the following script from SERVERA:
>==> cat /opt/rysnc/sync.sh
>/opt/rsync/rsync --rsh=/usr/bin/rsh --rsync-path=/opt/rsync/rsync
>--delete --timeout=0 --progress --verbose
>--exclude-from=/opt/rsync/exclude.dat --delete-excluded --recursive
>--links --hard-links --perms --owner --group --times /www/www.xyz.com/
>SERVERB:/www/www.xyz.com
>==>


If you use a single colon for "SERVERB:", you are using the default rsh
mode and not the daemon mode.  Can you rsh as root from SERVERA to
SERVERB?  To talk to the daemon, you use "SERVERB::".  If you can use rsh,
I think it would probably be better to do that and just forget about the
daemon.



> My /opt/rsync/exclude.dat file is as follows:
>==>cat exclude.dat
>- /logs/
>- /logs/*
>==>
> 
> 1)  Running rsync as root, rsync appears to hang, as follows.
>==>./sync.sh
>building file list ... done
>^C
>==>
> 
> Sometimes the rsync ends with an error message (but I haven't found any
> reference to all of the various error codes and what they mean. Can someone
> point me in the right direction?)

There are known problems with verbose mode causing hanging in rsync 2.4.6;
try it without to see if that helps.  I'm not familiar with AIX; perhaps
there's an additional problem with rsync on that operating system.  Rsync
does tend to drive TCP very hard and has revealed bugs in several vendors'
implementations.



> 2) How do I configure logging correctly?
>
> I initiate rsync as a daemon on SERVERB as follows:
>==> /opt/rsync/rsync --daemon
> 
> I have the rsyncd.conf on SERVERB as follows:
>==>cat /etc/rsyncd.conf
># /etc/rsyncd.conf
>log file = /var/adm/rsync.log
>use chroot = no
>max connections = 1
>pid file = /etc/rsync.pid
>transfer logging = true
>[www]
>path = /www
>comment = WWW Content
>strict modes = true
>root@SERVERB:/
>==>

If you do intend to write to the rsync daemon, you will at least need to add
uid = root
gid = root
read only = no



> My /etc/syslog.conf contains the following line:
>daemon.debug,info,notice  /var/adm/rsync.log


When you set "log file" in rsyncd.conf, syslog is completely bypassed so
there's no need to put a line in syslog.conf.


> The only thing that appears in this log is:
>==>tail -f /var/adm/rsync.log
>2001/06/14 14:49:57 [30764] rsyncd version 2.4.6 starting
>2001/06/14 16:08:44 [29374] rsyncd version 2.4.6 starting

There's nothing else because you're not connecting to the daemon.


> 3) Wouldn't a search engine for the mailing list archives be a valuable
> addition?   Especilly for newbies like myself?

I've wished for that too (and I'm no rsync newbie :-)).

- Dave Dykstra




Multiple questions (rsync hangs, logging config, etc.)

2001-06-14 Thread pbellamy


I'm new to rsync and I'm trying to use rsync-2.4.6 to sync web content
between 2 AIX (4.3.3.0) boxes (from SERVERA to SERVERB).

I've gone through the man pages for rsync and rsyncd.conf, searched the web
site and browsed several months worth of the mailing list, but I still
can't figure out which end is up.

I've had rsync working successfully on a small scale replicate some test
directories (100+ files in 10 directories).

Now that I'm trying to run rsync to replicate 32000+ at once, I'm having
several problems.

I initiate rsync with the following script from SERVERA:
   ==> cat /opt/rysnc/sync.sh
   /opt/rsync/rsync --rsh=/usr/bin/rsh --rsync-path=/opt/rsync/rsync
   --delete --timeout=0 --progress --verbose
   --exclude-from=/opt/rsync/exclude.dat --delete-excluded --recursive
   --links --hard-links --perms --owner --group --times /www/www.xyz.com/
   SERVERB:/www/www.xyz.com
   ==>

My /opt/rsync/exclude.dat file is as follows:
   ==>cat exclude.dat
   - /logs/
   - /logs/*
   ==>

1)  Running rsync as root, rsync appears to hang, as follows.
   ==>./sync.sh
   building file list ... done
   ^C
   ==>

Sometimes the rsync ends with an error message (but I haven't found any
reference to all of the various error codes and what they mean. Can someone
point me in the right direction?)

2) How do I configure logging correctly?

I initiate rsync as a daemon on SERVERB as follows:
   ==> /opt/rsync/rsync --daemon

I have the rsyncd.conf on SERVERB as follows:
   ==>cat /etc/rsyncd.conf
   # /etc/rsyncd.conf
   log file = /var/adm/rsync.log
   use chroot = no
   max connections = 1
   pid file = /etc/rsync.pid
   transfer logging = true
   [www]
   path = /www
   comment = WWW Content
   strict modes = true
   root@SERVERB:/
   ==>

My /etc/syslog.conf contains the following line:
   daemon.debug,info,notice  /var/adm/rsync.log

The only thing that appears in this log is:
   ==>tail -f /var/adm/rsync.log
   2001/06/14 14:49:57 [30764] rsyncd version 2.4.6 starting
   2001/06/14 16:08:44 [29374] rsyncd version 2.4.6 starting

3) Wouldn't a search engine for the mailing list archives be a valuable
addition?   Especilly for newbies like myself?


Thanks in advance,

Peter Bellamy
UNIX Systems Administrator
The Chubb Group of Insurance Companies





Re: Simple config question

2000-10-30 Thread Whit

On Mon, Oct 30, 2000 at 09:03:31PM -0500, Paul D. Smith wrote:

> Just a directory named /progs (/proc, /dev, /mnt).  Man page sez:

>o  if the pattern ends with a  /  then  it  will  only
>   match a directory, not a file, link or device.

Yeah, that's what it says. This is a great utility, and maybe it only
doesn't work that way because I'm using it with ssh? See my earlier messages
about how this does not work as the man page says it does. This is obviously
a ymmv issue, and my gas tank has a leak. Still hoping someone has a
workaround, or is trying to fix this.

 \/\/ I-I I T 
 Blauvelt
 [EMAIL PROTECTED]




Re: Simple config question

2000-10-30 Thread Paul D. Smith

%% [EMAIL PROTECTED] writes:

  j> rsync -ca --delete --exclude "/proc/" --exclude "/dev/" --exclude
  j> "/mnt/"  --exclude "/progs/" [EMAIL PROTECTED]::gates /data/gates

  j> To clarify, would the above example exclude /progs and also
  j> /data/progs/ or just the /progs directory from the root?  Thanks!

Just a directory named /progs (/proc, /dev, /mnt).  Man page sez:

   o  if the pattern starts with a / then it  is  matched
  against  the start of the filename, otherwise it is
  matched against the  end  of  the  filename.   Thus
  "/foo"  would match a file called "foo" at the base
  of the tree.  On the other hand, "foo" would  match
  any  file called "foo" anywhere in the tree [...]

   o  if the pattern ends with a  /  then  it  will  only
  match a directory, not a file, link or device.

HTH!

-- 
---
 Paul D. Smith <[EMAIL PROTECTED]>HASMAT--HA Software Methods & Tools
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist
---
   These are my opinions---Nortel Networks takes no responsibility for them.




Simple config question

2000-10-30 Thread john

Having a bit of trouble understanding the "exclude" option for the rsyncd 
daemon
Does my example below exclude the /proc /dev /mnt and /progs from the root 
directory "/"
or would it also exclude a directory of the same name if it is within the 
tree I want to back up?

rsync -ca --delete --exclude "/proc/" --exclude "/dev/" --exclude 
"/mnt/"  --exclude "/progs/" [EMAIL PROTECTED]::gates /data/gates

To clarify, would the above example exclude /progsand also/data/progs/
or just the /progs directory from the root?
Thanks!

-- John