Need to see if your shared folder is taking up space on your dropbox 👨‍💻? Find out how to check here.

Forum Discussion

elroy690's avatar
elroy690
Explorer | Level 4
3 years ago
Solved

Unnecessary sync after change auf harddisk on the app.

Hello,

 

I just changed my data harddisk. It's a Linux system and I just moved the /home directory to a new harddisk. The system runs fine, but Dropbox does not recognise that the cloud storage and the local Dropbox folder have the same content, so it just started to download, saying that this would take several days. I checked the folder configuration, everythings seems to be alright.

 

What can I do to stop that nonsense?

 

Thanks!

Martin


  • elroy690 wrote:

    ...

    When I let the whole sync process run through, everything will be back to normal afterwards?

    ...


    Yes. As I said, the application uploads everything anew. This doesn't mean that every file will be updated; Dropbox server, on its own, checks out and if nothing changed (the file is the same) upload is ignored. So, almost everything, if not everything, gonna be ignored. At the end, for every single file, correct extended attribute(s) (one or more; one in most cases) becomes set to every single file anew and that's all.

10 Replies

Replies have been turned off for this discussion
  • Megan's avatar
    Megan
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    3 years ago

    Hi elroy690, thanks for posting here today! 

     

    It seems you might chose for the content to sync anew to the device, that's why the app is syncing all the content. On the other hand, maybe the app is re-indexing any changes, and not syncing the files.

     

    Do you have two Dropbox folders on the device? An old, and a new one? 

     

    Could you clarify the app's precise syncing status, please? Also, feel free to have a look at this thread, and let me know if you can follow the steps Rich provided. 

     

    Keep me posted!

  • elroy690's avatar
    elroy690
    Explorer | Level 4
    3 years ago

    Hi!

    No, Dropbox is really syncing, not indexing. It says it's uploading and downloading files.

    Yes, I have two Dropbox folders, but I renamed the old one, so this shouldn't be a problem, should it? It's a Linux system and I put set /home directory to the new drive, so actually Dropbox shouldn't even notice that something is different, cause I copied the whole /home content to the new drive.

    Any ideas?

     

  • elroy690's avatar
    elroy690
    Explorer | Level 4
    3 years ago

    I am just shredding the drive now, so it cannot be accessed by Dropbox any more. So the second folder cannot be the problem. Just mentioning. 😉

    Thanks!

  • Jay's avatar
    Jay
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    3 years ago

    Hi elroy690, as it seems that the Dropbox desktop application doesn't detect this to be the same location, we can only recommend to allow the app to continue syncing the files down to your machine in the new location. 

  • Здравко's avatar
    Здравко
    Legendary | Level 20
    3 years ago

    elroy690 wrote:

    ... I have two Dropbox folders, but I renamed the old one, so this shouldn't be a problem, should it? It's a Linux system and I put set /home directory to the new drive, so actually Dropbox shouldn't even notice that something is different, cause I copied the whole /home content to the new drive.

    ...


    Hi elroy690,

    When you say that your home folder is on new drive, does it mean you have moved its location and it's accessible on new absolute path or you just remounted another drive on the same place - the home folder? This is important since Dropbox keep absolute paths internally! So if this move implies change absolute path of Dropbox folder, it can be an issue. You can see where Dropbox expect application folder to reside using:

    jq .personal.path ~/.dropbox/info.json

    ... or something similar. Does the result match to the position expected by you?

     

    Another corner case may be the way you have used to copy you home folder content (including Dropbox folder content). Dropbox relies on files timestamp and extended attributes to identify current sync status. If some of them has been changed (or reset) during your copy, application assumes there are files need sync (since it cannot identify what's going on)! Using standard Linux tools, coming with most big distributions, usually doesn't lead to such issues, but as I said if your tool changed something entire Dropbox content may need to be re-upload (so the application makes sure everything is in sync even when it's not needed). In such a situation, as Jay said, just let application do its work (next time perform the copy more carefully, so application doesn't fall in confusion 😉).

    Hope this helps clarifying the situation.

  • elroy690's avatar
    elroy690
    Explorer | Level 4
    3 years ago

    Hello,

    martin@martin-workstation:~$ jq .personal.path ~/.dropbox/info.json
    "/home/martin/Dropbox"
    martin@martin-workstation:~$

    That's what the jq command put out. And yes, I expected that.

    What I did was, I remountend the /home folder to another drive, and before I copied the whole content with rsync, which is a standard linux tool and should work fine. I don't think the rsync command changes anything. Do you?

    Any ideas from reading my lines?

    Thank you.

  • Здравко's avatar
    Здравко
    Legendary | Level 20
    3 years ago

    Hi elroy690,

    Yes, you have done mounting in the proper way. 😉

     


    elroy690 wrote:

    ... I copied the whole content with rsync, which is a standard linux tool and should work fine. I don't think the rsync command changes anything. Do you?

    ...


    😁 Yes rsync is useful tool, but the "evil" is in details! How exactly you ran rsync? Yes, rsync support extended attributes, but such feature is NOT active if no explicitly turn on. So if you haven't done it, that's why your Dropbox application got in confusion (by default rsync drops extended attributes). 🙋

    Next time take care. 😉

  • elroy690's avatar
    elroy690
    Explorer | Level 4
    3 years ago

    Ok, thanks for clarifying!

    When I let the whole sync process run through, everything will be back to normal afterwards?

    Thanks.

  • Здравко's avatar
    Здравко
    Legendary | Level 20
    3 years ago

    elroy690 wrote:

    ...

    When I let the whole sync process run through, everything will be back to normal afterwards?

    ...


    Yes. As I said, the application uploads everything anew. This doesn't mean that every file will be updated; Dropbox server, on its own, checks out and if nothing changed (the file is the same) upload is ignored. So, almost everything, if not everything, gonna be ignored. At the end, for every single file, correct extended attribute(s) (one or more; one in most cases) becomes set to every single file anew and that's all.

About Apps and Installations

Have a question about a Dropbox app or installation? Reach out to the Dropbox Community and get solutions, help, and advice from members.

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!