Forum Discussion
johnbor
Mar 12, 2023Brass Contributor
How to add additional folders
How can I add additional folders for One drive to backup other than just Documents, Pictures, Desktop ? Say I have a folder in my C drive I want backed up all so?
klinz
Jan 07, 2024Copper Contributor
Actually you can. Just create a symbolic link to OneDrive folder.
mklink /D "C:\Users\Fatih\OneDrive\MyFolder" "C:\Users\Fatih\Downloads\MyFolder"
mklink is used for making links (like shortcuts)
/D is to specify that the target is a directory (you can ignore it if you just want to add a single file).
command syntax is MKLINK [/D] Link Target
Note: I did not test it thoroughly but it added the folder to sync.
mklink /D "C:\Users\Fatih\OneDrive\MyFolder" "C:\Users\Fatih\Downloads\MyFolder"
mklink is used for making links (like shortcuts)
/D is to specify that the target is a directory (you can ignore it if you just want to add a single file).
command syntax is MKLINK [/D] Link Target
Note: I did not test it thoroughly but it added the folder to sync.
Musicalguitarfreak
Dec 22, 2024Copper Contributor
This is so useful, thank you!! OneDrive is following my symlink directory exactly as intended.
I will add that you can also combine this with addressing an external drive as a volume ID for reliability. Use `mountvol` in the command prompt to get the ID of the volume you want to access.
mklink /D SymFolderName \\?\Volume{1b3b1146-4076-11e1-84aa-806e6f6e6963}\ExternalFolderName