Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Unraid WebUI File Browser automatically overwriting files with same name during move operation

Featured Replies

version 7.1.2

Without having 'overwrite existing files' selected, it seems that unraid still is overwriting existing files when using the web UI's move functionality.

I don't know if this is a bug or intended behavior, but it has caused me to accidentally overwrite thousands of files that had the same name instead of either aborting the operation, pausing to inform/confirm, or renaming the files.

Steps to recreate:
inside of a directory, create a test file: 'a.txt' with content Hello World
copy the file to another directory
in the original directory change the content of the file, without changing anything else Hello World 1
using the unraid web UI select the move option, ensure overwrite existing files is un-selected.
see that a.txt has been overwritten with the new content.

While I will obviously stop using the unraid UI for any and all file transfer operations moving forward, I am wondering what process Unraid uses under the hood to do these moves and if the files are lost or not.

image.png

Edited by adrianedelen

  • adrianedelen changed the title to Unraid WebUI File Browser automatically overwriting files with same name during move operation
  • Author

I am going to guess that the GUI move on the webui just uses mv but doesn't specify something like -n for no clobber. If that is the the case i would consider it a bug, since the web GUI afaik can only be (and is intended to be) accesses by the root user, there can be some unexpected scenarios that happen.

Edited by adrianedelen
typo

  • Community Expert
54 minutes ago, adrianedelen said:

just uses mv

Pretty sure it uses rsync, but I cannot reproduce, copying from one disk to another, please give the exact steps you are using.

  • Author
On 6/5/2025 at 10:07 AM, JorgeB said:

Pretty sure it uses rsync, but I cannot reproduce, copying from one disk to another, please give the exact steps you are using.

I am not copying from one disk to another explicitly. I am using the webUI move tool to move files and directories between shares and directories within shares.

here are the steps to reproduce in details:
1. create a new share with two directories src and dest.

  1. In srccreate a text file hello_world.txt with the content new_content

  2. In dest create a text file hello_world.txt with content old_content

  3. using the file move tool, ensuring overwrite existing files is disabled/unselected move src/hello_world.txt to dest

Expected behavior:
the software will abort, throw an error, pause, alert the user, or otherwise intercept the transfer, due to the mismatch in content.

Actual behavior:
the content in dest/hello_world.txt is overwritten old_content -> new_content

Here is a link to a video showing the behavior, the quality ended up being quite low, Im unsure why that is, but it shows the overwriting in action.
demo

  • Community Expert

I'm afraid that I still cannot reproduce:

Before copying:

image.png

Copy using

image.png

After copying:

image.png

If I select the overwrite existing files option:

image.png

  • Community Expert
2 hours ago, JorgeB said:

I'm afraid that I still cannot reproduce:

@adrianedelen did say that he was using the 'move' option and not the 'copy'.

  • Community Expert

I've been able to reproduce it with the move operation between 2 shares on the same drive, destination is exclusive source is not, did not further test whether that matters.

Edited by Kilrah

  • Community Expert
46 minutes ago, Frank1940 said:

did say that he was using the 'move' option and not the 'copy'.

Ahh, missed that part.

  • Community Expert

OK, with move I can reproduce, I was always trying with copy before, thanks for the report, I'll report it to LT.

  • Author

Thanks everyone for looking into this.

  • 2 weeks later...
  • Community Expert

This should be fixed in 7.1.4, please retest.

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...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.