Scripts for upload and download verification

I have put a few scripts up in the community git hub

uploading with the upload script will print out the stats from the upload and safe them to a file called uploads.txt for latter use.

contents of uploads.txt will have the full command to try a download with info on duration to upload, md5sum, size of file, cost in usd, date of upload.

ant file download --retries 20 02aa9205b26ba819090650a230cb180bd21e628daa2327b2b4ff086402c4d25c lmde-6-cinnamon-64bit.iso  # 00h 09m 34s md5sum 34c4a18045220b0de26edb0d8e4d67ef  2.6G $1.21 17/11/25

when running the script download_and_verify.sh

which can be run direct from the git hub with the test files in the github version of uploads.txt with

curl -s https://raw.githubusercontent.com/safenetforum-community/upload-download-and-verify/refs/heads/main/uploads.txt -o uploads.txt && bash <(curl -s https://raw.githubusercontent.com/safenetforum-community/upload-download-and-verify/refs/heads/main/download_and_verify.sh)

will download verify the files via md5sum and print a summary.

10 Likes

How can I test my list of files using this method? Is it enough to use a .txt file with the date addresses or are all the parameters from your example required for it to work?


Check out the Impossible Futures!

3 Likes

It will need all the info but you can substitute with place holder info if you don’t have it. But it will need the md5sum of the file to compare against the downloaded file.

Also it deletes the downloaded file after verification to save space when the list gets very long and large

In format

ant file download --retries 20 02aa9205b26ba819090650a230cb180bd21e628daa2327b2b4ff086402c4d25c lmde-6-cinnamon-64bit.iso  # 00h 09m 34s md5sum 34c4a18045220b0de26edb0d8e4d67ef  2.6G $1.21 17/11/25
3 Likes