cron, rsync and permissions

2008-04-17 Thread GianLuca Sarto

Hello,

I am at my first attempts with scripting, cron, and rsync, so please 
bear with me...


The scope is to backup two servers from a dedicated backup pc, with the 
following script:


mv *.log archive
rsync --log-file=oracle.log -av -e ssh -i .ssh/rsync-key 
[EMAIL PROTECTED]:/home/gian/exp* oracle/
rsync --log-file=vib_home.log -av --delete --exclude=.*/ -e ssh -i 
.ssh/rsync-key [EMAIL PROTECTED]:/home/ vib_home/
rsync --log-file=vib_office.log -av --delete -e ssh -i .ssh/rsync-key 
[EMAIL PROTECTED]:/office/ vib_office/


This script works fine from the command line, but the last two lines 
hang with permissions errors when executed as cron job.

The cron job is in my user table.

First backup from server oracle works fine, because the two files copied 
are in my home directory, so no permission issues.


The second backup hangs with this error:

2008/04/17 02:00:28 [6161] receiving file list
2008/04/17 02:00:28 [6161] rsync: opendir /home/gabri/Maildir failed: 
Permission denied (13)
2008/04/17 02:00:28 [6161] rsync: opendir /home/enzo/Maildir failed: 
Permission denied (13)
2008/04/17 02:00:28 [6161] rsync: opendir /home/enzo/Mail failed: 
Permission denied (13)
2008/04/17 02:00:28 [6161] rsync: opendir /home/francesco/Maildir 
failed: Permission denied (13)
2008/04/17 02:00:28 [6161] rsync: opendir /home/deborah/Maildir 
failed: Permission denied (13)
2008/04/17 02:00:28 [6161] rsync: opendir /home/deborah/mail failed: 
Permission denied (13)
2008/04/17 02:00:28 [6161] rsync: opendir /home/lost+found failed: 
Permission denied (13)
2008/04/17 02:00:28 [6161] rsync: opendir /home/william/Maildir 
failed: Permission denied (13)
2008/04/17 02:00:28 [6161] rsync: opendir /home/faxmaster/Maildir 
failed: Permission denied (13)
2008/04/17 02:00:28 [6161] rsync error: errors with program diagnostics 
(code 13) at log.c(230) [receiver=2.6.9]


I do not have read permissions for the folders above, but I can read all 
the rest.

Why rsync aborts?

The third backup reports this:

2008/04/17 02:00:33 [6163] receiving file list
2008/04/17 02:00:33 [6163] rsync: opendir /office/lost+found failed: 
Permission denied (13)
2008/04/17 02:00:33 [6163] rsync error: errors with program diagnostics 
(code 13) at log.c(230) [receiver=2.6.9]


The same here.
I have read permissions for all folders excepting for lost+found.
Why rsync gives up on the first error?

As I said, launching ./backup.sh from command line the script warns 
about permission errors, but goes on.


Thanks for your time,
cheers,
-Gian





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


expand file_list pointer array

2008-04-17 Thread Gav....
G'Day,

rsync 3.0 to 3.2 is giving us trouble, keeps failing at certain points,
latest error is :-

expand file_list pointer array to 262144 bytes, did move

I see this code is in flist.c, but why are we getting this and how to avoid
it ? we are syncing from svn.

Cheers

Gav...

-- 
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: expand file_list pointer array

2008-04-17 Thread Wayne Davison
On Thu, Apr 17, 2008 at 09:42:03PM +0800, Gav wrote:
 expand file_list pointer array to 262144 bytes, did move
 I see this code is in flist.c, but why are we getting this
 and how to avoid it ?

That's not an error, that's an informational message.  If you don't like
it, don't use such a high level of verbosity.  You might also make sure
that rsync is using its incremental recursion algorithm (e.g. make sure
both sides of the connection use rsync 3.x).

..wayne..
-- 
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 5401] New: getpassf() should honor strict modes

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

   Summary: getpassf() should honor strict modes
   Product: rsync
   Version: 3.0.3
  Platform: All
OS/Version: OS/2
Status: NEW
  Severity: enhancement
  Priority: P3
 Component: core
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
 QAContact: [EMAIL PROTECTED]


Porting to platforms without true stat() support would be simpler if getpassf()
(authentic.c) honored the strict modes option.  The code would be similar to
the existing code in get_secret().


-- 
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.
-- 
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 5401] getpassf() should honor strict modes

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


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |ASSIGNED




--- Comment #1 from [EMAIL PROTECTED]  2008-04-17 12:48 CST ---
The strict-modes setting is a daemon setting.  The getpassf() function is a
client function, so the two are not related.

It might be nice to have a way to make the client strict -- perhaps a configure
option.


-- 
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.
-- 
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 5401] getpassf() should honor strict modes

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





--- Comment #2 from [EMAIL PROTECTED]  2008-04-17 13:12 CST ---
Oops, I forgot to consider that this was a client side issue.

A configure option would be handy.  For now, we will just patch it out with an
#ifdef.

In case you would like to add the OS/2 port to your list of available binaries,
it can be found at

  http://www.smedley.info/os2ports/index.php?page=rsync


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


Rsync Error Code 23

2008-04-17 Thread Kenneth Seal

Hi,

Is it possible to log rsync error messages and read them in console  
(Mac OS 10.5 Utility), or perhaps a text file? I have tried running my  
script in verbose mode -vv but I really don't want to read all 1000+  
lines of output to look for the error code.


Currently my script looks something like this:

rsync -aE --delete --progress ~/(Entire Home Directory) /Volumes/(My  
backup drive)


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