Beberapa Script untuk Rclone
Bagi kalian yang mainan VPS dengan backup di letakkan di sistem Cloud, pasti tidak asing dengan tool Rclone, Berikut ada beberapa script untuk Rclone, semoga bermanfaat : compare-clouds.sh #!/bin/bash # Requirements: sudo apt install tree if pidof -o %PPID -x "compare-acd-gdrive"; then echo "Already running, exit" exit 1 fi scriptstart=$(date +'%s') TSTAMP=`date +%d.%m.%Y/%H:%M` LOGFILE="/home/plex/logs/compare-acd-gdrive.log" ACDREMOTE="acd:" GDRIVEREMOTE="gdrive:" ACDMOUNT="/mnt/acdcrypt/" GDRIVEMOUNT="/mnt/gdrivecrypt/" echo "------------------------------------------- " | tee -a "$LOGFILE" echo "$TSTAMP START" | tee -a "$LOGFILE" echo "ACD FILES & SIZE (rclone size $ACDREMOTE)" | tee -a "$LOGFILE" lastupload=`tail -n5 $LOGFILE | grep "Total size:" | cut -c 13- | cut -c -5` acdstart=$(date +'%s') rclone size $ACDREMOTE | tee ...