Ubuntu Pastebin

Paste from nick at Sat, 17 Jan 2015 18:15:17 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
#!/bin/bash

mountpoint -q /media/Gungnir_Odin

if [ $? = 1 ]

then 
	echo "not a mountpoint, stopping script"

else 
	rsync -raz --progress /mnt/samba/Pictures /media/Gungnir_Odin/Pictures >> /home/nick/Documents/cron.log 2>&1

fi
Download as text