Added Elements into backup

This commit is contained in:
Marcin Woźniak 2021-10-24 09:13:34 +02:00
parent d2b874ba46
commit ef0402e22e
Signed by: y0rune
GPG Key ID: F204C385F57EB348

View File

@ -1,6 +1,7 @@
#!/bin/bash #!/bin/bash
MEGA_VOLUME="/Volumes/MEGA" MEGA_VOLUME="/Volumes/MEGA"
ELEMENTS="/Volumes/ELEMENTS"
MEGA="$HOME/MEGA" MEGA="$HOME/MEGA"
STARTED="$HOME/.config/backup-started-$(date +%d-%m)" 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 ->\ echo -e "[LOG] $(date) Ended $HOME/Documents/Collage/Semestr2 ->\
$MEGA/Documents/Collage/" $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" touch "$STARTED" && echo -e "[LOG] $(date) Created the file $STARTED"
echo -e "[LOG] $(date) Started $HOME/.ssh/ -> $MEGA/ssh" echo -e "[LOG] $(date) Started $HOME/.ssh/ -> $MEGA/ssh"