1
0
Fork 0
mirror of https://github.com/SinTan1729/random.git synced 2025-04-15 23:47:40 -05:00

fix: Proper logging

This commit is contained in:
Sayantan Santra 2025-02-13 23:53:38 -06:00
parent f1eec7186a
commit eb98c97d1a
Signed by: SinTan1729
GPG key ID: 0538DD402EA50898

View file

@ -17,25 +17,33 @@ set -e
# List of backups # List of backups
rclone -v --fast-list --size-only --links --bwlimit 4M sync "/home/sintan/Pictures" encrypted-onedrive:"Pictures" LOGFILE="/home/sintan/TempStorage/OneDriveBk.log"
rclone -v --fast-list --size-only --links --bwlimit 4M sync "/home/sintan/Videos" encrypted-onedrive:"Videos" echo "Starting Backup" | tee -a $LOGFILE
date | tee -a $LOGFILE
rclone -v --fast-list --size-only --links --bwlimit 4M sync "/home/sintan/Academics" encrypted-onedrive:"Academics" 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/Zotero" encrypted-onedrive:"Zotero" 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 "/mnt/storage/Music" encrypted-onedrive:"Music" 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 --exclude="**/.stversions/**" --exclude="/CalibreLibrary/**"\ rclone -v --fast-list --size-only --links --bwlimit 4M sync "/home/sintan/Zotero" encrypted-onedrive:"Zotero" |& tee -a $LOGFILE
"/mnt/storage/Documents" encrypted-onedrive:"Documents"
rclone -v --fast-list --size-only --links --exclude="**/menus/**" --exclude="**/unity3d/**"\ rclone -v --fast-list --size-only --links --bwlimit 4M sync "/mnt/storage/Music" encrypted-onedrive:"Music" |& tee -a $LOGFILE
--exclude="**/libreoffice/**" --ignore-errors --bwlimit 4M sync "/mnt/storage/dotfiles" encrypted-onedrive:"dotfiles"
rclone -v --fast-list --size-only --links --bwlimit 4M --exclude="**/.stfolders/**"\ rclone -v --fast-list --size-only --links --bwlimit 4M sync --exclude="**/.stversions/**" --exclude="/CalibreLibrary/**" \
--exclude="**/.trashed**" --delete-excluded sync "/home/sintan/TempStorage/DCIM" encrypted-onedrive:"DCIM" "/mnt/storage/Documents" encrypted-onedrive:"Documents" |& tee -a $LOGFILE
rclone -v --fast-list --size-only --links --bwlimit 4M --exclude="*-config/**" sync "/mnt/storage/Programs"\ rclone -v --fast-list --size-only --links --exclude="**/menus/**" --exclude="**/unity3d/**" \
encrypted-onedrive:"Programs" --exclude="**/libreoffice/**" --ignore-errors --bwlimit 4M sync "/mnt/storage/dotfiles" encrypted-onedrive:"dotfiles" |& tee -a $LOGFILE
rclone -v --fast-list --size-only --links --bwlimit 4M --exclude="**/.stfolders/**" \
--exclude="**/.trashed**" --delete-excluded sync "/home/sintan/TempStorage/DCIM" encrypted-onedrive:"DCIM" |& tee -a $LOGFILE
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 "-----------------------------" | tee -a $LOGFILE