As an alternative to rsync, one way you could accomplish this task is by using
wget with the -m (--mirror) switch, which applies -r (recursion), -N (matching timestamps to the remote file) an infinite level depth that you may or may not wish to curtail using the -l switch, and also applies the --no-remove-listing switch (an FTP transfer option that I don't think matters when transferring via HTTP)
We will also need to target the directory for storage explicitly to avoid dumping everything into the directory in which wget was launched (default behaviour as I recall)
We can do this with the -P switch as in -P target or --directory-prefix=target
You will also likely want to avoid climbing above the source directory you are targeting with the -np (--no-parent) switch which applies:
Do not ever ascend to the parent directory when retrieving recursively.
This is a useful option, since it guarantees that only the files below
a certain hierarchy will be downloaded.
You can specify credentials as follows:
Specifies the username user and password password for both FTP and HTTP file retrieval. These parameters can be overridden using the --ftp-user and
--ftp-password options for FTP connections and the --http-user and --http-password options for HTTP connections.
Putting all this together, I end up with a command that looks like this.
wget -m 192.168.0.22/webdav/ -np -P ./media/martin/internal-large/CCTV-TWO/
In your case you may or may not have to add the --user=admin and --password=whateveritis switches.
There may be other useful switches for your particular use case. There's a detailed man page available with the command
man wget One in particular you might wish to review is
--no-clobber I've included an excerpt from the man page below:
If a file is downloaded more than once in the same directory,
Wget's behavior depends on a few options, including -nc. In
certain cases, the local file will be clobbered, or overwritten,
upon repeated download. In other cases it will be preserved.
When running Wget without -N, -nc, -r, or -p, downloading the same
file in the same directory will result in the original copy of file
being preserved and the second copy being named file.1. If that
file is downloaded yet again, the third copy will be named file.2,
Therefore, ""no-clobber"" is actually a misnomer in this
mode---it's not clobbering that's prevented (as the numeric
suffixes were already preventing clobbering), but rather the
multiple version saving that's prevented.
When running Wget with -r or -p, but without -N, -nd, or -nc, re-
downloading a file will result in the new copy simply overwriting
the old. Adding -nc will prevent this behavior, instead causing
the original version to be preserved and any newer copies on the
server to be ignored.