removing sync part bcs bad
This commit is contained in:
parent
d43cf7a839
commit
3ade83f1a1
1 changed files with 0 additions and 56 deletions
56
sd-script.sh
56
sd-script.sh
|
@ -40,60 +40,4 @@ echo -e "Files from SD card will be removed in 3 seconds. If you don't want to d
|
|||
sleep 3
|
||||
$doso chown -R $USER:$USER $srcdir/
|
||||
rm -fv $srcdir/*
|
||||
|
||||
#Copying to other PCS
|
||||
while true; do
|
||||
printf "[✅]All good. We can now send the files to other PCs. These are some presets:
|
||||
|
||||
1)
|
||||
Host: Waffelo's Pinephone
|
||||
IP: 192.168.0.148
|
||||
User: alarm
|
||||
dir: .local/usr/Pictures/nikon
|
||||
|
||||
2)
|
||||
Host: Waffelo's PC
|
||||
IP: 192.168.0.203
|
||||
User: waffelo
|
||||
dir: /media/hdd/Pictures/nikon
|
||||
|
||||
3)
|
||||
Host: Jacob's Pinephone
|
||||
IP: 192.168.0.157
|
||||
User: alarm
|
||||
dir: .local/usr/Pictures/nikon
|
||||
|
||||
4)
|
||||
Host: Jacob's PC
|
||||
IP: 192.168.0.184
|
||||
User: jacob
|
||||
dir: /mnt/hdd/nikon
|
||||
|
||||
5)
|
||||
Quit script."
|
||||
|
||||
read -p "Choose a number (or 'all'): " num
|
||||
|
||||
case $num in
|
||||
1) if rsync -rvu --ignore-existing $destdir/ alarm@192.168.0.148:$HOME/.local/usr/Pictures/nikon/pics-$(date '+%d-%b-%Y')/ ; then
|
||||
echo -e "[✅]$GREEN Copying successful.$ENDCOLOR"
|
||||
else echo -e "[❌] $RED Copying failed. Check IP in settings.$ENDCOLOR"; fi;;
|
||||
|
||||
2) if rsync -rvu --ignore-existing $destdir/ waffelo@192.168.0.203:/media/hdd/Pictures/nikon/pics-$(date '+%d-%b-%Y')/ ; then
|
||||
echo -e "[✅]$GREEN Copying successful.$ENDCOLOR"
|
||||
else echo -e "[❌] $RED Copying failed. Check IP in settings.$ENDCOLOR"; fi;;
|
||||
|
||||
3) if rsync -rvu --ignore-existing $destdir/ alarm@192.168.0.157:/home/alarm/.local/usr/Pictures/nikon/pics-$(date '+%d-%b-%Y')/ ; then
|
||||
echo -e "[✅]$GREEN Copying successful.$ENDCOLOR"
|
||||
else echo -e "[❌] $RED Copying failed. Check IP in settings.$ENDCOLOR"; fi;;
|
||||
|
||||
4) if rsync -rvu --ignore-existing $destdir/ jacob@192.168.0.184:/mnt/hdd/nikon/pics-$(date '+%d-%b-%Y')/ ; then
|
||||
echo -e "[✅]$GREEN Copying successful.$ENDCOLOR"
|
||||
else echo -e "[❌] $RED Copying failed. Check IP in settings.$ENDCOLOR"; fi;;
|
||||
|
||||
5) exit 0;;
|
||||
|
||||
*) echo "Invalid response."
|
||||
esac
|
||||
done
|
||||
exit 0
|
||||
|
|
Loading…
Reference in a new issue