Skip to content

Commit 4810a69

Browse files
authored
Update README.md: COTP_DB_PATH env variable (#437)
Hi @replydev ! Thanks again for your marvelous tool, I wanted to synchronize my database across my devices, which required to put in under custom path. I didn't found the line README about this functionality, so I though it would be nice to add it there. It would be nice to have some `cotp.config` file one day in the future, but since now it only holds one variable, it doesn't seem so important. UPD: After making this I realized that it would also be nice to add this info in the `help` message or even add a flag to specify database path. I can modify the help message if you like, but I'm not so sure I'll have time to add a new flag (I don't know rust, so it'll take some additional time). Do you want me to update help message as well?
2 parents d04250c + ffafe75 commit 4810a69

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,14 @@ It will convert the database in a json format readable by cotp.
130130
To terminate the import:
131131
`cotp import --authy --path path/to/converted_database.json`
132132

133+
# Configuration
134+
135+
By default database is located in `$HOME/.cotp/db.cotp`. If you want to use a different path, you can use `COTP_DB_PATH` environment variable.
136+
Here is an example of how to do this in bash:
137+
```bash
138+
$ COTP_DB_PATH=/home/user/.local/custom-folder/db.cotp /usr/bin/cotp
139+
```
140+
133141
# Planned features
134142

135143
Currently, there is not any planned feature. If you need something new that could improve the software feel free to open

0 commit comments

Comments
 (0)