Backup to Microsoft OneDrive with Synology’s Hyper Backup
Credits go to https://rays-blog.de/2019/07/17/310/backup-to-microsoft-onedrive-with-synologys-hyper-backup/ as I've copied most of it :).
Install a proxy Docker image on Synology
Run the basic-to-passport-auth-http-proxy Docker image and configure a WebDAV backup destination in Hyper Backup.
Just install the above Docker image (search for skleeschulte
in the Docker browser in Synology):
- Configure the local port (I've used :3001)
- Add a variable named
PROXY_TARGET
with the valuehttps://d.docs.live.net/
- Start the container and check logs (it should be running just fine)
Configure HyperBackup
- Get your OneDrive CID: navigate to https://www.onedrive.com/ and log in to OneDrive. When the browser has finished loading the OneDrive interface, the address bar should show something like
https://onedrive.live.com/?id=root&cid=ABCDEFG123456789
.ABCDEFG123456789
is your CID - Create an application password in your Microsoft account. This would be a your password to use with your CID
- Create a new WebDav task in HyperBackup:
a) Server address:localhost:3000/ONEDRIVE_CID
b) Username: your OneDrive username (= email address)
c) Password: your OneDrive application password
d) Select proper folder and finish the backup task - Profit