WebDAV is a protocol that facilitates uploading and downloading files through HTTP (port 80) and HTTPS (port 443). Whenever a WebDAV service is being ran over SSL it is called Secure WebDAV. DAVfs is a file system interface to the WebDAV protocol, it works with WebDAV and Secure WebDAV. The command mount uses DAVfs to recognize a WebDAV share as a regular file system so that other tools, scripts, services, and users can access the share's contents (as a file system with actual directories).
Here's an easy solution for uploading files to your WebDAV account. These instructions work on Linux, FreeBSD, Solaris, and probably other distributions too.
1. Make a local directory for transferring files.
mkdir <your directory>;2. Stop other processes and users from interfering with your transfers.
chown root:root <your directory> && chmod 770 <your directory>;3. Mount your online cloud share using davfs. Enter your password when the prompt appears asking for it.
mount -t davfs -o username=<your username> https://example.com <your directory>4. Copy files to your directory piped through a progress monitor. The progress monitor shows a status bar and file transfer statistics. This command acts just like cp but with transfer statistics.
rsync --progress <file> <your directory>;When you're finished uploading your files, just unmount your directory.
umount <your directory>;Do you have a suggestion about how to improve this blog? Let's talk about it. Contact me at David.Brenner.Jr@Gmail.com or 720-584-5229.
Comments
Post a Comment
Comments to this blog will be reviewed within 72 hours. No trolling please