How do I automatically backup a file to OneDrive?

0

I have an important file in c:\users\me\app\roaming\foo\, is there any way to mark it so that it automatically syncs to onedrive?

edit: Other solutions involve scheduled backups to the OneDrive directory. I would rather not use additional tools and would like to have the directory sync automatically (to take advantage of change detection and instantaneous sync). I ended up using mklink.

fook

Posted 2015-12-10T01:44:23.573

Reputation: 1

Question was closed 2015-12-11T01:08:01.627

Answers

1

Provided you have installed one drive and logged it in using you MS account, you can create a symbolic link that makes the Target folders and files appear within the link. EG.

MKLINK [[/D] | [/H] | [/J]] Link Target

MKLINK /J C:\Users\me\documents\foo C:\Users\me\app\roaming\foo

Note: Ensure the chosen folder is synced to OneDrive and the folder foo within your link folder does not exist before the command.

MrDeanosupreamo

Posted 2015-12-10T01:44:23.573

Reputation: 175

0

Best way to do this would be to save the file in your OneDrive directory. It should automatically sync changes as you save the file.

user531856

Posted 2015-12-10T01:44:23.573

Reputation: 1

I don't have control over the location of the file. The application expects it in a certain local folder. – fook – 2015-12-10T04:25:58.523

0

Since the directories are on the same partition I was able to use mklink to create symbolic link into the onedrive folder.

fook

Posted 2015-12-10T01:44:23.573

Reputation: 1