Hello! I've been trying to do backups with rsync. I want to do the backup into a NAS (LG Network Storage N2B1/N2R1). I start mounting the NAS in my Ubuntu Server 10.04 via cifs, and the /home from my Ubuntu's machines via nfs. This script executes in the server's crontab, with root permissions. My rsync script is like: rsync $OPTIONS $QUE $DONDE/$INCREMENTDIR where: OPTIONS="--force --ignore-errors --delete --delete-excluded --exclude-from=$EXCLUDES --backup --backup-dir=$DONDE -vrbpoglDLH" EXCLUDES=/etc/backup.conf (*.iso .*) QUE=/home/user/mnt/client/ DONDE=/home/user/mnt/NAS/ INCREMENTDIR=`date +%Y-%m` I'm having troubles with the permissions of some files. rsync: send_files failed to open "/home/txerif/mnt/lexinder-fg/Escritorio/rsyncprueba/Escritorio/LGNASAppLinux": <u>Permission denied (13)</u> ... rsync: opendir "/home/txerif/mnt/lexinder-fg/Escritorio/rsyncprueba/Escritorio/rsyncprueba/Descargas" failed: <u>Permission denied (13)</u> ... rsync error: some files/attrs were not transferred (see previous errors) <u>(code 23)</u> at main.c(1060) [sender=3.0.7] I've tried everything that I found in Google, like changing the name of the troubled files, giving them more permissions, adding/removing some rsync options... We would be very thankful if somebody could throw some light at this. Thank you in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.samba.org/pipermail/rsync/attachments/20110415/6d63f12f/attachment.html>
On Fri, 15 Apr 2011, Juan Pablo Segundo wrote:> Hello! > > I've been trying to do backups with rsync. I want to do the backup into a > NAS (LG Network Storage N2B1/N2R1). I start mounting the NAS in my Ubuntu > Server 10.04 via cifs, and the /home from my Ubuntu's machines via nfs. This > script executes in the server's crontab, with root permissions. >You would be a lot better off installing an unlocked kernel and running nfs, and you also get ssh access to see what's going on in the box. Lee
On Fri, 2011-04-15 12:17:22 +0200, Juan Pablo Segundo <lexinder at gmail.com> wrote:> I've been trying to do backups with rsync. I want to do the backup into a > NAS (LG Network Storage N2B1/N2R1). I start mounting the NAS in my Ubuntu > Server 10.04 via cifs, and the /home from my Ubuntu's machines via nfs. This > script executes in the server's crontab, with root permissions.[...]> I'm having troubles with the permissions of some files. > > rsync: send_files failed to open > "/home/txerif/mnt/lexinder-fg/Escritorio/rsyncprueba/Escritorio/LGNASAppLinux": > <u>Permission denied (13)</u> > ... > rsync: opendir > "/home/txerif/mnt/lexinder-fg/Escritorio/rsyncprueba/Escritorio/rsyncprueba/Descargas" > failed: <u>Permission denied (13)</u> > ... > rsync error: some files/attrs were not transferred (see previous errors) > <u>(code 23)</u> at main.c(1060) [sender=3.0.7] > > I've tried everything that I found in Google, like changing the name of the > troubled files, giving them more permissions, adding/removing some rsync > options...Does it have troubles with all files served via NFS? Traditionally, the No File Security^W^W^WNetwork File System's server reject access by UID=0 (= root) from a client. (It may explicitely be allowed by something oftenly called "no_root_squash".) Other than that, I guess you'll have so strace and tcpdump all involved parts to see where the actual error is generated. MfG, JBG -- Jan-Benedict Glaw jbglaw at lug-owl.de +49-172-7608481 Signature of: Zensur im Internet? Nein danke! the second : -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: <http://lists.samba.org/pipermail/rsync/attachments/20110415/089d6e5a/attachment.pgp>