diff --git a/.gitignore b/.gitignore index 8986f9d..756f6bd 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ +/.idea/ /tmp/ \ No newline at end of file diff --git a/README.md b/README.md index 8c58d38..ddd9186 100644 --- a/README.md +++ b/README.md @@ -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 + $ python3 1export.py If you want encrypt exported data, pass `--password` argument - $ python 1passord.py --password + $ python3 1export.py --password +All together in one line: + + $ eval $(op signin my); python3 1export.py --password "/home/av/Dropbox/1password-$(date '+%Y-%m-%d')" [1password]: http://1password.com/ -[client]: https://1password.com/downloads/command-line/ \ No newline at end of file +[client]: https://1password.com/downloads/command-line/ +[signin]: https://support.1password.com/command-line-getting-started/#get-started-with-the-command-line-tool