An open API service indexing awesome lists of open source software.

https://github.com/weakish/0net-snapshot

sh scripts to take snapshots of ZeroNet sites
https://github.com/weakish/0net-snapshot

Last synced: about 1 month ago
JSON representation

sh scripts to take snapshots of ZeroNet sites

Awesome Lists containing this project

README

          

sh scripts to take snapshots of ZeroNet sites via git.

## Install

### With `make`

git clone https://github.com/weakish/0net-snapshot.git
cd 0net-snapshot
make

Makefile is compatible with Gnu Make and BSD Make.

### With `basher`

basher install weakish/0net-snapshot

## Usage

### 0mesnap

I wrote this script to backup ZeroMe hubs.
But it can be used to backup an arbitraril list of ZeroNet sites.

Specify zeronet data directory in `$ZERONETDATADIR` environment variable.
Make sure there is `hub_seeding.lst` file in `$ZERONETDATADIR`.
`hub_seeding.lst` is a list of ZeroNet site addresses,
one address/ID per line.

0mesnap

You can edit a crontab to take a snapshot, say, per hour:

```crontab
@hourly /usr/local/bin/0mesnap
```

`$ZERONETDATADIR` is also the root directory of the git repository.

### 0netsnap

Similar to 0mesnap.
Unlike 0mesnap (track hubs in one repository),
0netsnap uses a separate git repository per zeronet site,
i.e. the zeronet site directory will be the root directory of the git repository.

Specify zeronet data directory in `$ZERONETDATADIR` environment variable.
Make sure there is `tracking_zite.lst` file in `$ZERONETDATADIR`.
`tracking_zite.lst` is a list of ZeroNet site addresses,
one address/ID per line.

0netsnap

You can edit a crontab to take a snapshot, say, per hour:

```crontab
@hourly /usr/local/bin/0netsnap
```

## License

0BSD