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.

Can I started mover when cache drive reaches 70%?

Featured Replies

Hi currently my cache drive is 240GB but with all the automated downloads and moving of files it quickly gets full. It has a schedule to move around 3am but was wondering if there was way to create a cron job I'm assuming to start mover when disk reaches 70%?

  • Community Expert

If you were clever enough it shouldn't be too difficult to create a cron job that checks frequently if it is full enough and then kicks off mover.

or use the scheduler addon - my mover moves once a hr

 

 

Myk

 

  • Author

If you were clever enough it shouldn't be too difficult to create a cron job that checks frequently if it is full enough and then kicks off mover.

 

I don't think it about being clever or not, just I don't know what it is and how to do it but I'm sure I will find out :D

If you were clever enough it shouldn't be too difficult to create a cron job that checks frequently if it is full enough and then kicks off mover.

 

I don't think it about being clever or not, just I don't know what it is and how to do it but I'm sure I will find out :D

 

Ha I bet your cache gets to 70% pretty quickly with 204 meg down internet !!! (wish i had virgin in my area, but im stuck with 32 meg  bt fiber) :(

You could use something like this

#!/usr/bin/php
<?PHP
$moveAt = 70;

$diskTotal = disk_total_space("/mnt/cache");
$diskFree = disk_free_space("/mnt/cache");
$percent = ($diskTotal - $diskFree) / $diskTotal * 100;

if ( $percent > $moveAt ) {
  exec("/usr/local/sbin/mover");
}
?>

Either create a cron job to run this at when you like, or use it with the user.scripts plugin and have it run say every hour.

 

EDIT: added this to the user scripts additional scripts thread

  • Author

@gridrunner yep recently it has getting full daily as I figured out how CP could upgrade all my old dvdrips to 720p+ so it was constantly on the go.

 

VM also do 300Mbps package for £30 extra a month! But I wont be paying for that any time soon...

 

@Squid your help is always appreciated :D

 

My current transmission stats look like this


Current Session
Uploaded: 11.4 GB
Downloaded: 56.0 GB
Ratio: 1.20
Running Time: 1 day
Total Started: 39 times
Uploaded:861.6 GB
Downloaded:1.87 TB
Ratio:1.45
Running Time:33 days

 

Counter for Sab

Bandwidth:
Total: 1.2 TB
Today: 79.3 GB
This week: 135.4 GB
This month: 822.9 GB

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.