#!/bin/bash ## Script needs to be run with proper privileges so that the SMB share can be mounted properly without prompting for a password. mount -t cifs //excalibur/smb_share /mnt -o user=simon,pass=SamplePassword cp /mnt/ /Path/to/copy/destination sync umount /mnt