Contents
Duplicati is a free, open source, backup client that securely stores encrypted, incremental, compressed backups on cloud storage services and remote file servers. It works with:Amazon S3, OneDrive, Google Drive, Rackspace Cloud Files, HubiC, Backblaze (B2), Amazon Cloud Drive (AmzCD), Swift / OpenStack, WebDAV, SSH (SFTP), FTP, and more!
Website: https://www.duplicati.com/
Duplicati is a C# project for Windows, and can run on Linux through mono. However, Duplicati have some unknown error on Linux. So let us see how to backup local files to OneDrive for Business on Windows OS.
Settings
Add a new backup
After installing the Duplicati and running, visit this webpage to add the config of remote netdisk.
1 |
http://localhost:8200/ngax/index.html |
Choose encryption
Input the name of config and select the method of encryption.
Obtain the information of login
Visit the Office365, access the OneDrive for Business and enter any folder.
You can get a link, look like:
1 |
https://name-my.sharepoint.com/personal/user_domain_edu/_layouts/15/onedrive.aspx?id=%2Fpersonal%2Fuser%5Fdomain%5Fedu%2FDocuments%2FAttachments |
Through URL decode, you can get the Server, the domain of the link, and Path on server, the part behind id= of the link, both of them required by Duplicati.
Server: name-my.sharepoint.com
Path on server: /personal/user_domain_edu/Documents/Attachments
Test connection
Test connection, and it will be success. However, failed on Linux.
Select Local files
Select the local folders and files need to backup.
Set up the Schedule
Set up the schedule to automatically backup.
Save the config
Tips
Duplicati is using some Windows libs to get access the OneDrive for Business, so it works with all the office365 account, even those in an unmanaged state.