Forum Discussion
How to use OneDrive for Backup on Mac
- Dec 17, 2016
Thanks for your reply Ben - Actually I have been using OneDrive for backup since november 15th with great succes, as you mentioned im using Symbolic links using the software MacDropAny and it works great :)
I found your thread searching for the same solution, how to backup Mac files/folders to OneDrive when symlinks don't seem to work. https://www.howtogeek.com/204595/how-to-move-special-folders-on-os-x-to-cloud-storage/ has an approach where symlinks can work if you move the original file/folder to the OneDrive folder and replace the original with a symlink sourced from OneDrive. Here is an example where I relocated my ~/.ssh folder to OneDrive.
sudo mv ~/.ssh ~/OneDrive/.ssh
ln -s ~/OneDrive/.ssh ~After these commands the .ssh folder is in the OneDrive folder, and ~/.ssh is just a link to it.
lrwxr-xr-x 1 XXXXXX XXXX 42 Jan 3 09:45 .ssh -> /Users/XXXXX/OneDrive/.sshAs a test, I connected to a new ssh host, which updates the ~/.ssh/known_hosts file. I confirmed that OneDrive sync client detected the change and synced it to the cloud.
Thanks Joe-S
It worked but only for 2 days, now I lost connection to OneDrive Desktop - Trying to figure out what went wrong
/Glen