From ef0402e22e6f0eecdea6b319eadc1fdbf6619eba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Wo=C5=BAniak?= Date: Sun, 24 Oct 2021 09:13:34 +0200 Subject: [PATCH] Added Elements into backup --- .local/bin/backupSynologyMac | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.local/bin/backupSynologyMac b/.local/bin/backupSynologyMac index 1b68d6c..7166ff2 100755 --- a/.local/bin/backupSynologyMac +++ b/.local/bin/backupSynologyMac @@ -1,6 +1,7 @@ #!/bin/bash MEGA_VOLUME="/Volumes/MEGA" +ELEMENTS="/Volumes/ELEMENTS" MEGA="$HOME/MEGA" STARTED="$HOME/.config/backup-started-$(date +%d-%m)" @@ -16,6 +17,16 @@ $MEGA/Documents/Collage/Semestr2" echo -e "[LOG] $(date) Ended $HOME/Documents/Collage/Semestr2 ->\ $MEGA/Documents/Collage/" + echo -e "[LOG] $(date) Started $HOME/Documents/Collage/Semestr2 ->\ +$ELEMENTS/Collage/Semestr2" + rsync --bwlimit=2048 --update --progress -r \ + --exclude '*.mp4' --exclude '*.mkv'\ + --exclude '.debris' \ + "$HOME/Documents/Collage/Semestr2/"\ + "$ELEMENTS/Collage/Semestr2/" + echo -e "[LOG] $(date) Ended $HOME/Documents/Collage/Semestr2 ->\ +$ELEMENTS/Documents/Collage/" + touch "$STARTED" && echo -e "[LOG] $(date) Created the file $STARTED" echo -e "[LOG] $(date) Started $HOME/.ssh/ -> $MEGA/ssh"