2020-03-21 16:41:49 +00:00
|
|
|
# Archivist
|
2020-03-09 20:11:44 +00:00
|
|
|
|
2020-04-09 14:19:55 +00:00
|
|
|
The archivist is run from a either a script or a Docker container.
|
2020-03-09 20:11:44 +00:00
|
|
|
|
2020-04-08 18:31:26 +00:00
|
|
|
## Script Use
|
|
|
|
Running `bin/archivist.sh` alone will back up all configured services.
|
2020-03-21 16:41:49 +00:00
|
|
|
|
2020-04-08 18:31:26 +00:00
|
|
|
You can also back up a single service by running `bin/archivist.sh backup service`
|
|
|
|
|
|
|
|
## Docker Use
|
|
|
|
|
|
|
|
The docker container needs two volumes, one mounted wherever you store the backups and
|
|
|
|
the other at `/archivist/archivist.yml` for the config file.
|
|
|
|
|
|
|
|
Example:
|
|
|
|
```bash
|
|
|
|
docker run --rm \
|
|
|
|
-v /home/host-user/host_backup_dir:/backups \
|
|
|
|
-v /home/host-user/archivist_config.yml:/archivist/archivist.yml \
|
|
|
|
amdavidson/archivist
|
|
|
|
```
|
2020-03-21 16:41:49 +00:00
|
|
|
|
|
|
|
|
2020-04-03 14:27:37 +00:00
|
|
|
## Configuring the Archivist
|
2020-03-21 16:41:49 +00:00
|
|
|
|
2020-04-09 14:18:03 +00:00
|
|
|
The Archivist is configured with a `yaml` file stored at one of these locations:
|
|
|
|
- `./archivist.yml`
|
|
|
|
- `$XDG_CONFIG_HOME/archivist/archivist.yml`
|
|
|
|
- `~/.config/archivist/archivist.yml`
|
|
|
|
- `~/.archivist.yml`
|
|
|
|
- `/etc/archivist/archivist.yml`
|
2020-03-21 16:41:49 +00:00
|
|
|
|
2020-04-03 14:27:37 +00:00
|
|
|
Example:
|
|
|
|
```yaml
|
2020-04-05 19:55:05 +00:00
|
|
|
services:
|
|
|
|
github:
|
|
|
|
name: "Github"
|
|
|
|
service_type: github
|
|
|
|
backup_folder: /home/user/backups/github
|
|
|
|
user: gh-user
|
2020-04-08 18:31:26 +00:00
|
|
|
token: 0xDEADBEEF
|
|
|
|
disable_repos: False
|
|
|
|
disable_gists: False
|
|
|
|
repo_backup_list:
|
|
|
|
- important-repository
|
|
|
|
gist_backup_list
|
|
|
|
- 1337
|
2020-04-05 19:55:05 +00:00
|
|
|
pinboard:
|
|
|
|
name: "Pinboard"
|
|
|
|
service_type: pinboard
|
|
|
|
backup_folder: /home/user/backups/pinboard
|
|
|
|
user: pbuser
|
|
|
|
token: 0xDEADBEEF
|
|
|
|
fastmail:
|
|
|
|
name: "Email Host"
|
|
|
|
service_type: imap
|
|
|
|
backup_folder: /home/user/backups/fastmail
|
|
|
|
server: imap.email.host.name
|
|
|
|
user: user@email.host.name
|
|
|
|
password: Hunter2
|
|
|
|
cleanup: False
|
|
|
|
compress: True
|
2020-04-03 14:27:37 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
## Supported Services
|
|
|
|
|
|
|
|
- Github
|
|
|
|
- Pinboard
|
|
|
|
- IMAP servers
|
|
|
|
|
|
|
|
### Service Notes
|
|
|
|
|
|
|
|
#### IMAP Servers
|
2020-04-09 14:19:10 +00:00
|
|
|
The Archivist is currently tested against Fastmail, other IMAP servers may present issues. Report an issue with any problems you see.
|