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
Bot releases are hidden (Show)
Published by tavinus about 4 years ago
Adds examples to sending folders with tar
, gzip
, zip
to help and readme.
Published by tavinus about 4 years ago
Uses full terminal column width, instead of FULL - 1
Fixes the connection bar in some systems
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
Published by tavinus over 4 years ago
Where Were We ?
🧷
Published by tavinus over 4 years ago
Code Review.
Our Snow Leopard OSX
.
Just cleaning the code, organizing and commenting.
Published by tavinus over 4 years ago
Examples Incorporated. 🍺
Published by tavinus over 4 years ago
Disables curl globbing when not globbing.
Published by tavinus over 4 years ago
Better help and readme text and examples.
Published by tavinus over 4 years ago
Published by tavinus over 4 years ago
-
or .
as input file name-r <filename>
-g
option-r <name>
option (rename)--help
More info on globbing:
Published by tavinus over 4 years ago
Script rebuild; many internal changes
--help
and readme.md
-p
now asks for a password as a parameter, as in -p <pass>
-e
uses an envrionment variable password (substitutes the old -p
option)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.
Published by tavinus over 4 years ago
First repo version, last gist version.
Migrated from
https://gist.github.com/tavinus/93bdbc051728748787dc22a58dfe58d8