I've setup a network share between two Jaunty machines. It works like a dream, though I do have a question. Can I address the share from a command line? I have a script to do backups across the network, but using the new Jaunty method, the path (in Nautilus) is of the form "smb://<machine name>/<share name>". This is fine in Nautilus, but doesn't seem to work from the command line. I get "No such file or directory" errors if I try! Is there some way to get around this?
You can get ftp-like access with "smbclient". Have a look at "man smbclient". The command is like: smbclient //server/sharename
Drop by and visit some time
Thanks for that. It would let me write a script, yes. My current method involves using rsync, which I don't think can be made to work that way. Perhaps I need to re-think how I keep my machines synchronized!
i think it shoudl work. just use smbclient to mount the share on the local filesystem, then write the rsynch command to target that directory. the technology used to facilitate the mount shoudl be hidden from any application that uses that mount point.
Last edited by doas777; July 19th, 2009 at 01:35 AM.
Now I'm catching on. I'll give that a go! Many thanks for the help.
You can use a cifs mount to mount a Samba share in a directory on the client, as if it was a partition attached to the client, and rsynch to that.
I tried CIFS and it worked a treat. Thanks for the help!
View Tag Cloud
Ubuntu Forums Code of Conduct