Mella – ownCloud upload in bash via WebDAV using curl

GitHub Repository
Download Version 1.1

Copyright ©2016 by Florian Beer

This script comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions. See CC BY-NC-SA 4.0 for details.



Mella is a bash script for file uploads to ownCloud.

Store your ownCloud credentials in ~/.mella.conf or any other file and pass it’s path via the -c commandline switch. Target is you ownCloud WebDAV URL. You can find it by clicking on “Settings” in the lower left hand corner of ownCloud’s webinterface.


 -c FILE  optional path to credentials file (default is ~/.mella.conf)
 -v       increase verbosity
 -k       allow curl to make "insecure" SSL connections and transfers
 -h       show this message
 -V       show version number


  • Save this shell script to e.g. /usr/local/bin/mella and make it executable: chmod +x /usr/local/bin/mella
  • Create a new file in your home directory called .mella.conf and list your username and password as the only content, separated by a colon username:password.


mella -c myconfig.conf backup.tar.gz
mella backup.tar.gz