Simple question, does your rsync encrypt when backing-up?
This should be an easy question.
If you read the man pages of rsync
It says
Typically, rsync is configured to use ssh by
default, but you may prefer to use rsh on a local network.
As an ease of work flow, I suggest to specify ssh using the -e argument. There are those that say its not modern.
Though, being clear is nice don’t you agree?
I recommend to be solid safe, simply use the -e option and specify ssh.
Easy solution, right?
So my rsync statement usually appears as so:
sshpass -p '{password}' rsync -avzhP --progress -e 'ssh -p 22 ' '{tmp_data_filename_gz}' {username}@{server_ip}:'{data_remote_location}/{backup_filename}'
As a bonus, the sshpass statement is a safe way to enter password to rsync when sending data safely.
Happy Coding!