1
0
Fork 0
mirror of https://github.com/SinTan1729/random.git synced 2025-04-11 05:36:04 -05:00

fix: Locations and logging

This commit is contained in:
Sayantan Santra 2025-02-14 12:44:37 -06:00
parent eb98c97d1a
commit 6e2b9e444d
Signed by: SinTan1729
GPG key ID: 0538DD402EA50898

View file

@ -19,16 +19,16 @@ set -e
LOGFILE="/home/sintan/TempStorage/OneDriveBk.log"
echo "Starting Backup" | tee -a $LOGFILE
date | tee -a $LOGFILE
echo "Starting Backup at $(date)" | tee -a $LOGFILE
echo "-----------------------------"$'\n' | tee -a $LOGFILE
rclone -v --fast-list --size-only --links --bwlimit 4M sync "/home/sintan/Pictures" encrypted-onedrive:"Pictures" |& tee -a $LOGFILE
rclone -v --fast-list --size-only --links --bwlimit 4M sync "/home/sintan/Videos" encrypted-onedrive:"Videos" |& tee -a $LOGFILE
rclone -v --fast-list --size-only --links --bwlimit 4M sync "/home/sintan/Academics" encrypted-onedrive:"Academics" |& tee -a $LOGFILE
rclone -v --fast-list --size-only --links --bwlimit 4M sync "/mnt/storage/Academics" encrypted-onedrive:"Academics" |& tee -a $LOGFILE
rclone -v --fast-list --size-only --links --bwlimit 4M sync "/home/sintan/Zotero" encrypted-onedrive:"Zotero" |& tee -a $LOGFILE
rclone -v --fast-list --size-only --links --bwlimit 4M sync "/mnt/storage/Zotero" encrypted-onedrive:"Zotero" |& tee -a $LOGFILE
rclone -v --fast-list --size-only --links --bwlimit 4M sync "/mnt/storage/Music" encrypted-onedrive:"Music" |& tee -a $LOGFILE
@ -44,6 +44,6 @@ rclone -v --fast-list --size-only --links --bwlimit 4M --exclude="**/.stfolders/
rclone -v --fast-list --size-only --links --bwlimit 4M --exclude="*-config/**" sync "/mnt/storage/Programs" \
encrypted-onedrive:"Programs" |& tee -a $LOGFILE
echo "-----------------------------" | tee -a $LOGFILE
echo $'\n'"-----------------------------" | tee -a $LOGFILE
echo "-----------------------------" | tee -a $LOGFILE