e.g. /home on the DC contains:
drwxr-xr-x 3 root root 4096 Apr 22 22:19 guests
drwx------ 2 root root 16384 Feb 15 01:24 lost+found
drwxrwxrwt 4 root root 4096 Apr 22 22:37 profiles
drwxr-xr-x 3 root root 4096 Apr 20 22:58 shared
drwxr-xr-x 58 steve users 4096 May 27 08:19 steve
drwxr-xr-x 7 root root 4096 May 15 17:20 users
We want to sync it across to a new fileserver
/etc/rsyncd.conf
[sfolder]
uid = root
gid = root
read only = no
path = /home
Then restart rsyncd
systemctl start rsyncd
open rsync and ssh on firewall
to get e.g. the shared folder over to the /home folder on the new file server:
sudo rsync -AXauzv hh16::sfolder/shared .
This preserves the extended attributes and acl's.
This preserves the extended attributes and acl's.