Changed dir into $DIR

Signed-off-by: Marcin Woźniak <y0rune@aol.com>
This commit is contained in:
Marcin Woźniak 2021-04-10 18:01:05 +02:00
parent 4fc5bd0223
commit f245676926
Signed by: y0rune
GPG Key ID: F204C385F57EB348

View File

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
source ~/.password source $HOME/.password
mkdir -p ~/Movies/{Anime,Videos} mkdir -p ~/Movies/{Anime,Videos}
mkdir -p ~/Music mkdir -p ~/Music
@ -12,6 +12,9 @@ mkdir -p ~/Music
if [ -e /mnt/Synology/Systems ] if [ -e /mnt/Synology/Systems ]
then then
echo "Starting $(date)" > ~/.cache/.logSynology echo "Starting $(date)" > ~/.cache/.logSynology
sudo rsync -r --bwlimit=1024 --update --progress /usr/mega/ /mnt/Synology >> ~/.cache/.logSynology sudo rsync -r --bwlimit=512 --update --progress /usr/mega/ /mnt/Synology >> ~/.cache/.logSynology
rsync -r --bwlimit=512 --update --progress \
/home/yorune/Documents/Mega-Documents/Magisterka-Marcin/ \
~/Documents/Collage/Magisterka-Marcin
echo "Ending $(date)" >> ~/.cache/.logSynology echo "Ending $(date)" >> ~/.cache/.logSynology
fi fi