Skip to content

rclone, onelist的配置备份和恢复

备份

cd bak_folder
mkdir -p ./systemctl_rclone
# back up
cp /opt/OneList/config.json ./$(hostname)_${DATE}_OneList_config.json
cp /root/.config/rclone/rclone.conf ./$(hostname)_${DATE}_rclone.conf
cp /etc/systemd/system/rclone* ./systemctl_rclone/

恢复

cd bak_folder

# onelist
cp right_OneList_config.json /opt/OneList/config.json
systemctl daemon-reload
systemctl start onelist
systemctl enable onelist

# rclone
cp right_rclone.conf /root/.config/rclone/rclone.conf
cp ./systemctl_rclone/* /etc/systemd/system/
systemctl daemon-reload
# one by one
systemctl start rclone_rightname
systemctl enable rclone_rightname

Leave a Reply

Your email address will not be published.