destination directory problems

Robert Wideman rwideman13 at yahoo.com
Mon Jul 11 02:50:34 GMT 2005


Ok, I get a new error.

$ rsync -avz /cygdrive/d/asm
robert at 192.168.1.102::backup/
Password:
building file list ... done
rsync: push_dir#1 "/" (in backup) failed: Permission
denied (13)
rsync error: errors selecting input/output files, dirs
(code 3) at main.c(406)
rsync: connection unexpectedly closed (4 bytes
received so far) [sender]
rsync error: error in rsync protocol data stream (code
12) at /home/lapo/packaging/tmp/rsync-2.6.3/io.c(359)

I have made the following changes before getting this.
chmod 644 /backup
chown root.root /backup
chmod 644 /etc/rsyncpasswd
chown root.root /etc/rsyncpasswd

/etc/rsyncpasswd has:
robert:password

/etc/rsyncd.conf has:
log file = /var/log/rsync.log
[backup]
        path            = /backup
        comment         = Backup
        list            = yes
        read only       = no
        auth users      = robert
        secrets file    = /etc/rsyncpasswd
        hosts allow     = 192.168.1.100
        uid             = 1000
        gid             = 1000

Any thoughts welcome.
Thanks
Robert

PS...are these error codes not documented?

--- Tony at ServaCorp.com wrote:

> I think what you are doing runs rsync on the remote
> server as user robert
> which has the home directory of /home/robert/
> 
> Second case is trying to logon to rsync itself and
> fails.
> contents of /etc/rsyncpasswd  are what?
> (or if it is world readable rsync doesn't like it)
> 
> /etc/rsyncpasswd	needs to be rw by root ONLY
> robert:password
> 
> rsync -avz /cygdrive/d/asm
> robert at 192.168.1.102::backup/
> 
> should then put asm into /backup/asm
> 
> Depending on who on the Debian system should have
> access to or be able to
> write
> to the backups, you might want uid = and gid = lines
> in /etc/rsyncd.conf
> 
> 
> -----Original Message-----
> From:
> rsync-bounces+tony=servacorp.com at lists.samba.org
>
[mailto:rsync-bounces+tony=servacorp.com at lists.samba.org]On
> Behalf Of
> Robert Wideman
> Sent: Sunday, July 10, 2005 5:32 PM
> To: rsync at lists.samba.org
> Subject: destination directory problems
> 
> 
> I am having a problem getting my files backed up to
> the location I want
> to from a WinXP client going to a Debian rsync
> server.
> The following is sending asm/ to /home/robert/backup
> folder.
> rsync -avz /cygdrive/d/asm
> robert at 192.168.1.102:backup/
> 
> My understanding of the rsync man page is that this
> is
> supposed to send
> asm/ to what the path that is defined in
> rsyncd.conf,
> mine is defined
> as /backup.
> 
> I have tried it another way with failed attempts and
> I
> get the following error:
> rsync -avz /cygdrive/d/asm 192.168.1.102::backup/
> Password:
> @ERROR: auth failed on module backup
> rsync: connection unexpectedly closed (0 bytes
> received so far) [sender]
> rsync error: error in rsync protocol data stream
> (code
> 12) at
> /home/lapo/packaging/tmp/rsync-2.6.3/io.c(359)
> 
> How do I make the asm/ folder go to 192.168.1.102's
> /backup and
> not /home/robert/backup?
> 
> Here is my configurataion:
> rsyncd.conf:
> log file = /var/log/rsync.log
> [backup]
>         path            = /backup
>         comment         = Backup
>         list            = yes
>         read only       = no
>         auth users      = robert
>         secrets file    = /etc/rsyncpasswd
>         hosts allow     = 192.168.1.100
> 
> rsync versions:
> WinXP SP2: 2.6.3 (cygwin environment)
> Debian 3.1: 2.6.5
> 
> Thanks
> Robert
> 
> 
> 
> ____________________________________________________
> Sell on Yahoo! Auctions – no fees. Bid on great
> items.
> http://auctions.yahoo.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
> 
> 



		
____________________________________________________
Sell on Yahoo! Auctions – no fees. Bid on great items.  
http://auctions.yahoo.com/


More information about the rsync mailing list