David Hausheer
2005-May-27 14:25 UTC
Preserving uid/gid on remote machine with non-root permission
Is there a way to backup files to a remote machine on which I don't have root permission, while preserving their uids/gids? I know that only the super-user can set the owner and group of a file, so what I am actually looking for is a tool that would store the actual uids/gids of all files that are backuped by rsync in a kind of meta-file. This file could then be used to restore the files with their original owner- and group membership. Thanks for your help. David -- +--------------------------------------------------------------------+ | Dipl. El.-Ing. ETH David Hausheer | | Computer Engineering and Networks Laboratory (TIK), ETH Zurich | |--------------------------------------------------------------------| | Postal Address: ETH-Zentrum, CH-8092 Zurich | |--------------------------------------------------------------------| | Phone: +41-44-632-7540 | Room: ETZ H83, Gloriastrasse 35 | | Fax: +41-44-632-1035 | E-Mail: mailto:hausheer@tik.ee.ethz.ch | | Mobile: +41-79-336-4076 | WWW: http://www.csg.ethz.ch/~hausheer/ | +--------------------------------------------------------------------+
Erik Jan Tromp
2005-May-27 14:52 UTC
Preserving uid/gid on remote machine with non-root permission
On Fri, 27 May 2005 16:22:52 +0200 David Hausheer <hausheer@tik.ee.ethz.ch> wrote:> Is there a way to backup files to a remote machine on which I don't have > root permission, while preserving their uids/gids? I know that only the > super-user can set the owner and group of a file, so what I am actually > looking for is a tool that would store the actual uids/gids of all files > that are backuped by rsync in a kind of meta-file. This file could then > be used to restore the files with their original owner- and group > membership.Depending on the degree of complexity you're willing to play with, 2 projects come immediately to mind (there may be others, dunno): http://freshmeat.net/projects/fakeroot/ http://freshmeat.net/projects/pretendroot/ Determining suitability is left as an exercise for the student. Erik -- "I really want a license to do just two things: make the code available to others, and make sure that improvements stay that way. That's really it. Nothing more, nothing less. Everything else is fluff." -- Linus Torvalds