archivist/readme.md

93 lines
2.4 KiB
Markdown
Raw Normal View History

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
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
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
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-27 19:15:28 +00:00
carddav:
service_type: carddav
2020-06-24 15:00:08 +00:00
name: "Email Host Carddav"
2020-04-27 19:15:28 +00:00
backup_folder: /home/user/backups/contacts
url: carddav.email.host.name
user: user@email.host.name
password: Hunter2
cleanup: False
2020-04-29 12:36:22 +00:00
caldav:
service_type: caldav
2020-06-24 15:00:08 +00:00
name: "Email Host Carddav"
2020-04-29 12:36:22 +00:00
backup_folder: /home/user/backups/caldav
url: caldav.email.host.name
user: user@email.host.name
password: Hunter2
cleanup: False
2020-04-03 14:27:37 +00:00
```
## Supported Services
- Github
- Pinboard
- IMAP servers
2020-04-27 19:15:28 +00:00
- CardDav servers
2020-04-29 12:36:22 +00:00
- CalDav servers
2020-04-03 14:27:37 +00:00
### Service Notes
2020-04-29 12:36:22 +00:00
#### IMAP/CardDav/CalDav Servers
2020-06-24 15:00:08 +00:00
The Archivist is currently tested against Fastmail and iCloud, other hosts may present issues. Report an issue with any problems you see.