sudo / --link-dest combination problem.
Hi, using the attached script to implement an incremental rotating backup of my home directory works fine if I run it myself, however if it is run as root the -- link-dest fails and all files are recreated rather than linked to. Can someone explain the problem to me? I'm using rsync version 2.6.5 on Darwin Kernel Version 8.1.0 (OS X Tiger) Thanks, Simon. === rm -rf /Volumes/Rotating backup/simonallfrey.6 mv -f /Volumes/Rotating backup/simonallfrey.5 /Volumes/Rotating backup/simonallfrey.6 mv -f /Volumes/Rotating backup/simonallfrey.4 /Volumes/Rotating backup/simonallfrey.5 mv -f /Volumes/Rotating backup/simonallfrey.3 /Volumes/Rotating backup/simonallfrey.4 mv -f /Volumes/Rotating backup/simonallfrey.2 /Volumes/Rotating backup/simonallfrey.3 mv -f /Volumes/Rotating backup/simonallfrey.1 /Volumes/Rotating backup/simonallfrey.2 mv -f /Volumes/Rotating backup/simonallfrey.0 /Volumes/Rotating backup/simonallfrey.1 /usr/local/bin/rsync -a --eahfs --link-dest=/Volumes/Rotating backup/ simonallfrey.1 /Users/simonallfrey /Volumes/Rotating backup/ simonallfrey.0/ === -- 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 error: some files could not be transferred -- How to ignore
Thanks Wayne.. Your mail answered my query perfectly.. -sanal On Thu, Jun 16, 2005 at 08:49:54PM +0530, [EMAIL PROTECTED] wrote: Is there any way to ignore these errors when i do file transfer using rsync? What do you mean by ignore? They're just warnings, so rsync ignores them already for most things, just not deletions that happen after the warnings (such as --delete-after), but see the --ignore option to handle that. If you mean that your script halts, you can code a script to ignore only specific return codes (namely code 23). One would need to know what shell you're using to help with that. ..wayne.. Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. -- 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: sudo / --link-dest combination problem.
On Fri, Jun 17, 2005 at 12:32:06AM -0700, simon allfrey wrote: works fine if I run it myself, however if it is run as root the -- link-dest fails and all files are recreated rather than linked to. For files to be hard-linked together, they must be exactly the same in all preserved attributes. If you previously ran the script as a normal user, some files were probably created with either the wrong user or the wrong group from the originals (compared with what would be produced by a run as root). I would assume that this would solve itself going forward because the root-run files would match other root-run files. ..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
CVS update: rsync/support
Date: Fri Jun 17 16:12:05 2005 Author: wayned Update of /data/cvs/rsync/support In directory dp.samba.org:/tmp/cvs-serv8247 Modified Files: cull_options Log Message: Improved some of the comments that are output into the perl code. Revisions: cull_options1.2 = 1.3 http://www.samba.org/cgi-bin/cvsweb/rsync/support/cull_options?r1=1.2r2=1.3 ___ rsync-cvs mailing list rsync-cvs@lists.samba.org https://lists.samba.org/mailman/listinfo/rsync-cvs
CVS update: rsync/support
Date: Fri Jun 17 16:29:21 2005 Author: wayned Update of /data/cvs/rsync/support In directory dp.samba.org:/tmp/cvs-serv16712 Modified Files: cull_options Log Message: Another readability improvement in the perl code we output. Revisions: cull_options1.3 = 1.4 http://www.samba.org/cgi-bin/cvsweb/rsync/support/cull_options?r1=1.3r2=1.4 ___ rsync-cvs mailing list rsync-cvs@lists.samba.org https://lists.samba.org/mailman/listinfo/rsync-cvs
CVS update: rsync/support
Date: Fri Jun 17 16:48:02 2005 Author: wayned Update of /data/cvs/rsync/support In directory dp.samba.org:/tmp/cvs-serv26570 Modified Files: rrsync Log Message: - Improved some comments (some taken from the new cull-options output). - Made the user-config sections easier to find. - Default to running a fully-specified rsync executable so that there are not PATH surprises. - A few minor tweaks to the arg-checking code to make it clearer without actually changing its logic. Revisions: rrsync 1.8 = 1.9 http://www.samba.org/cgi-bin/cvsweb/rsync/support/rrsync?r1=1.8r2=1.9 ___ rsync-cvs mailing list rsync-cvs@lists.samba.org https://lists.samba.org/mailman/listinfo/rsync-cvs
CVS update: rsync/support
Date: Fri Jun 17 23:16:22 2005 Author: wayned Update of /data/cvs/rsync/support In directory dp.samba.org:/tmp/cvs-serv21139 Modified Files: cull_options Log Message: - Fixed a bug where the --*-dest options weren't being culled. - Simplified the output format by putting all the long-name options into a single hash. Revisions: cull_options1.4 = 1.5 http://www.samba.org/cgi-bin/cvsweb/rsync/support/cull_options?r1=1.4r2=1.5 ___ rsync-cvs mailing list rsync-cvs@lists.samba.org https://lists.samba.org/mailman/listinfo/rsync-cvs
CVS update: rsync/support
Date: Fri Jun 17 23:23:00 2005 Author: wayned Update of /data/cvs/rsync/support In directory dp.samba.org:/tmp/cvs-serv26196 Modified Files: rrsync Log Message: Changed the code to use the single long-option hash from cull_options. Revisions: rrsync 1.9 = 1.10 http://www.samba.org/cgi-bin/cvsweb/rsync/support/rrsync?r1=1.9r2=1.10 ___ rsync-cvs mailing list rsync-cvs@lists.samba.org https://lists.samba.org/mailman/listinfo/rsync-cvs