LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to access davs://****.prod.phx3.secureserver.net:2078/ from the terminal (path?). (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-access-davs-%2A%2A%2A%2A-prod-phx3-secureserver-net-2078-from-the-terminal-path-4175525211/)

frleo 11-12-2014 01:33 PM

How to access davs://****.prod.phx3.secureserver.net:2078/ from the terminal (path?).
 
I want to access the davs://** location from a shell script. I want copy files from my local drive to my website with a shell scrpt. I can drag and drop by way of the file manager, but a script needs the exact path. The location indicated by the file manager is davs://****.prod.phx3.secureserver.net:2078/ (astrix keeps it private for me). The above lacation is my godaddy site. The above location seems to be a mounted volume. On my PC, I am able to map to this location, and so it ends up as Z: It would be very handy to be able to map to the above location on my Linux box.

Keith Hedger 11-12-2014 06:50 PM

Just use the mount command and mount the dav to a folder with davfs, you will probably need to install a few bits of software, fuser, davfs etc depends on your distro, I use davfs to mount stuff from my tablet to my desktop, then its just like any other folder, I'm away from my pc at the moment so I can't give you the exact command to use for mounting davfs but a little googling should do tne trick.

frleo 11-12-2014 10:04 PM

I installed davfs2 a few bits etc. googled. Now I can not even access davs://****.prod.phx3.secureserver.net:2078/ from the file manager anymore. There's a good reason why I identified myself as a newbie. I'm surprised there isn't a definitive "cookbook" style answer.
It seems /etc/fstab wants a url with https://... I'm trying to mount an object that starts with davs://

Keith Hedger 11-13-2014 04:36 AM

No don't put it in your fstab unless you know what you are doing and you need to have permanent access to the share.
The command to mount a webdav share is:
Code:

mkdir /tmp/davshare
sudo mount -t davfs http://192.168.1.201:8080 /tmp/davshare

In my case this is my phone running a webdav server so 'ls' gives:
Code:

ls /tmp/davshare


acct    default.prop    init              init.smdk4210.usb.rc  lpm.rc      res      system              vendor
cache  dev            init.bt.rc        init.trace.rc        mnt          sbin    tmp
config  efs            init.goldfish.rc  init.usb.rc          preload      sdcard  ueventd.goldfish.rc
d      etc            init.rc          lib                  proc        storage  ueventd.rc
data    fstab.smdk4210  init.smdk4210.rc  lost+found            recovery.rc  sys      ueventd.smdk4210.rc

To unmount do:
Code:

sudo umount /tmp/davshare
You will need davfs2 installed.
You will probably have to belong to the davfs2 group

Be aware webdeavs are not particularly fast so putting it in the fstab may cause startup/shutdown delays.

NEVER muck about with your fstab until you are sure of the settings to use and that they work, also BEFORE changing any system files like fstab make a backup and be sure you have an alternate boot method in case something goes really wrong so that you can undo any changes you may have made.

frleo 11-13-2014 03:14 PM

Looks promising
 
The only issue I have now is the exact URL that I should use. the mount command will entertain any request with a URL starting in http://..... The only handle I have to the volume I want to mount , starts with davs://.... ends with :2078. I want to mount the files for my godaddy site: http://GLT.xyz/
Please advise. Cheers!

I have loaded an object to my Desktop from the cPanel (godaddy) that "seems" to mount the file system and make it available in the file manager (drag and drop works fine). This volume is called davs://.... ends with :2078, which does not show up with $ mount, which shows all mounted objects. And so, it's not really "mounted" and I have no path to access it with a shell script.

frleo 11-13-2014 05:57 PM

Got it!
 
I got a true URL by going to the cPanel. I plugged it in and I'm in business. Thanks for holding my hand.

Keith Hedger 11-13-2014 06:01 PM

Please mark the thread a solved, to help others searching the forum find a solution


All times are GMT -5. The time now is 12:35 AM.