On 07/10/2020 06:13, Hans-Werner Kneitinger wrote:
> Am 06.10.20 um 18:54 schrieb Jim Jackson:
>> One thing I have added recently is --numeric-ids option as I found that
>> while I keep all user uids equal across my system, some of the system
>> ...
>> thought it should have mapped back - but ... who knows. The --numeric-ids
>> means I dont have to care how I put the files back.
>
> Can you explain this a little mor how to do, please?
For me it things went wrong when backing a Raspberry Pi with rsync to a
SD card image file on another machine, where the id's for users and
system processes were different.
For example on the Raspberry Pi you have user A with id 1001 and user B
with id 1002, but on the other machine users were created with ids 1004
and 1005. When rsync backs up it sees files with ids 1001 and 1002 owned
by A and B, and 'helpfully' writes then out with correct ids for users A
and B on that machine which are 1004 and 1005. The problem comes when
you take that backup image and put it back on the original Pi, as it
knows nothing about ids 1004 and 1005.
The solution is to use --numeric-ids argument to rsync, then when
backing up it will write the same ids as reads, in the case above 1002
and 1003, even those those ids corresponds to completely different users
on that machine. But now when you copy the backup image back to the Pi,
it has retained the correct ids.
---druck
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|