I would like to use a script to copy a sql file to a nas drive location.
for example it would copy backup.sql to //10.1.1.124/backup/Backups.
First mount this shared directory to your system .
This would help you : Here
Then try :
Change the options as your needs . Dont for get to make your script executable .