JustAnotherArchivist
b5e2a9ddce
Fix exit status on server errors, including outputting any error message from the server
Also replace -sv with the long options for consistency.
1 week ago
JustAnotherArchivist
648111aa3c
Add curl-env
2 months ago
JustAnotherArchivist
841dc2d6e0
Sort before diffing to handle different orders due to threading
4 months ago
JustAnotherArchivist
823ee71241
Allow empty value in HTTP_USER_AGENT_OVERRIDE to send no UA
4 months ago
JustAnotherArchivist
7cfa7cce6e
Check for old curl version
5 months ago
JustAnotherArchivist
0598780c3c
Fix crash on pipeline group without any jobs
6 months ago
JustAnotherArchivist
ec645c7b74
Reimplement archivebot-pipelines-count-jobs with pipeline state tracking and colours
This adds a secret undocumented environment variable for archivebot-jobs to dump the pipeline state on JSONL output, allowing archivebot-pipelines-count-jobs to know about stopping and dead pipelines and track them accordingly.
This also removes the '(regular pipelines)' line, which wasn't accurate anyway.
6 months ago
JustAnotherArchivist
ab812a7573
Allow for --insecure/-k for networks with invalid TLS certificates
6 months ago
JustAnotherArchivist
f221e9d1b1
Send consistent UA to IA
7 months ago
JustAnotherArchivist
cb86dace49
Show HTTP status code on errors
7 months ago
JustAnotherArchivist
f715a6616a
Support downloading files that are served directly
8 months ago
JustAnotherArchivist
e7561a4138
Percent-encode item and filenames in URL
8 months ago
JustAnotherArchivist
b9fe763899
Fix uploading empty files
Setting the Content-Length disables the chunking path in requests, which triggers a TypeError with the Wrapper object.
8 months ago
JustAnotherArchivist
8a7acf4429
Fix order of help text for CHANGE
9 months ago
JustAnotherArchivist
8bf1be6a80
Retain curl exit status, add curl --show-error, and emit LF on retrieval to a TTY
9 months ago
JustAnotherArchivist
95d1131aed
Exit non-zero if retrieving the IA file list fails
9 months ago
JustAnotherArchivist
f1587dc260
Fix waiting for Perl to exit
9 months ago
JustAnotherArchivist
cb939c45e0
Avoid buffering full output when using a non-modifying command like print
9 months ago
JustAnotherArchivist
951c99dc5c
Handle message generation for more cases
9 months ago
JustAnotherArchivist
68988cfd31
Rename exit status array to make ShellCheck happy
10 months ago
JustAnotherArchivist
656f5b1ac9
Fix exit status in messages on ia-tasks calls
`if ! command; then block; fi` correctly triggers the block when the command fails (i.e. this commit doesn't alter the behaviour on ia-tasks failures), but it also flattens and inverts the exit status. An alternative would be `if command; then :; else block; fi`, but I chose to use the explicit version of capturing the exit status into a temporary variable instead.
10 months ago
JustAnotherArchivist
5b4fceca1c
Replace the XML parsing insanity with ia-metadata and jq
Also skip _reviews.xml
10 months ago
JustAnotherArchivist
f8542f1d9f
Pass the curl exit status outwards
11 months ago
JustAnotherArchivist
687385dadf
Disable globbing
--upload-file is subject to globbing. This could in theory be used to upload multiple files in a single call, but that results in multiple separate uploads, and the download URLs get concatenated, so this usage was never working correctly.
11 months ago
JustAnotherArchivist
e2c41d7d56
Log autosizehint value
11 months ago
JustAnotherArchivist
e05bd2f009
Fix automatic size hint using the whole dir-to-ia directory rather than the item
11 months ago
JustAnotherArchivist
e2a4f868e0
Add autosizehint config option
11 months ago
JustAnotherArchivist
2f19cc02cb
Support K as a size suffix
11 months ago
JustAnotherArchivist
58d08ff8a6
Non-zero exit status on download failures
11 months ago
JustAnotherArchivist
ee672360ac
Add --regex
11 months ago
JustAnotherArchivist
7801c193dd
Add ia-download
11 months ago
JustAnotherArchivist
922a2de530
Add --optional
11 months ago
JustAnotherArchivist
83aa5aeed5
Fix style
11 months ago
JustAnotherArchivist
a311da4dea
Log version/commit
11 months ago
JustAnotherArchivist
fa81208a4b
Replace hardcoded 100 files per iteration with quota system that watches the item's task queue
11 months ago
JustAnotherArchivist
ddd5305608
Fix usage with only two arguments sending the URL and nick as commands after connecting
11 months ago
JustAnotherArchivist
cf1607f96e
Fix crash on non-understood payload digests
11 months ago
JustAnotherArchivist
8992d0bfc5
Add archivebot-tmp-log-check-and-delete
11 months ago
JustAnotherArchivist
4dd5cdf336
Better handling of errors: let curl print errors, extract API error message, and exit non-zero if anything fails
11 months ago
JustAnotherArchivist
0519d0f82f
Add pagination support
11 months ago
JustAnotherArchivist
15b5418776
Fix user/group resolution not having a timeout
1 year ago
JustAnotherArchivist
193091bbd5
Add HTTP_USER_AGENT_OVERRIDE and HTTPS_INSECURE environment variables
1 year ago
JustAnotherArchivist
de25125595
Needs more --
1 year ago
JustAnotherArchivist
870c1d72a2
Add grab-site-pack
1 year ago
JustAnotherArchivist
065294f5b2
Send a User-Agent
1 year ago
JustAnotherArchivist
cf76970fdd
Add --repo-list-urls
1 year ago
JustAnotherArchivist
bfe8a37c87
Remove stray debug print
1 year ago
JustAnotherArchivist
f1a0432b32
Add warc-get-rubbish-offset
1 year ago
JustAnotherArchivist
97515dbe68
Fix infinite loop on bad arguments
`shift 3` fails if there are fewer than 3 arguments, leading to an infinite loop when specifying fewer than the required arguments. Add explicit argument number checks with a descriptive error message.
1 year ago
JustAnotherArchivist
96a511e49f
Terminate the line if writing to a TTY
1 year ago