https://github.com/gianarb/papertrail-archive
I do not know why it took me so much time to write this down.
https://github.com/gianarb/papertrail-archive
Last synced: 11 months ago
JSON representation
I do not know why it took me so much time to write this down.
- Host: GitHub
- URL: https://github.com/gianarb/papertrail-archive
- Owner: gianarb
- Created: 2019-07-04T14:19:16.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-07-10T09:01:10.000Z (almost 7 years ago)
- Last Synced: 2025-02-01T21:43:41.101Z (over 1 year ago)
- Language: Go
- Size: 64.5 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
This project offers a set of utils to download and manage logs from papertrail
archives.
## usage
Look at the [documentation](./Documentation/papertrail-archive.md).
```
$ PAPERTRAIL_ARCHIVE_TOKEN= papertrail-archive download --from "2019-06-30T00:23:02+02:00" --to "2019-06-30T3:22:02+02:00" --basedir /tmp --no-gunzip
from: 2019-06-29T22:23:02Z
to: 2019-06-30T01:22:02Z
file will be stored to directory (--basedir to change location): /tmp
The archives that will be downloaded are:
2019-06-29-22
2019-06-29-23
2019-06-30-00
do you wan't to proceed with the download? (y)
y
Archive 2019-06-29-22 --- [--------------------------------------------------------------------] 0%
Archive 2019-06-29-23 --- [--------------------------------------------------------------------] 0%
Archive 2019-06-30-00 --- [--------------------------------------------------------------------] 0%
```
## install
```
go get -u github.com/gianarb/papertrail-archive
```