Skip Navigation

Nextcloud client just deleted all of my files, why did it do this?

For a long time I've used OneDrive to sync all of my files and keep them safe, but I've been really getting into self hosting all my own services, so today I set up NextCloud to replace it. I told it to sync my OneDrive folder, and it did it's best. It copied the file structure and had all the directories and everything but emptied every folder, it deleted every single file I had on my OneDrive, now all I have is empty folders.

Luckily OneDrive has a file recovery system where I can give it a time and date to revert back to so my data should all be safe, but why on earth did it do that in the first place? This was incredibly stressful and terrifying I thought I lost all my work. What did I do wrong?

Edit: I’ve identified the issue and have learned from this experience, it is now a non issue and was completely my own doing. Wary reader, learn from my cautionary tale

8
8 comments
  • The title is a little click baity which will lead to armies of people commenting about how much the dislike Nextcloud. You might want to specify the Nextcloud client.

    Anyway this seems like very problematic behavior. Maybe there was a setting somewhere? Nextcloud client should not delete files. It is possible that there was some sort of conflict with Onedrive. This is why it is important to have backups.

  • When you say "I told it to sync my one drive folder, and it did it's best" did you install nextcloud desktop and point it at the same folder that was currently syncing onedrive?

    If yes, never do this. You should never layer two sync services that support virtual files over the same folder. The best way migrate to nextcloud is to use the nextcloud apps that connect to one drive and help you migrate.

    Failing that the correct way would be to either set onedrive and nextcloud to sync 2 Seperate folders then copy from the onedrive folder to the nextcloud folder. Or set one drive to download all files, disable it entirely, then install nextcloud syncing with the formerly one drive folder.

    • Yep I sure did the thing you said not to do. I’m very new to a lot of this stuff still learning, I didn’t think about it and thought it would just work in was able to recover all my files and everything is fine so I’m not worried about it anymore and I understand the issue now. So this has just been a learning experience, I’m moving on with the second message you suggested and just making a new folder and copying stuff over. Thanks for the input man

  • Nextcloud did this to me in the exact same situation you described. Setting up a next cloud folder on the OneDrive folder. You can’t have them running at the same time. This was on windows.

    I’ve since gotten rid of OneDrive and moved to Linux and never had this issue.

  • I don't use the desktop app, but the mobile app has a setting for what to do with the original file:

    1. Keep in original folder
    2. Move to app folder
    3. Deleted

    I have different sync folders setup differently depending on use case, but I typically use option #1 as my "default".

    Maybe when you setup the sync folder, you set it to delete the local files?

    Also, is the OneDrive folder a "real" folder or virtual one? I've only used Google Drive for things like that, and the local folder just holds a skeleton of the contents and pulls from the network on-demand. It...does not play well with other sync utilities or even copying through robocopy.

  • The best place to find answersaboutt nextcloud are the NC forums. And hekp if you explain more about what you did and explain your system installation.

8 comments