Skip to content

Instantly share code, notes, and snippets.

View mastervash's full-sized avatar
💭
forever struggling

Vash mastervash

💭
forever struggling
  • 14:14 (UTC -07:00)
View GitHub Profile
@mastervash
mastervash / upload_cloud
Created September 10, 2023 08:44
Rclone move script, based on @Animosity022 provided examples. (When there's over 100GB waiting to be uploaded - skip the Crontab)
#!/bin/bash
# RClone Config file
RCLONE_CONFIG=/path/to/your/rclone.conf
export RCLONE_CONFIG
LOCKFILE="/var/lock/`basename $0`"
LOG_FILE="/path/to/your/logs/rclone-upload.log"
# Maximum log file size in bytes (10MB)
MAX_LOG_SIZE=$((10 * 1024 * 1024))