Mass uploading files to ownCloud (the easy way)
2014-10-06
In my previous post, I've described a kinda complicated but command-line based user-level way to mass upload files to ownCloud, using the cadaver WebDAV client.
Well. Erm... There are WebDAV filesystems implementations out there. See ?
So I did
Note that disabling locks is indeed required for ownCloud, so I needed to edit
After a
So, no
Easy.
Well. Erm... There are WebDAV filesystems implementations out there. See ?
$ yum search webdav|grep -i filesystem davfs2.armv6hl: A filesystem driver for WebDAV
So I did
yum install davfs2-ed, and that just worked. And I've configured davfs2, following a tutorial like these one is fine enough:
- wiki.archlinux.org/index.php/Davfs
- chicuongle.blogspot.fr/2012/12/how-to-mount-storage-of-boxnet-in-linux.html
Note that disabling locks is indeed required for ownCloud, so I needed to edit
davfs2.conf
use_locks 0
After a
mount /mnt/owncloudto locally bind your ownCloud webDAV to a directory, to make recursively upload a full directory tree, it is easy as this:
rsync -vr --progress --bwlimit=123 /path/to/my/directory/. /mnt/owncloud/my_sub_dir/.In case the
rsyncstops in the middle of the upload, the command line can be entered again to resume the upload.
So, no
cadaver, no
shelldark magic, just a
mountand an
rsync.
Easy.
No comments
Flux RSS des commentaires de cet article