rsync -f ?

tim.conway at philips.com tim.conway at philips.com
Tue Mar 19 01:52:33 EST 2002


I set up a case where a user has write permission on the directory, but 
nothing on the contents, and gotten the sync done.  It complains about 
what it can't do, like mods to the directory, but it gets it done.  Please 
give an example of something you can du as the user you're running rsync 
as that you can't do with rsync.

Tools at atlas
/users/tconway/test>find . -ls
3849647    4 drwxr-xr-x  4 tconway  Vlsieng      4096 Jan 25 10:05 .
14728580    4 drwxrwxrwx  2 tconway  Vlsieng      4096 Mar 18 07:45 ./dest
1120224    0 -rwx------  1 tconway  Vlsieng        31 Mar 18 07:45 
./dest/file
14728579    4 drwxr-xr-x  2 tconway  Vlsieng      4096 Mar 18 07:43 ./src
28096    0 -rwxr-xr-x  1 tconway  Vlsieng        29 Mar 18 07:43 
./src/file
Tools at atlas
/users/tconway/test>diff dest/file src/file 
diff: dest/file: Permission denied
Tools at atlas
/users/tconway/test>rsync -a src/. dest
failed to set permissions on . : Not owner
failed to set permissions on . : Not owner
rsync error: partial transfer (code 23) at main.c(537)
Tools at atlas
/users/tconway/test>find . -ls
3849647    4 drwxr-xr-x  4 tconway  Vlsieng      4096 Jan 25 10:05 .
14728580    4 drwxrwxrwx  2 tconway  Vlsieng      4096 Mar 18 07:46 ./dest
1120225    0 -rwxr-xr-x  1 Tools    Tools          29 Mar 18 07:43 
./dest/file
14728579    4 drwxr-xr-x  2 tconway  Vlsieng      4096 Mar 18 07:43 ./src
28096    0 -rwxr-xr-x  1 tconway  Vlsieng        29 Mar 18 07:43 
./src/file
Tools at atlas
/users/tconway/test>

Tim Conway
tim.conway at philips.com
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(nnnnnnnnnnnn, 
19061,29556,8289,28271,29800,25970,8304,25970,27680,26721,25451,25970), 
".\n" '
"There are some who call me.... Tim?"




"Mahling, Andreas" <andreas.mahling at kvberlin.de>
Sent by: rsync-admin at lists.samba.org
03/18/2002 02:19 AM

 
        To:     "'rsync at lists.samba.org'" <rsync at lists.samba.org>
        cc:     (bcc: Tim Conway/LMT/SC/PHILIPS)
        Subject:        rsync -f ?
        Classification: 



hello,

I'm new with rsync (shame on me ignoring this great tool for many years!)
For the following question I could not get an answer from the docs:

Is it possible to run rsync in a force mode like `cp -f´ for overwriting
files without write permission? I need this for a local rsync. 
What I'm actually doing is to run 
`find . -type f -perm u-w -exec chmod u+w {} \;´
on the destination directory before rsync. This works but I'm loosing the
original permissions.
The rsync run has its source on a local Linux filesystem and the 
destination
on a Netware filesystem, which is ncp-mounted, so I am always the owner of
the files (from the Linux view). 

Thanks in advance for any help,

Andreas Mahling
Kassenaerztliche Vereinigung Berlin 

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







More information about the rsync mailing list