Dropbox modification of file in 2 different places at once

6,343

Solution 1

It depends on your settings. Most dropbox-like programs provide you with a variation of these options:

  1. Use the local copy, overwrite the remote ones.
  2. Use the remote copy and overwrite the local one.
  3. Use the one with the latest modification date.
  4. Ask the user (popup) which file to keep.

In the case of dropbox their own website states this

Dropbox won't attempt to merge the changes for you. Therefore, any changes made to the same file after it has been updated will also have their changes synced to all computers, but as a "conflicted copy" of the file. A conflicted file and the original copy Conflicting changes are saved separately

Copy of conflicted-file.png

If you want to prevent conflict or even gracefully merge changes in source code, use a source control system, such as CVS or subversion.

Solution 2

As per https://www.dropbox.com/help/36/en

"If two people or computers change the same file at the same time, the first person to finish uploading their new version will "win." Dropbox won't attempt to merge the changes for you. Therefore, any changes made to the same file after it has been updated will also have their changes synced to all computers, but as a "conflicted copy" of the file. The name of the new file will be the same as the old one but appended with "conflicted copy", the name of the person/computer responsible, and the date that the conflict occurred. This way, everyone's changes are preserved and nobody overwrites another person's hard work. If you find a conflicted file in your shared folder, you may want to discuss which changes to keep with your friend."

So no you won't lose anything but you will have duplicate files

edit: this isn't exactly what you asked as you're not working simultaneously from two locations on the same file but it still explains how dropbox handles conflicts.

Share:
6,343

Related videos on Youtube

wim
Author by

wim

Hi from Chicago! Python dev with interest in mathematics, music, robotics and computer vision. I hope my Q&A have been helpful for you. If one of my answers has saved your butt today and you would like a way to say thank you, then feel free to buy me a coffee! :-D [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo *Click*

Updated on September 18, 2022

Comments

  • wim
    wim almost 2 years

    Suppose I have a source code file in my dropbox which I have worked on from my desktop machine, and the version in my laptop is out-of-date because I haven't had internet access or the company proxy blocked dropbox or whatever.

    If I continue working on the file from the laptop, and then reconnect to the internet later, what will happen to my file? Will the earlier changes from the desktop be lost?

    • Admin
      Admin over 11 years
      this question blew my mind
    • Admin
      Admin over 11 years
      +1 @Wim, please see dropbox.com/help/10/en
    • Admin
      Admin over 11 years
      Mayeb its' best not to do that? Or, if you must, then copy to USB thumb drive before leaving the office, and copy onto laptop before making any changes. DropBox will later resynch the dsktop when you have connected the laptop (if you don't connect, then it's back to the USB stick)