On 08 Apr 2025, at 10:28, Graham Leggett via rsync <rsync@lists.samba.org> 
wrote:

> Unfortunately all combinations of --fake-super that I have used so far have 
> had the effect of backing up the backup, not restoring the backup.

Looking in the source code, it looks like the difference between rsync 
performing a --fake-super backup, or rsync performing a --fake-super restore, 
is whether the rsync binary is running as root or not.

https://github.com/RsyncProject/rsync/blob/9994933c8ccf7ead27c81fe4ce2eb4e08af20c7f/syscall.c#L119

This sort of makes sense when systems are working, but breaks down in a 
disaster recovery situation where a rescue disk is involved, and you're always 
root. In this case rsync is only able to backup, not restore.

My next step is to try set up some users on the rescue environment and try fake 
a real system, and see if I can get this to work.

Regards,
Graham
--

-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to