@poppadum Yes it's working, my bash script is on:
/home/mentalo/Documents/Scripts/recalbox/backup_saves.sh
#!/bin/bash
ssh_key_abs_path="/home/mentalo/.ssh/"
ssh_key_file_name="id_ed25519" # be sure to generate private / public keys before to run the script
ssh_connection_user="root"
ssh_host_name="recalbox" # be sure to add in /etc/hosts the hostname "recalbox" with the IP (generally 192.168.X.XX)
src_recalbox_saves_dir="/recalbox/share/saves/"
dst_recalbox_saves_dir="/path/to/local/backups/directory/"
rsync -rltvh --modify-window=1 -e "ssh -i ${ssh_key_abs_path}${ssh_key_file_name}" ${ssh_connection_user}@${ssh_host_name}:${src_recalbox_saves_dir} ${dst_recalbox_saves_dir}
Small but super-efficient 🙂
Now I'm going to add a file to put variables, check directories before to run rsync, add the script in crontab, etc.
Maybe it could be added in the Recalbox documentation?