Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/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/<files_to_copy> /Path/to/copy/destination
- sync
- umount /mnt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement