Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gdamdam/iagitup
A command line tool to archive a git repository from GitHub to the Internet Archive.
https://github.com/gdamdam/iagitup
archive archiving cli git github internet-archive internetarchive
Last synced: about 1 month ago
JSON representation
A command line tool to archive a git repository from GitHub to the Internet Archive.
- Host: GitHub
- URL: https://github.com/gdamdam/iagitup
- Owner: gdamdam
- License: gpl-3.0
- Created: 2017-05-18T03:29:19.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-02-15T14:19:01.000Z (almost 4 years ago)
- Last Synced: 2024-12-09T00:12:29.733Z (about 2 months ago)
- Topics: archive, archiving, cli, git, github, internet-archive, internetarchive
- Language: Python
- Homepage:
- Size: 55.7 KB
- Stars: 91
- Watchers: 7
- Forks: 9
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-digital-preservation - iagitup - A command line tool to archive a git repository from GitHub to the Internet Archive. (Replay tools / Page pushers)
README
# iagitup - a command line tool to archive a GitHub repository to the Internet Archive
The python script downloads the GitHub repository, creates a [git bundle](https://git-scm.com/docs/git-bundle) and uploads it on an Internet Archive item with metadata from the GitHub API and a description from the repository readme.
## Prerequisites
This script strongly recommends Linux or some sort of POSIX system (such as Mac OS X).* **Internet Archive Account** - If you don't already have an account on archive.org, [register](https://archive.org/account/login.createaccount.php).
* **Python** - This script should work with Python 3.9.
* **libffi-dev and libssl-dev**
* **git**## Install iagitup
Prerequisites (with Debian or Ubuntu):
sudo apt update
sudo apt install python python-pip python-dev libffi-dev libssl-dev git### from source code:
Clone the repo and install the package...
git clone https://github.com/gdamdam/iagitup.git
cd iagitup
pip install .## Usage
To upload a repo:
iagitup
You can add also custom metadata:
iagitup --metadata=
To know the version:
iagitup -v
Example:
iagitup https://github.com//
The script downloads the git repo from github, creates a git bundle and uploads it on the Internet Archive.
The repo will be archived in an item at url containing the repository name and the date of the last push, something like:
https://archive.org/details/github.com--_-_
The git repo bundle will be available at url:
https://archive.org/download/github.com--_-_/.bundle
## Restore an archived github repository
Download the bundle file, form the archived item:
https://archive.org/download/.../.bundle
Just download the _.bundle_ file and run:
git clone file.bundle
## License (GPLv3)
Copyright (C) 2017-2018 Giovanni Damiola
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.You should have received a copy of the GNU General Public License
along with this program. If not, see .