Skip to content

Commit

Permalink
notify about size limits for on-the-fly compress/archive, and upcomin…
Browse files Browse the repository at this point in the history
…g directory support
  • Loading branch information
leondutoit committed May 27, 2020
1 parent e45ac99 commit 06e31dd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/tacl
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ if [[ $# -lt 1 ]]; then
fi

readonly admonish="Keep in mind that uploads using this method cannot be resumed"
readonly notify="TSD will soon add directory support to tacl - until then, this is limited to uploading 5gb"
readonly gpg_aes_deprecation="This feature has been deprecated, and is available only in v.2.3.0 and before"

pnum_from_uname() {
Expand Down Expand Up @@ -100,6 +101,7 @@ import_data() {
elif [[ $PRE == 'compress' ]]; then
echo 'data import with compression'
echo "${admonish}"
echo "${notify}"
exit_if_is_directory "$INPUT_DATA"
optionally_append_extension_to_file $POST "$INPUT_DATA" 'gz'
gzip -9 < "$INPUT_DATA" |
Expand All @@ -121,6 +123,7 @@ import_data() {
elif [[ $PRE == 'archive' ]]; then
echo 'data import with tar'
echo "${admonish}"
echo "${notify}"
optionally_append_extension_to_file $POST "$INPUT_DATA" 'tar'
tar -cf - "$INPUT_DATA" |
tacl_data --tsd_api_key \
Expand All @@ -137,6 +140,7 @@ import_data() {
elif [[ $PRE == *"archive"* ]] && [[ $PRE == *"compress"* ]]; then
echo 'data import with tar and gzip'
echo "${admonish}"
echo "${notify}"
optionally_append_extension_to_file $POST "$INPUT_DATA" 'tar.gz'
tar -cf - "$INPUT_DATA" | gzip -9 |
tacl_data --tsd_api_key \
Expand Down

0 comments on commit 06e31dd

Please sign in to comment.