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.

[SOLVED] 5.0-rc8a mover script - How does it handle duplicate files?

Featured Replies

I've done a few searches on the forum and wiki but haven't really found an answer.

 

EDIT:

 

Link to wiki page I'm referring to:

 

http://lime-technology.com/wiki/index.php/Cache_disk#The_Mover

 

This seems to suggest mv is used, but doesn't mention how duplicate files are handled. I've also seen references to rsync in some forum posts concerning the mover script, but again, no mention of duplicate file handling anywhere.

 

Can anyone confirm how duplicate files are handled by the mover in this version?

 

 

 

What do mean by "duplicate files"? Please provide an example.

  • Author

For example:

 

A file exists on a user share, called movie.mkv - //tower/Movies/movie.mkv

 

A new file is created (same video, but different audio), it is transferred to the cache drive and saved to the same location in the directory structure - //tower/cache/Movies/movie.mkv

 

Would it be:

a) replaced on the user share

b) ignored and deleted from the cache drive

c) updated to the user share with just the changed bits

 

Hope that makes sense.

 

ps. apologies for not including an example in my first post!

 

The mover script on my 5.0rc8a unRAID

cat /usr/local/sbin/mover

seems to be doing rsync --inplace which I think means that it overwrites an existing file with the file from cache.

 

It will be replaced. The files system semantics should be identical to a standard file system.

  • Author

That's great, thanks for confirming that.  :)

Archived

This topic is now archived and is closed to further replies.

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.