[OpenAFS] How to synchronize Linux EXT3 disk with AFS disk?

Paul Johnson pauljohn32@gmail.com
Sat, 27 May 2006 23:32:09 -0500


We use AFS to store backups of locally stored files on Linux systems.
I've been trying to automate this by scripting with rsync or showing
the users how to use unison.  However, there is some trouble because
the files on the AFS system appear to be owned by a user "sync" and so
rsync thinks that every file has the wrong permissions.  Suppose X is
the local hard disk and Y is the AFS mounted share. Even if all files
are the same, the "rsync -ra X Y" command thinks that every file needs
updating because the permissions aren't correct.  Further, when rsync
runs, the terminal fills up with errors

$ rsync -e ssh -r ~/.Config_Backups/GNUstep
/afs/ku.edu/usr/pols/pauljohn/LabNotes
rsync error: received SIGUSR1 or SIGINT (code 20) at rsync.c(179)
rsync: writefd_unbuffered failed to write 69 bytes: phase "unknown"
[generator]: Broken pipe (32)
rsync error: error in rsync protocol data stream (code 12) at io.c(1099)
[pauljohn@pols15 ~]$ rsync -e ssh -ra ~/.Config_Backups/GNUstep
/afs/ku.edu/usr/pols/pauljohn/LabNotes




--=20
Paul E. Johnson
Professor, Political Science
1541 Lilac Lane, Room 504
University of Kansas