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:
parent
f1eec7186a
commit
eb98c97d1a
1 changed files with 21 additions and 13 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue