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 hidden (Show)

cloudsend.sh - v2.3.8 - FixHelp Latest Release

Published by tavinus 3 months ago

  • Fix for help message
  • Text for mkdir said it was deleting
cloudsend.sh - v2.3.7 - FixCols&Urls

Published by tavinus 3 months ago

  • Drops stty and uses tput to get screen size
  • unset $COLUMNS to get updated terminal sizes
  • Better handling of piped content
  • Fix URLS for piped send and when renaming files ( Fix #16 )
  • Piped send now show proper header and "file name" - (piped) in verbose info
cloudsend.sh - v2.3.6 - MultiFix2

Published by tavinus 3 months ago

  • Small aesthetic add-on to v2.3.5
cloudsend.sh - v2.3.5 - MultiFix

Published by tavinus 3 months ago

  • Fixed download URLs not being generated properly in some cases
  • Fixed errors when working with files and folders with spaces in their names
  • Internal changes to better track pathing on remote
  • Print URLs for download and access
  • Print plain text and escaped versions of URLs
  • Fixes for when using a link with a root folder defined (link?path=folder)
  • Verbose info alert when using links with root folders defined
  • Fix for when using links with root folders and base --target folders together
  • More information printed on Summary
  • Updates to README Documentation
cloudsend.sh - v2.3.4 - URL+Colors

Published by tavinus 3 months ago

  • Parses upload target download URL on verbose information (Fix #12)
  • Added colors to verbose information
  • Rebuilt most of the verbose information system
  • Added `-N|--no-color|--nocolor´ option for disabling colored output
  • Updates to --help info and README documentation
  • Fixed a bug on the -g globbing mode being set when it shouldn't
  • Code reorganization (moved a lot of stuff around)
  • Code cleaning (removed some unused stuff and commented code)
cloudsend.sh - v2.3.3 - TargetDir-1

Published by tavinus 3 months ago

Version 2.3.3

  • Minor revision of v2.3.2
  • Updated log messages
  • Fix Bad spacing of log in some cases

Version 2.3.2

  • Added the -T | --target <folder> option for setting a target folder on remote
    • Target folder tree will be created and all operations will happen inside it
    • Accepts tree. ex: --target 'folder1/folder2/folder3'
  • Added the -C | --mkdir option for creating folders at the remote
    • Accepts tree. ex: 'folder1/folder2/folder3' as input file
  • Better webdav messages handling
    • Ignores webdav "errors" for folders that already exists (parses as OK)
  • Code revision
  • Review of log messages
  • Update Readme.md
cloudsend.sh - v2.3.2 - TargetDir

Published by tavinus 3 months ago

  • Added the -T | --target <folder> option for setting a target folder on remote
    • Target folder tree will be created and all operations will happen inside it
    • Accepts tree. ex: --target 'folder1/folder2/folder3'
  • Added the -C | --mkdir option for creating folders at the remote
    • Accepts tree. ex: 'folder1/folder2/folder3' as input file
  • Better webdav messages handling
    • Ignores webdav "errors" for folders that already exists (parses as OK)
  • Code revision
  • Review of log messages
  • Update Readme.md
cloudsend.sh - v2.3.1 - Delete

Published by tavinus 3 months ago

  • Added the option to delete files and folders at the remote server.
  • Option -D|--delete and pass the file/folder to be deleted as if it was the file being sent.
cloudsend.sh - v2.3.0 - UserAgent-Referer

Published by tavinus 3 months ago

  • Added option -A|--user-agent for passing a user agent to curl -A
  • Added option -E|--referer for passing a referer to curl -e
  • Minor Code revision
cloudsend.sh - v2.2.8 - Abort on DAV errors option

Published by tavinus over 1 year ago

  • Better error handling
  • Better error messages and logs
  • Option to abort execution on Webdav errors -a | --abort-on-errors
cloudsend.sh - v2.2.7 - Webdav error detection

Published by tavinus over 1 year ago

Better error detection and handling.

Will detect both curl errors and webdav response errors.

Will print XML response at the end if not empty, eg:

image

cloudsend.sh - v2.2.6 - Limit Rates

Published by tavinus over 1 year ago

Uses the curl --limit-rates to limit the speed of the file transmission
Example parameters. 100K, 1M

cloudsend.sh - v2.2.5 - Send to Sub Folders - Fix #9

Published by tavinus almost 2 years ago

This version allows sending files to sub-folders inside the main shared folder.

The folder link must follow Nextcloud's notation, with ?path=%2FFOLDERNAME appended to the link.

The easiest way is to open the shared folder from the shared link and then copy the URL.

Example of a valid URL:

https://cloud.mydomain.tld/s/TxWdsNX2Ln3X5kxG?path=%2FMYFOLDER

Fixes #9 
cloudsend.sh - v2.2.4 - Send to subfolder - Fix #9

Published by tavinus almost 2 years ago

This version allows sending files to sub-folders inside the main shared folder.

The folder link must follow Nextcloud's notation, with ?path=%2FFOLDERNAME appended to the link.

The easiest way is to open the shared folder from the shared link and then copy the URL.

Example of a valid URL:

https://cloud.mydomain.tld/s/TxWdsNX2Ln3X5kxG?path=%2FMYFOLDER

Fixes #9 
cloudsend.sh - v2.2.2 - Fix names with hashtags

Published by tavinus almost 2 years ago

Makes it possible to send files and folders with '#' (hashtags) in their names.
Fixes #11

cloudsend.sh - v2.2.1 - Folders Polished

Published by tavinus over 3 years ago

Fix log messages for all modes of operation and execution parameters.

Fix #8

Moved --help and --version to the parameters pre-processing.

cloudsend.sh - v2.2.0 - Send Folders

Published by tavinus over 3 years ago

v2.2.0 is the first release that can send entire folder trees.
Just use a folder path as the input.

We traverse the whole folder, create all needed folder and subfolders and then send each file to its destination.

cloudsend.sh - v2.1.14 - Fix for files with whitespaces

Published by tavinus almost 4 years ago

cloudsend.sh - v2.1.12 - Help re-organise

Published by tavinus about 4 years ago

Re - organised help message, updated Readme.md with it.

cloudsend.sh - v2.1.11 - More folder examples 2

Published by tavinus about 4 years ago

Better Readme.md