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.

关于mover反向从阵列移动文件到缓存的疑问

Featured Replies

如题,

 

我最近往阵列里添加的一块新的硬盘,又手动用unbalance平衡了一下两块硬盘的使用率。今天发现我原本电影库在缓存里面的海报、字幕之类的小文件都一并被移动到阵列里了,应该是unbalance操作时没注意这个问题。

 

现在我想反向将阵列里的小文件移动到缓存中,并且文件夹目录不变。

 

我注意到mover可以设置“仅移动大于xx M的文件”。而我只是移动海报、字幕、nfo这些小文件,所以我需要类似“仅移动小于xx M的文件”之类的操作。但是这个在mover中没有。

 

我想知道有没有插件或者其他方法可以实现上述的目的。

最简单的话其实是使用命令,rsync 命令支持以文件大小为依据的过滤规则去转移文件。

 

传输的最大文件的大小不超过 1M 大小的文件(--max-size='1M'):

rsync -aPvh --max-size='1M' /mnt/disk1/电影/ /mnt/cache/电影/

 

传输的最小文件的大小不小于 1M(--min-size='1M'):

rsync -aPvh --min-size='1M' /mnt/disk1/电影/ /mnt/cache/电影/

 

其他参数:

  • --exclude 参数指定排除不进行同步的文件,比如 --exclude="*.iso"
  • --remove-source-files 参数表示传输成功后,删除源目录下被拷贝的文件,相当于剪切,只会删除转移成功的文件,未被拷贝的文件不会被删除;
  • 更多资料请参考:unRAID 通用文件传输工具 —— Rsync 命令

Edited by JackieWu

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.