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] How to backup all files under a certain size?

Featured Replies

I'd like to run through my movies directory recursively, and save every file that's under say, 2MB, to the cloud.  That way if I ever lose my entire server, I could build my media library back up quickly by just reripping/downloading ISOs and MKVs, and I'd have all my metadata that I've so painstakingly added safe.

 

Is there a way to do this?  Some kind of a script or something?

What cloud do you mean? It's easy to write something that filters by file size but where are the files going to end up? Do you want unRAID to copy them somewhere?

  • Author

Either my dropbox, or some ohter site depending on how big it ends up being... I can move it there myself, if I can just get large fileless copy on my local machine..

Crashplan have support for filters and working good on unraid.

  • Author

Hmm,  that looks easy enough.  I'll try it when I get home from work to see if it works...  Probably just run it on my desktop treating the unRaid as another drive, instead of trying to get it to compile ON unRaid...

It's Java, and really easy. The one slightly weird part is tunneling the control application from your desktop to the server, but it isn't hard.

 

Once you get it going it becomes difficult to give up. Sooo nice to offload that function to an already running unRAID with almost endless storage.

  • Author

Hmm, looks like that's not exactly what I'm looking for - I don't see the size filters anywhere, and I don't want a constantly running process - I'd rather do it manually.

Hmm, looks like that's not exactly what I'm looking for - I don't see the size filters anywhere, and I don't want a constantly running process - I'd rather do it manually.

find /mnt/user -type f -size -10k -exec ls -l {} \;

 

 

the

-size -NNN

will only print those files under the size specified. 

 

google

man find linux

to read more about it.

 

replace the "ls -l {}

with

cp {} /mnt/user/backup

or something similar...  (I don't think "cp" will create sub-folders)

Yea, I hadn't tried anything but name filters. Doesn't look like they've ever implemented size filters. I will say it's excellent software and requires minimal overhead on the server.

 

For what you're doing I'd be trying something like Joe. Copy or list the files you want and back that up. Something like:

  rsync -a --max-size=2k --prune-empty-dirs <source> <dest>

 

That'll put the files you want in <dest> where you can back them up however you like. Repeat before each backup and it will only copy changes.

 

A faster alternative might be cp -r -s ... so the copies are really just soft links. You're likely to end up with loads of empty directories if that's important.

  • Author

  rsync -a --max-size=2k --prune-empty-dirs <source> <dest>

 

Thanks, this worked perfect, and very fast!  One little terminal command just backed up hundreds of hours of carefully editing metadata with EMM.  :)

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.