Since the most commonly used cloud storage for personal use is Onedrive, and Mix-Space only provides backups to COS, an alternative approach must be taken.
Mix-Space will save backups in the /data/mx-space/backup
folder every day, so you only need to schedule a daily backup of this folder.
Here is an example of backing up Mix-Space using RClone in conjunction 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 Daily 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 the following 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 run 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