Skip to content
Go to file

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

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 and uploads it on an Internet Archive item with metadata from the GitHub API and a description from the repository readme.


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, register.
  • Python 2.7 - This script requires python 2.7.
  • 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

with pip:

pip install iagitup

from source code:

Clone the repo and install the package...

git clone
cd iagitup
pip install .


To upload a repo:

iagitup  <github_repo_url>

You can add also custom metadata:

iagitup --metadata=<key:value,key2:val2> <github_repo_url>

To know the version:

iagitup -v



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:<GITHUBUSER>-<RESPOSITORY>_-_<DATE-LAST-PUSH>

The git repo bundle will be available at url:<GITHUBUSER>-<RESPOSITORY>_-_<DATE-LAST-PUSH>/<BUNDLENAME>.bundle

Restore an archived github repository

Download the bundle file, form the archived item:<ARCHIVED_REPO>.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


A command line tool to archive a git repository from GitHub to the Internet Archive.





No releases published


No packages published

Contributors 4



You can’t perform that action at this time.