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
- Host: GitHub
- URL: https://github.com/weakish/0net-snapshot
- Owner: weakish
- License: other
- Created: 2016-09-22T11:50:11.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-01-01T03:45:40.000Z (over 8 years ago)
- Last Synced: 2025-11-27T16:40:41.843Z (7 months ago)
- Language: Shell
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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