I don't know about rclone, but you could backup ibays and user folders directly with the dropbox linux client.
These instructions were written for SME 8; SME 9 comes with python 2.7 so you can ignore anything related to setting up or using python 2.7:
https://wiki.contribs.org/DropboxHere are some abbreviated instructions (I tested this in 5 - 10 minutes on my server):
1. Download and install the dropbox client (by default into into /root/.dropbox):
cd ~ && uname -a |grep "x86_64" && wget -O - "https://www.dropbox.com/download?plat=lnx.x86_64" | tar xzf - || wget -O - "https://www.dropbox.com/download?plat=lnx.x86" | tar xzf -
2. Download the dropbox control script
mkdir -p ~/bin
cd ~/bin
wget -O dropbox.py https://www.dropbox.com/download?dl=packages/dropbox.py
chmod 700 dropbox.py
3. Start the dropbox client - you'll get a URL on your SME server that you need to visit from an authenticated browser on another system:
dropbox.py start
4. Once you've 'authenticated' the SME server with Dropbox, your existing dropbox data will sync to ~/Dropbox. Create a symlink in that folder to your Ibay and dropbox will back it up:
cd ~/Dropbox
ln -s /home/e-smith/files/ibays/<ibayname> .
Finally, if it all looks like it's working OK, create a crontab entry to restart the dropbox cli at reboot.
* run "crontab -e" as root (or the user you've been using for all of this)
* add this line to it:
@reboot /root/bin/dropbox.py start
Over time you may want to upgrade the dropbox client. I didn't test these today, but I did when I set it up back on SME 8:
cd ~
dropbox.py stop
uname -a |grep "x86_64" \
&& wget -O - "https://www.dropbox.com/download?plat=lnx.x86_64" | tar xzf - \
|| wget -O - "https://www.dropbox.com/download?plat=lnx.x86" | tar xzf -
dropbox.py start
Notes:
* The "uname" bit in the client download command is just about picking the correct 32-bit or 64-bit client for download
* You can include sql backups by symlinking
/home/e-smith/db/mysql/ and running "signal-event pre-backup" from time to time (mysql55 via SCL backs up to /home/e-smith/db/mysql55)
[edit]
You can prevent your entire dropbox from syncing back to the SME server like this:
- start the dropbox client and wait for it to start syncing
dropbox.py start- configure dropbox on SME to exclude the files and folders currently stored in Dropbox:
cd ~/Dropbox
dropbox.py exclude add *
- *then* add the symlinks to the folders you want to backup
cd ~/Dropbox
mkdir smeserver
cd smeserver
ln -s /home/e-smith/files/ibays/<ibayname>
ln -s /home/e-smith/db
Alternatively (if you've already created and synced the symlinked bay):
cd ~/Dropbox
dropbox.py exclude add *
dropbox.py exclude remove <symlinked-folder-name>