mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-20 05:11:40 +02:00
Updated Scheduled Archiving (markdown)
@@ -43,25 +43,38 @@ This is useful for running scheduled tasks inside docker-compose or supervisord.
|
|||||||
### Docker Usage
|
### Docker Usage
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
docker-compose run --rm archivebox schedule --every=week --depth=1 https://example.com
|
||||||
docker-compose run --rm archivebox schedule --every=day https://example.com
|
docker-compose run --rm archivebox schedule --every=day https://example.com
|
||||||
docker-compose run --rm archivebox schedule --foreground
|
docker-compose run --rm archivebox schedule --show
|
||||||
# or
|
docker-compose run --rm archivebox schedule --help
|
||||||
docker run -v $PWD:/data -it archivebox/archivebox schedule --every=day 'https://example.com'
|
|
||||||
docker run -v $PWD:/data -it archivebox/archivebox schedule --foreground
|
# restart the scheduler container to pick up any changes made
|
||||||
|
docker compose restart archivebox_scheduler
|
||||||
```
|
```
|
||||||
|
|
||||||
`docker-compose.yml`:
|
`docker-compose.yml`:
|
||||||
```yaml
|
```yaml
|
||||||
services:
|
services:
|
||||||
archivebox:
|
archivebox:
|
||||||
|
image: archivebox/archivebox:dev
|
||||||
|
command: server --quick-init 0.0.0.0:8000
|
||||||
...
|
...
|
||||||
|
volumes:
|
||||||
|
- ./data:/data
|
||||||
|
- ./etc/crontabs:/var/spool/cron/crontabs
|
||||||
|
|
||||||
archivebox_scheduler:
|
archivebox_scheduler:
|
||||||
|
image: archivebox/archivebox:dev
|
||||||
command: schedule --foreground
|
command: schedule --foreground
|
||||||
...
|
...
|
||||||
|
volumes:
|
||||||
|
- ./data:/data
|
||||||
|
- ./etc/crontabs:/var/spool/cron/crontabs
|
||||||
```
|
```
|
||||||
For a full Docker Compose example config see here: https://github.com/ArchiveBox/ArchiveBox/blob/dev/docker-compose.yml#L64
|
For a full Docker Compose example config see here: https://github.com/ArchiveBox/ArchiveBox/blob/dev/docker-compose.yml#L64
|
||||||
|
|
||||||
|
For more examples of plain Docker and Docker Compose usage with scheduling, see: https://github.com/ArchiveBox/ArchiveBox/issues/1155#issuecomment-1590146616
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
### Example: Archive a Twitter user's Tweets and linked content within once a week
|
### Example: Archive a Twitter user's Tweets and linked content within once a week
|
||||||
|
Reference in New Issue
Block a user