This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/bash | |
# Set the threshold for disk usage (in percentage) | |
THRESHOLD=70 | |
# Set the directory to monitor | |
DIRECTORY="/var/log/filter" | |
# Get the current disk usage percentage | |
DISK_USAGE=$(df -h "$DIRECTORY" | tail -n 1 | awk '{print $5}' | tr -d '% ') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Local Drive | |
# This must be a local mount point on your server that is used for the source of files | |
# WARNING: If you make this your rclone Google Drive mount, it will create a move loop | |
# and delete your files! | |
# Make sure to this to the local path you are moving from! | |
LOCAL=/mnt/local | |
DELL=dell:/tank |