Improve readme

This commit is contained in:
Anton Vakhrushev 2019-10-24 12:34:05 +03:00
parent 69c905dc97
commit ec2c0a3277
2 changed files with 10 additions and 4 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
/.idea/
/tmp/

View File

@ -1,6 +1,6 @@
# Export 1password logins to csv
[1password] havn't tool to export data at Linux.
[1password] hasn't tool to export data at Linux.
But is has command line [client], which you can use to fetch all data.
Requirements:
@ -10,17 +10,22 @@ Requirements:
- tar, gpg (for encryption) binaries
First login with `op` client. It exports session key to environment variables.
More details [signin](here).
$ eval $(op signin my)
Next run script
$ python 1passord.py <file-name>
$ python3 1export.py <file-name>
If you want encrypt exported data, pass `--password` argument
$ python 1passord.py --password <password> <file-name>
$ python3 1export.py --password <password> <file-name>
All together in one line:
$ eval $(op signin my); python3 1export.py --password <password> "/home/av/Dropbox/1password-$(date '+%Y-%m-%d')"
[1password]: http://1password.com/
[client]: https://1password.com/downloads/command-line/
[client]: https://1password.com/downloads/command-line/
[signin]: https://support.1password.com/command-line-getting-started/#get-started-with-the-command-line-tool