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.

Copy Every File Added to a Folder to Another Folder

Featured Replies

I just implemented an instance of Mayan EDMS as a document manager. It's a destructive file manager. Everything added to the import folders are renamed to a unique identifier, file extension is stripped, it's copied to the app storage folder, and the original file in the import folder is deleted. 

 

Is there a way I can get every file added to the import folder immediately copied to a backup folder? I'd like it to happen as soon as it's added.   

Not exactly the same, but I used a find command that checks a folder and it copies from A to B and moves to C. 

find /mnt/cache/uploads/incoming/* -iname "*.mkv" -type f -mmin +10 -exec cp {} /mnt/cache/uploads/2check/ \; -exec mv {} /mnt/cache/uploads/Tv-Incoming/ \;
 

So it checks Incoming folder and copies to 2check then moves incoming to Tv-incoming

 

So this kinda does what your asking, but not exactly.  You could look for some code that utilizes inotifywait

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.