hi,
I use my macbook on a lot of nets wifi and i've to backup some my folders to a samba server.
I'd like to use a simple rsync command (I tried it from the terminal and it's ok).
Now that's the problem: I should like to run automatically a script which do these two things:
connect to the samba server (I think I could do it with the mount command like "mount -t smbfs //usr[email protected]/backups /Users/myuser/directoryToMount")
execute the rsync command (only if the mount were ok)
making the script could be easy (saving the terminal instructions in a .sh file), but how can I automatically run the script where I connect to a wifi net with a specific ssid or, better, when I connect to wired ethernet?
I also would like to view a grow popup with the result of the operation (if it's a success or a fail)
sorry for my bad English!
Alberto
I use my macbook on a lot of nets wifi and i've to backup some my folders to a samba server.
I'd like to use a simple rsync command (I tried it from the terminal and it's ok).
Now that's the problem: I should like to run automatically a script which do these two things:
connect to the samba server (I think I could do it with the mount command like "mount -t smbfs //usr[email protected]/backups /Users/myuser/directoryToMount")
execute the rsync command (only if the mount were ok)
making the script could be easy (saving the terminal instructions in a .sh file), but how can I automatically run the script where I connect to a wifi net with a specific ssid or, better, when I connect to wired ethernet?
I also would like to view a grow popup with the result of the operation (if it's a success or a fail)
sorry for my bad English!
Alberto