Improve readme
This commit is contained in:
parent
69c905dc97
commit
ec2c0a3277
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
|
/.idea/
|
||||||
/tmp/
|
/tmp/
|
13
README.md
13
README.md
@ -1,6 +1,6 @@
|
|||||||
# Export 1password logins to csv
|
# 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.
|
But is has command line [client], which you can use to fetch all data.
|
||||||
|
|
||||||
Requirements:
|
Requirements:
|
||||||
@ -10,17 +10,22 @@ Requirements:
|
|||||||
- tar, gpg (for encryption) binaries
|
- tar, gpg (for encryption) binaries
|
||||||
|
|
||||||
First login with `op` client. It exports session key to environment variables.
|
First login with `op` client. It exports session key to environment variables.
|
||||||
|
More details [signin](here).
|
||||||
|
|
||||||
$ eval $(op signin my)
|
$ eval $(op signin my)
|
||||||
|
|
||||||
Next run script
|
Next run script
|
||||||
|
|
||||||
$ python 1passord.py <file-name>
|
$ python3 1export.py <file-name>
|
||||||
|
|
||||||
If you want encrypt exported data, pass `--password` argument
|
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/
|
[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
|
||||||
|
Loading…
Reference in New Issue
Block a user