msmith979

Possible to mirror a PC folder to a phone?

Recommended Posts

On my PC, I have folder that contains all of my playlists and music I wish to sync to my android phone (Folder A).  Essentially, I desire the mirror that folder onto my phone (Folder B).  From time to time, I will add/subtract songs or update playlists from Folder A (both are automatically generated) and I wish that it such changes will be reflected onto Folder B.  However, the results have been underwhelming when syncing Folder A to Folder B, with Folder A as its source.  Under read only mode, Sync did not update files with newer timestamps (updated playlists or files with updated tags).  Under read+write mode, files with newer timestamps from Folder A replaced older files in Folder B (good!).  However, subdirectories in Folder B not found in Folder A remained and, when there was a conflict, the parent directory of older files in Folder B showed up in Folder A as "foo.Conflict" (bad).  So, at the end of the day, how can Sync be set up in a way that Folder B mirrors all of the updates and changes (additions and deletions) from Folder A?

Share this post


Link to post
Share on other sites

@msmith979 Most likely possible, but it also depends on your android flavor. Your Folder A should be RW, your folder B should be RO, with sync all enabled, enabling overwriting of changed files. In worst case, your Android won't let Sync to adjust timestamps, although in this case Sync will keep internal record of real mtime.

Share this post


Link to post
Share on other sites
On 10/28/2016 at 7:13 AM, RomanZ said:

@msmith979 Most likely possible, but it also depends on your android flavor. Your Folder A should be RW, your folder B should be RO, with sync all enabled, enabling overwriting of changed files. In worst case, your Android won't let Sync to adjust timestamps, although in this case Sync will keep internal record of real mtime.

Thanks for the reply, but I am a little confused by it.  Let me try to be a little more clear on my part.  I'm currently running Android Marshmallow 6.0.1, stock from my provider.

Folder A = Source folder on my PC

Folder B = On my phone's microSD card. I wish Folder B to mirror all changes, if any, from Folder A.

With that said, shouldn't Folder A be set to RO and Folder B set to RW?

In my initial post, I only set up Folder A in my PC's Resilio Sync application.  From there, I used my phone to scan the QR code (either Folder A's RO or RW code) to initiate synchronization between the two devices.  In my phone's Sync app, I directed Folder A to transfer/update its contents to Folder B.  I also turned off selective sync.

With the RO QR code, I believe new files/subdirectories in Folder A not present in Folder B were added to Folder B.  However, conflicting files (Folder A files on Folder B with newer timestamps) were not updated.  With the RW QR code, conflicting files were resolved by files with newer timestamps overwritting older counterparts.  However, subdirectories/files there were deleted from Folder A prior to sychronization were not deleted from Folder B and such conflicts were shown in Folder A after synchronization.

For example, in Folder A:

├───Alternative and Rock
│   ├───Built to Spill
│   │   ├───Album 1
│   │   └───Album 2

will look like this after synchronization (from Folder A, artist directory renamed and Album 3 subdirectory deleted):

├───Alternative and Rock
│   ├───Built to Spill
│   │   ├───Album 1
│   │   └───Album 2
│   ├───Conflicted.Built TO Spill
│   │   ├───Album 1
│   │   ├───Album 2
│   │   └───Album 3

From your quote, are you suggesting that I setup both Folder A (on my PC) and Folder B (on my phone) and point them to their respective directories for proper bidirectional syncing? For example, on my PC, Folder A (RO) receives a link from my phone's Folder B; on my phone, Folder B (RW) receives the QR code from my PC's Folder A.  Will this establish that Folder B cannot update Folder A but any new or conflicting files from Folder A will be updated accordingly in Folder B?  Will this prevent the creation of "Conflicted.X" in Folder A?

 

FYI: directory tree is 5525 lines long.

Share this post


Link to post
Share on other sites

Do I understand correctly that Folder B is already populated with something when you add it to Sync? If yes, the reason of creating conflicted folder is the fact that folder name "Build to Spill" is spelled with different case (Android OS inherited files case sensitiveness from Linux).

Share this post


Link to post
Share on other sites

I'm trying to do exactly the same thing.  I want the PC to write all changes, additions, and deletions to the phone.  I don't want the phone to be able to affect the PC folder.  I've seen this setting mentioned, but I'm unable to find it on either PC or phone: " enabling overwriting of changed files".  Where is it?

Share this post


Link to post
Share on other sites

@scampbll,

You need to add a folder to Sync on PC and share RO QR code to yourAndroid. With this setup all updates will be synced PC--> phone, but not phone --> PC. 
Since the folder in RW on PC you'll not find option "Overwrite any changed file" there. But on the phone it's option is always disabled by default and hidden, so there is no option to enable it. It least in the current version. Perhaps will be added later. 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.