I would like to use rsync-over-ssh to pull backups from many remote traget machines to a central backup.
I could do this as the root user, but that would allow me to accidentally run a bad rsync command which wrote to, or deleted from, a machine which should be being backed-up.
Is there anyway of putting a read-only-root user on the target machines?
The rsync command needs to be able to read any files on the target machines, but must not be able to write.
rsyncd
as a daemon on each remote (see man rsync), where you can configure which files can be accessed, and if for read or write. However, it does not use ssh so dont use it on a public network.