ReaR - loss of ownership during non-root user@host transport to ReaR server
Issue
- When /etc/rear/local.conf is configured to use RSYNC, with the suggested user@host syntax, the files and directories written to the storage ReaR server will all be owned by the non-root "rear" user, rather than the original owner.
- How do we ensure that UID:GID and ACLs are preserved when using "user@host" with RSYNC?
- Backup result
# cd /pkgs/rear_storage/srv/backup/etc
# ls -l
total 1796
drwxr-xr-x. 3 rear rear 96 Oct 9 18:26 abrt
drwxr-xr-x. 4 rear rear 35 Oct 9 18:27 acpi
-rw-r--r--. 1 rear rear 44 Jan 4 10:03 adjtime
-rw-r--r--. 1 rear rear 1512 Jan 12 2010 aliases
-rw-r--r--. 1 rear rear 12288 Oct 9 18:45 aliases.db
drwxr-xr-x. 2 rear rear 26 Oct 9 18:28 alsa
drwxr-xr-x. 2 rear rear 4096 Jan 4 10:01 alternatives
-rw-------. 1 rear rear 541 Jul 22 2016 anacrontab
-rw-r--r--. 1 rear rear 148 Jan 12 2016 asound.conf
-rw-r--r--. 1 rear rear 1 Oct 18 2016 at.deny
drwxr-x---. 3 rear rear 43 Oct 9 18:25 audisp
---
---
- After restoring from this backup the system will fail to boot.
Environment
- Red Hat Enterprise Linux 6
- Rear
- ext3/ext4
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.