1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
|
#!/bin/bash
if ! grep "/mein-mountpoint" /etc/mtab &> /dev/null; then
mount.smbfs //ip oder netbiosname/freigabe /mein-mountpoint
cp /mein-mountpoint/stuff/* /backup
umount /mein-mountpoint
else
cp /mein-mountpoint/stuff/* /backup
fi
|