+1 for tar. I've also used the numeric gid/uid for transferring whole Linux systems between hardware with a live CD.
On Wed, Nov 17, 2010 at 11:51 AM, Jon Jensen <j...@endpoint.com> wrote: > On Tue, 16 Nov 2010, James Carroll wrote: > > > What is the right way to do this backup over ssh while preserving this > > user/group information? > > tar over ssh (or if on a secure local network, tar over nc is a little > faster). Something like this to push: > > tar cp . -C /source/path | ssh dest-server 'tar xp -C /dest/path' > > Or to pull: > > ssh source-server 'tar cp . -C /source/path' | tar xp -C /dest/path > > Jon > > -- > Jon Jensen > End Point Corporation > http://www.endpoint.com/ > -------------------- > BYU Unix Users Group > http://uug.byu.edu/ > > The opinions expressed in this message are the responsibility of their > author. They are not endorsed by BYU, the BYU CS Department or BYU-UUG. > ___________________________________________________________________ > List Info (unsubscribe here): http://uug.byu.edu/mailman/listinfo/uug-list >
-------------------- BYU Unix Users Group http://uug.byu.edu/ The opinions expressed in this message are the responsibility of their author. They are not endorsed by BYU, the BYU CS Department or BYU-UUG. ___________________________________________________________________ List Info (unsubscribe here): http://uug.byu.edu/mailman/listinfo/uug-list