https://www.reddit.com/r/RetroPie/comments/82s737/howto_sync_savegames_and_savestates_via_dropbox/
Continue with what you have to #4 in these instructions.
In this line of code:
# get parameters
direction="$1"
system="$2"
rom="$3"
I changed it to:
# get parameters
direction="$1"
system=""
rom="$3"
Too many folders are created with the first option.
Also, be sure to make the necessary location changes in these:
# path to RCLONE
rclonePath="/home/pi/rclone-v1.39-linux-arm/rclone"
# local base directory for your saves
localPath="/home/pi/RetroPie/saves"
# remote directory for your saves, has to be configured via "rclone config" first
remotePath="dropbox:RetroArch"
One thing to mention, if for some reason your Retropie is offline, your system will freeze and you will need to power it off.