Since my most commonly used cloud storage is Onedrive, and Mix-Space only provides backups to COS, I had to find another way.
Mix-Space saves backups in the /data/mx-space/backup
folder every day, so all you need to do is back up this folder daily.
Here is an example of using RClone combined with Onedrive to back up Mix-Space:
Installation and Configuration:#
Install on Linux/macOS/BSD:
sudo -v ; curl https://rclone.org/install.sh | sudo bash
Create and configure Onedrive:
rclone config
Run daily at 12:00 PM#
mkdir /root/sh
vi /root/sh/mix-space-bak.sh
#Insert the following content:
#!/usr/bin/zsh
/usr/bin/rclone sync /root/mix-space/core/data/mx-space/backup Onedrive-shiro:Shiroi_bak
# /root/mix-space/core/data/mx-space/backup is the local folder, Onedrive-shiro:Shiroi_bak is the path in the cloud storage.
chmod +x /root/sh/mix-space-bak.sh
crontab -e
#Add the following line:
0 12 * * * /root/sh/mix-space-bak.sh
Warning
The sh file needs to include a shebang line and specify your shell, in this case, zsh. Additionally, after editing the sh file, you need to give it executable permissions, otherwise, it won't run automatically due to permission issues.
Reference:
This article is synchronized and updated by Mix Space to xLog.
The original link is https://xxu.do/posts/geek/Backup-Mix-Space-to-Onedrive