@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" |
| ssh_connection_user="root" |
| ssh_host_name="recalbox" |
| |
| 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 ![:) 🙂](https://forum.recalbox.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=qq7v1sdgudo)
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?