I have tried the rsync command from this post (with a different endpoint ofcourse):
sudo rsync -avH --delete-during --delete-excluded --exclude-from=/usr/bin/rsync-exclude.txt / /mnt/mac-share/rsync/
With the following exluded files:
/proc/* /sys/* /dev/* /boot/* /tmp/* /run/* /mnt/* .Trashes ._.Trashes .fseventsd .Spotlight-V100 .DS_Store .AppleDesktop .AppleDB Network Trash Folder Temporary Items .bash_history /etc/fake-hwclock.data /var/lib/rpimonitor/stat/
The result seems to be what I want, but during the process I can see that it tries to access files that are excluded like this one, which would mean an ever growing tree-structure, were it to succed:
rsync: symlink "/mnt/mac-share/rsync/usr/share/zoneinfo/posix/Europe/Copenhagen" -> "../../Europe/Copenhagen" failed: Operation not supported (95)
This is just one of many files it tries to access in an excluded folder (and in this case on an excluded mount under the endpoint of /mnt/mac-share/rsync/).
Is this normal behaviour for rsync, to access files in folders that are excluded, which seems like a waste of time, or can it be done better somehow?
EDIT: rsync comes up with this at the end:
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]