Drive A is 2TB in a closet at home.Drive B is 2TB in my office at work.I'd like drive A to be the one I use regularly andto have rsync mirror A to B nightly/weekly.The problem I have with this is that multiple users havestuff on A.I have root run rsync -avz from A to $MYNAME:BRoot can certainly read everything on A, but doesn'thave permission to write non-$MYNAME stuff on B.How am I supposed to be doing this?  Should I have apasswordless private key on A that logs into root on B?That seem's super dangerous.Also, I'd prefer to use rsnapshot but it looks like they demand that I draw from B to A using the passwordless private key to root's account that I'm so frightened by.
How do I backup via rsync to a remote machine, preserving permissions and ownership?
ssh;permissions;backup;rsync;rsnapshot
If it is intended as a backup (I'm looking at the tag), not as a remote copy of working directory, you should consider using tools like dar or good old tar. If some important file gets deleted and you won't notice it, you will have no chance to recover it after the weekly sync.Second advantage is that using tar/dar will let you preserve ownership of the files.And the third one - you will save bandwidth because you can compress the content.