cloudsend.sh

Bash script that uses curl to send files and folders to a nextcloud/owncloud shared folder. Also available to create dirs and delete files/folders, among other utilities.

AGPL-3.0 License

Stars
126

Bot releases are visible (Hide)

cloudsend.sh - v2.1.10 - More folder examples

Published by tavinus about 4 years ago

Adds examples to sending folders with tar, gzip, zip to help and readme.

cloudsend.sh - v2.1.9 - Fix Screensize

Published by tavinus about 4 years ago

Uses full terminal column width, instead of FULL - 1
Fixes the connection bar in some systems

cloudsend.sh - v2.1.8 - Progress Bar

Published by tavinus about 4 years ago

Shows curl --progress-bar when not running in quiet mode.

Fix for #4

NOTE: Depending on the file size and the speed of the upload, it will be so fast that no upload progress bar will be shown. In these cases you will end up seeing only the connection bar running and then it will be over.

Had to fix $COLUMNS detection which was causing the progress bar to span multiple lines in some systems.
Now using the current screen columns - 1 (detected before running curl using stty).
Default $COLUMNS size is 80.

You can create a big blank test file with something like

$ dd if=/dev/zero of=testfile.txt count=100 bs=1048576

(this is for a 100MB file)

Then you can test sending it

$ ./cloudsend.sh ./testfile.txt https://cloud.my.site.com/index.php/s/e3FK2P1y4ghC7pd
cloudsend.sh - v2.1.7 - Where Were We?

Published by tavinus over 4 years ago

Where Were We ?

🧷

cloudsend.sh - v2.1.5 - Code Review

Published by tavinus over 4 years ago

Code Review.

Our Snow Leopard OSX.

Just cleaning the code, organizing and commenting.

cloudsend.sh - v2.1.4 - Examples Inc

Published by tavinus over 4 years ago

Examples Incorporated. 🍺

cloudsend.sh - v2.1.3 - Pipes and Globs (fix2)

Published by tavinus over 4 years ago

Disables curl globbing when not globbing.

cloudsend.sh - v2.1.2 - Pipes and Globs (readme-help)

Published by tavinus over 4 years ago

Better help and readme text and examples.

cloudsend.sh - v2.1.1 - Pipes and Globs (fix)

Published by tavinus over 4 years ago

  • Small fix to file name parsing VS globbing
  • Updated readme globbing link
cloudsend.sh - v2.1.0 - Pipes and Globs

Published by tavinus over 4 years ago

  • Adds stdin as input option (piped content)
    • uses either - or . as input file name
    • requires -r <filename>
  • Allows to use globbing at the input
    • can send multiple files by using globs
    • requires -g option
    • not compatible with -r <name> option (rename)
  • Adds new checks and parsing
  • Cleaned up unused code
  • Updated readme and --help

More info on globbing:

cloudsend.sh - v2.0.0 - Rebuild

Published by tavinus over 4 years ago

Script rebuild; many internal changes

  • Changes how options and parameters are parsed
  • Added many validation and checking functions
  • Options can now come in any order and after the filename and URL Link
  • Updated and added verbose messages
  • Updated quiet mode
  • Updated --help and readme.md

Password parsing has changed and is NOT compatible with prior versions

  • -p now asks for a password as a parameter, as in -p <pass>
  • new option -e uses an envrionment variable password (substitutes the old -p option)
cloudsend.sh - v0.1.7 - Rename destination file

Published by tavinus over 4 years ago

Adds option -r / --rename to change the destination (uploaded) file name.
Updated --help and readme.md to include the rename option.

cloudsend.sh - v0.1.6 - Gist migrated

Published by tavinus over 4 years ago

First repo version, last gist version.

Migrated from
https://gist.github.com/tavinus/93bdbc051728748787dc22a58dfe58d8