Using the same local folder for Dropbox and Skydrive

112

Solution 1

Cloud services will always timestamp their synch folder on your device with the time of their last synchronisation. How exactly they do this may vary from service to service.

If the synch folder is shared between services, the second service will see the date change of the first service as an update and will then go off and try to synchronise.

This can get you into a deadly embrace situation where everything is synchronising all the time.

I find it easier to have a daily run of robocopy (on Windows) to synchronise the two local synch folders. That does mean that you have two copies of everything on your local system but I have put each service's synch folder on a separate local hard drive so there is additional redundancy.

I haven't tried this on a phone so can't say if this is feasible there.

Solution 2

I have done some tests with sharing the same folder on different clouds (One Cloud, Google, dropbox,...)lately. To be honest, it seems to give nothing but problems. In fact, the files seem to be in 'sync mode' all the time and the services take a lot of memory resources. I think the reason is the following: one cloud (f.ex. dropbox) sees a new file and starts synchronising. Once done, it seems that something on the folder or file is modified. The other cloud starts syncing as well. Once done, dropbox sees a change in the file and resyncs. But so does the other cloud when dropbox has synced. So both clouds seem to be syncing all the time.

Share:
112

Related videos on Youtube

MegaBatchGames
Author by

MegaBatchGames

Updated on September 18, 2022

Comments

  • MegaBatchGames
    MegaBatchGames almost 2 years

    I am trying to get the value of a key in a JSON object, and the name of the key is in a variable.

    var fs = require('fs');
    
    var id = 230345038039;
    var jsonstuff = 
    var parsedstuff = JSON.parse(fs.readFileSync('./file.json', 'utf8'));
    console.log(parsedstuff.id);
    

    Expected output: 12

    I've tried parsedstuff.$$id, parsedstuff.${!id} and parsedstuff.$id. None work.

    Is there a way to do this?

    Edit: SOLVED. parsedstuff[id] is what I should be using.

    • Ramhound
      Ramhound almost 11 years
      I see no reason pointing Dropbox to a folder called A service formally known as Skydrive instead of Dropbox would cause a problem.
    • roryok
      roryok almost 11 years
      I'm just thinking two cloud based apps will be syncing the folder. I wonder will they interfere with each other or cause any latency or locking issues
    • roryok
      roryok almost 11 years
      Thanks ramhound. The dropbox location can be changed so I'll probably point that to the SkyDrive folder
    • roryok
      roryok almost 11 years
      no, that doesn't work. You can't choose the folder that Dropbox uses, you can only choose the parent folder that your Dropbox folder resides in
    • Ramhound
      Ramhound almost 11 years
      So place all files in that folder within the Skydrive folder so there is a single folder.
    • roryok
      roryok almost 11 years
      then it won't sync to dropbox, as only whats in the dropbox folder will sync. remember I want both services syncing, I'm not just trying to copy from one to the other
    • nhinkle
      nhinkle almost 11 years
      @Ramhound do you mean service formerly known as Skydrive? Or are you implying that there is a casual name other than SkyDrive's formal name?
    • Ramhound
      Ramhound almost 11 years
      @nhinkle I was being funny.. Skydrive is going to get a new name...Yes I made a typo...
    • roryok
      roryok almost 11 years
      hah, I didn't even spot that. Formally it's called SkyDrive, but informally it's known as that MS dropbox thing-a-ma-yoke
    • Ramhound
      Ramhound almost 11 years
      @roryok - Some people call it NSADrive. Dropbox is going to revise their name to NSABox. That joke could go one for awhile. Yes I was trying to be funny by making a reference to the "Artist Formerly Known as Sting"
    • tumchaaditya
      tumchaaditya almost 10 years
      Unless you have huge data on cloud, one simple trick would be to set up auto-mirroring between skydrive and dropbox folders using some third-party tool
  • tucuxi
    tucuxi over 10 years
    This is likely to be highly OS-dependent. The inotify syscall in recent-ish linux kernels, for instance, allows listening for modification vs access without locking issues; and I would guess any cloud client would be using the right ones.
  • roryok
    roryok over 10 years
    yeah robocopy seems like a better solution, although maybe more often than once a day (on the hour maybe?) Not sure what you mean about trying on a phone as we're talking about desktop clients!
  • roryok
    roryok over 10 years
    ah, yes, I see how that's confusing. I just wanted to shift priority to SkyDrive on the desktop to match up with the phone, as I mostly use Dropbox at the moment