Share a specific folder into cloud such as one drive or google drive?

Page 1 of 2 12 LastLast

  1. Posts : 47
    Windows 10
       #1

    Share a specific folder into cloud such as one drive or google drive?


    I have an old game that keeps it's saves in a specific location that cannot be changed (mydocuments\gamename\saves in case that matters). I'm playing with 2 different PC's both carrying win10-64bit and I'm getting tired of copying the new save to a cloud service and moving again when getting to another pc.

    I'd need to add that specific folder into a cloud service, how?

    I'm using Google Drive (not the app but will get it if it helps) and OneDrive.

    With Google drive all tutorials I've found are about sharing folders already in the drive. For some reason I haven't found any how to share a folder into the drive

    With OneDrive I've found few tutorials but my One Drive view is completely different from those tutorials so those are not really helping. In tutorial views and info it's pretty straight forward how to do this with share command right on view, but like I said I have different looking one drive for some reason. I've added those tutorial views and what I'm looking at to this post as jpg attachments.

    Is there a supported way (or any other way) to do this without actually investing money at this point to 21 year old game?

    Thanks for replies.
    Attached Thumbnails Attached Thumbnails Share a specific folder into cloud such as one drive or google drive?-odnet.jpg   Share a specific folder into cloud such as one drive or google drive?-odme.jpg  
      My Computer


  2. Posts : 4,666
    Windows 10 Pro x64 21H1 Build 19043.1151 (Branch: Release Preview)
       #2

    I have a way to sync everything on both PCs via OneDrive, but first I need to know the exact path to your save folder so I can give you accurate commands to execute.

    You will also need an NTFS filesystem on both devices or this won't work.
      My Computers


  3. Posts : 47
    Windows 10
    Thread Starter
       #3

    Well the path is
    C:\Users\*username*\Documents\OpenTTD\save
    But note that username for my laptop and desktop differs.
      My Computer


  4. Posts : 4,666
    Windows 10 Pro x64 21H1 Build 19043.1151 (Branch: Release Preview)
       #4

    Syncing custom folders via OneDrive to multiple PCs


    GREAT!

    Tip   Tip
    First thing you need to make sure, is that OneDrive sync is working properly and using it's default folder on both PCs.


    warning   Warning
    Second thing to do is to make sure you have the latest save data backed up anywhere of your choosing (just in case something goes south in next steps.

    You will also need to be using NTFS filesystem.


    information   Information

    This is what we will create:
    Share a specific folder into cloud such as one drive or google drive?-junctionsavedata.png
    We will fool the game thinking it saves to the usual save folder, while in reality it saves to your local OneDrive folder.


    This is how to do it:
    1. Open Command Prompt on the machine with latest game save data.
    2. On first PC TYPE:
      Code:
      mkdir %USERPROFILE%\OneDrive\OpenTTD
    3. On first PC TYPE:
      Code:
      mkdir %USERPROFILE%\OneDrive\OpenTTD\save
    4. On first PC TYPE:
      Code:
      xcopy %USERPROFILE%\Documents\OpenTTD\save %USERPROFILE%\OneDrive\OpenTTD\save /s /i
    5. On first PC TYPE to verify all files got copied:
      Code:
      dir %USERPROFILE%\OneDrive\OpenTTD\save
    6. On first PC TYPE to delete folder:
      Code:
      rd /s %USERPROFILE%\Documents\OpenTTD\save
    7. On first PC TYPE:
      Code:
      mklink /j %USERPROFILE%\Documents\OpenTTD\save %USERPROFILE%\OneDrive\OpenTTD\save
    8. On second PC TYPE:
      Code:
      rd /s %USERPROFILE%\Documents\OpenTTD\save
    9. On second PC TYPE:
      Code:
      mklink /j %USERPROFILE%\Documents\OpenTTD\save %USERPROFILE%\OneDrive\OpenTTD\save
    10. On both PCs, if using OneDrive Files on Demand function, Right-click on the [USERPROFILE]\OneDrive\OpenTDD folder and select Always keep on this device (INSTRUCTIONS WITH SCREENSHOT)
    11. On both PCs wait for OneDrive to sync files and verify the save files are exactly the same on both.
    12. Test that all files sync on both devices and saving the game works as expected.

    Last edited by slicendice; 17 May 2018 at 07:27. Reason: Added illustration
      My Computers

  5.   My Computer


  6. Posts : 4,666
    Windows 10 Pro x64 21H1 Build 19043.1151 (Branch: Release Preview)
       #6

    Yes, I found that but it's doing things in the wrong direction. That's why I didn't share that link. But thanks anyway. :)
      My Computers


  7. Posts : 15,441
    Windows10
       #7

    slicendice said:
    Yes, I found that but it's doing things in the wrong direction. That's why I didn't share that link. But thanks anyway. :)
    This syncs any folder to onedrive.
    Then surely OP simply sets up a similar junction link with name of the saaving folder on new pc pointing to onedrive folder. The junction link will work in either direction.
      My Computer


  8. Posts : 4,666
    Windows 10 Pro x64 21H1 Build 19043.1151 (Branch: Release Preview)
       #8

    cereberus said:
    This syncs any folder to onedrive.
    Then surely OP simply sets up a similar junction link with name of the saaving folder on new pc pointing to onedrive folder. The junction link will work in either direction.

    It will not work since you can not create a junction when a folder with same name already exists.
    Share a specific folder into cloud such as one drive or google drive?-junctions.png
      My Computers


  9. Posts : 15,441
    Windows10
       #9

    slicendice said:
    It will not work since you can not create a junction when a folder with same name already exists.
    Share a specific folder into cloud such as one drive or google drive?-junctions.png
    Delete folder, create junction. That is what I do.
      My Computer


  10. Posts : 4,666
    Windows 10 Pro x64 21H1 Build 19043.1151 (Branch: Release Preview)
       #10

    cereberus said:
    Delete folder, create junction. That is what I do.
    If you delete the FOLDER in OneDrive on PC2, the folder will be deleted from OneDrive and also deleted from PC1.

    Does not work if you use multiple PCs that need exactly the same files and folders. Trust me, I have tested this.

    You need to reverse the dependency, as I did. And for the sake of consistency I did reverse the dependency on both PCs.

    Share a specific folder into cloud such as one drive or google drive?-junctions2.png
    Last edited by slicendice; 17 May 2018 at 03:46.
      My Computers


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 03:57.
Find Us




Windows 10 Forums