Since the 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 you only need to back up this folder regularly.
Here is an example of backing up Mix-Space using RClone with Onedrive:
Installation and Configuration:#
Install on Linux/macOS/BSD:
sudo -v ; curl https://rclone.org/install.sh | sudo bash
Create and configure Onedrive:
rclone config
Schedule to run every day at 12 PM#
mkdir /root/sh
vi /root/sh/mix-space-bak.sh
Fill in the following content:
# Fill in the following content:
#!/usr/bin/bash
/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 a line:
0 12 * * * /root/sh/mix-space-bak.sh
Warning
The sh file needs to include a shebang line, and the content should be changed to your shell; this article uses zsh. Additionally, after editing the sh file, you need to grant it execution permissions; otherwise, it will not execute automatically due to permission issues.
Reference:
This article is synchronized and updated to xLog by Mix Space
The original link is https://xxu.do/posts/geek/Backup-Mix-Space-to-Onedrive