change UID+GID on target system?
bernhard.voelker at siemens-enterprise.com
Tue Jun 19 07:50:00 MDT 2012
Uwe Brauer wrote (June 19, 2012 2:46 PM):
> >> On Tue, 19 Jun 2012 08:18:23 +0000, "Voelker, Bernhard"
> >> <bernhard.voelker at siemens-enterprise.com> wrote:
> > Uwe Brauer wrote (June 18, 2012 6:21 PM)
> >> rsync -avx /path/to/src oub at localhost:/path/to/usb/dest
> >> Because otherwise the system does not recognise the passwd
> >> of u1002
> > I don't understand. You said your user "oub" has id
> > 1000 on the source laptop, and id 1002 on the
> > destination laptop. The idea therefore was to have a
> > second user with id 1002 on the source laptop - I named
> > it u1002, and use rsync via ssh to the localhost to get
> > the files on the USB drive/stick with id 1002.
> Oh I see misunderstanding then. So what you propose is
> basically a chown of the directory in question?
> I tried the following
> Laptop1 to disk: disk is mounted with uid=1000
> rysnc -auvzx /home/oub/dir /media/disk/oub (id=1000)
that will copy all files with id=1000 - that's not what
I suggested. I wrote the way to copy the files with id=1002
onto the USB disk by ssh-ing into localhost with a user which
has id 1002.
BTW: Why do you need it on the USB drive? I.e. why don't you
directly rsync from Laptop1 to Laptop2?
More information about the rsync