Internet Archive CLI Tool: Difference between revisions

From Minetest
No edit summary
Line 31: Line 31:
== Internet Archive CLIs tool  ==
== Internet Archive CLIs tool  ==


As of Fall 2023, the link below worked and pointed to a Python binary script:
The Internet Archive can be used for FOSS distribution and backup purposes. The procedures used are finicky, flaky, and unreliable. However, this approach may be useful to a limited extent.
 
The steps below worked as of Fall 2023. They may or may not still work.
 
S1) As of Fall 2023, the link below worked and pointed to a Python binary script:


https://ia800702.us.archive.org/27/items/ia-pex/ia
https://ia800702.us.archive.org/27/items/ia-pex/ia


If the script was installed on Debian 11 and chmod'd to 755, it provided CLI access to Internet Archive. The following command configured the tool:
Install the script on a Debian 11 box and chmod it to 755. This may then provide CLI access to Internet Archive.


ia configure
S2) Use the following command to configure the tool:


A command similar to the following could then be used to upload a tarball to Internet Archive [where it would be downloadable by the public]:
ia configure
 
S3) A command similar to the following may then work to upload a source code tarball to Internet Archive:


  ia upload \
  ia upload \
Line 46: Line 52:
  minetest-assemble-231123.tgz
  minetest-assemble-231123.tgz


The uploader needed to enter some information manually using the Internet Archive web GUI. This included original creator, original date, and description.
The user needs to enter some information manually using the Internet Archive web GUI. This includes original creator, original date, and description.


The "Final_Minetest_Assemble" string in this example specified a unique and unchangeable item ID.
The "Final_Minetest_Assemble" string in this example should be replaced with a unique item ID. Note: The ID can't be changed later.


To replace the uploaded file, without deleting the item ID, one could do this:
S4) To replace the uploaded file, without deleting the item ID, one could try this:


  ia delete Final_Minetest_Assemble
  ia delete Final_Minetest_Assemble
  # repeat the ia upload
  # repeat the ia upload


Warning #1: If one deleted the item ID at the GUI level, it was then gone forever.
S5) Two warnings:
 
Warning #1: If one deletes the item ID at the GUI level, it is then gone forever.
 
Warning #2: It isn't possible to change mediatype at the GUI level.
 
S6) If a source-code tarball is uploaded in this manner, one can upload a JPEG or PNG file subsequently to the same item ID:
 
ia upload \
Final_Minetest_Assemble \
screenshot.png


Warning #2: It wasn't possible to change mediatype at the GUI level.
If things work correctly, the IArchive GUI may then display the screenshot in connection with the tarball.


'''End of page'''
'''End of page'''

Revision as of 21:14, 23 November 2023



Introduction

This page provides some information related to an Internet Archive CLI tool.

Internet Archive CLIs tool 

The Internet Archive can be used for FOSS distribution and backup purposes. The procedures used are finicky, flaky, and unreliable. However, this approach may be useful to a limited extent.

The steps below worked as of Fall 2023. They may or may not still work.

S1) As of Fall 2023, the link below worked and pointed to a Python binary script:

https://ia800702.us.archive.org/27/items/ia-pex/ia

Install the script on a Debian 11 box and chmod it to 755. This may then provide CLI access to Internet Archive.

S2) Use the following command to configure the tool:

ia configure

S3) A command similar to the following may then work to upload a source code tarball to Internet Archive:

ia upload \
--metadata=mediatype:software \
Final_Minetest_Assemble \
minetest-assemble-231123.tgz

The user needs to enter some information manually using the Internet Archive web GUI. This includes original creator, original date, and description.

The "Final_Minetest_Assemble" string in this example should be replaced with a unique item ID. Note: The ID can't be changed later.

S4) To replace the uploaded file, without deleting the item ID, one could try this:

ia delete Final_Minetest_Assemble
# repeat the ia upload

S5) Two warnings:

Warning #1: If one deletes the item ID at the GUI level, it is then gone forever.

Warning #2: It isn't possible to change mediatype at the GUI level.

S6) If a source-code tarball is uploaded in this manner, one can upload a JPEG or PNG file subsequently to the same item ID:

ia upload \
Final_Minetest_Assemble \
screenshot.png

If things work correctly, the IArchive GUI may then display the screenshot in connection with the tarball.

End of page