2021-03-22 21:27:54 +01:00
|
|
|
#!/bin/bash
|
2021-04-10 18:01:05 +02:00
|
|
|
source $HOME/.password
|
2021-03-22 21:27:54 +01:00
|
|
|
mkdir -p ~/Movies/{Anime,Videos}
|
|
|
|
mkdir -p ~/Music
|
|
|
|
|
2021-08-08 17:43:57 +02:00
|
|
|
#sudo mount -t cifs //192.168.0.220/Mega -o username=${USERNAME},password=${PASSWORD},vers=2\.0 /mnt/synology
|
2021-03-22 21:27:54 +01:00
|
|
|
#sudo mount -t cifs //192.168.0.220/music -o username=${USERNAME},password=${PASSWORD},vers=2\.0 ~/Music
|
|
|
|
#sudo mount -t cifs //192.168.0.220/usbshare1/Video -o username=${USERNAME},password=${PASSWORD},vers=2\.0 ~/Movies/Videos
|
|
|
|
#sudo mount -t cifs //192.168.0.220/usbshare1/Anime -o username=${USERNAME},password=${PASSWORD},vers=2\.0 ~/Movies/Anime
|
|
|
|
#sudo mount -t cifs //192.168.0.220/Studia -o username=${USERNAME},password=${PASSWORD},vers=2\.0 ~/Collage
|
|
|
|
|
2021-08-08 17:43:57 +02:00
|
|
|
if [ -e /mnt/synology/Systems ]
|
2021-03-22 21:27:54 +01:00
|
|
|
then
|
|
|
|
echo "Starting $(date)" > ~/.cache/.logSynology
|
2021-08-08 17:43:57 +02:00
|
|
|
sudo rsync -r --bwlimit=512 --update --progress /home/yorune/MEGA/ /mnt/synology >> ~/.cache/.logSynology
|
2021-04-10 18:01:05 +02:00
|
|
|
rsync -r --bwlimit=512 --update --progress \
|
|
|
|
/home/yorune/Documents/Mega-Documents/Magisterka-Marcin/ \
|
|
|
|
~/Documents/Collage/Magisterka-Marcin
|
2021-08-08 17:43:57 +02:00
|
|
|
cp -rv /home/yorune/git/{dwm,dwmblocks,st,dmenu,mons,slock} ~/MEGA/Systems/Linux/apps
|
2021-03-22 21:27:54 +01:00
|
|
|
echo "Ending $(date)" >> ~/.cache/.logSynology
|
|
|
|
fi
|