What part of that do you want to automate? If you just want a command that does that, and only that, put
Code:
#!/bin/bash
mount_smbfs -I 192.168.0.12 //pablo@server1/backup /mnt/back
in a file, make it executable, and run it when you wish.
You can also use the
alias functionality of
bash and, if you want more flexibility, look into the
autofs system for automatically mounting
cifs files as needed. Once that's set up, a simple reference to
/mnt/back (e.g., a
ls /mnt/back) will mount the remote file system and make it available to the command needing it.