nextcloud_passwords_to_bitw.../README.md

74 lines
1.6 KiB
Markdown
Raw Permalink Normal View History

2024-02-29 14:16:46 +01:00
# Nextcloud Passwords to Bitwarden/Vaultwarden
2024-02-29 12:49:03 +01:00
2024-02-29 14:16:46 +01:00
This project allows you to convert [Nextcloud Passwords](https://apps.nextcloud.com/apps/passwords) CSV to a [Bitwarden/Vaultwarden](https://github.com/dani-garcia/vaultwarden) JSON file.
2024-02-29 12:49:03 +01:00
## Installation
2024-03-03 16:32:38 +01:00
### From source
2024-02-29 14:17:34 +01:00
```sh
2024-02-29 12:49:03 +01:00
git clone https://gitnet.fr/deblan/nextcloud_passwords_to_bitwarden
composer install
```
2024-03-03 21:25:17 +01:00
### Using the Phar
```
wget https://gitnet.fr/deblan/nextcloud_passwords_to_bitwarden/releases/download/2024-03-03/ncpasswords2bitwarden.phar
```
2024-03-03 16:32:38 +01:00
### Using docker
```sh
docker pull deblan/ncpasswords2bitwarden
```
2024-02-29 12:49:03 +01:00
## How to
### On Nextcloud
2024-02-29 16:29:37 +01:00
- Go to "Personal settings"
- Set "English (US)" as language
- Go to "Passwords"
- Click on "More"
- Click on "Backup and restore"
- Choose "Backup or export"
- Choose "Predefined CSV"
- Check "Export Passwords" and "Export Folders"
- Click on "Export" and download the archive
- Unzip the downloaded file
2024-02-29 12:49:03 +01:00
2024-03-03 16:32:38 +01:00
### Convertion
2024-03-03 16:56:08 +01:00
#### From source
2024-02-29 12:49:03 +01:00
2024-02-29 14:17:34 +01:00
```sh
2024-02-29 12:49:03 +01:00
php index.php /path/to/Folders.csv /path/to/Passwords.csv > bitwarden_passwords.json
```
2024-03-03 21:25:17 +01:00
#### Using the Phar
```sh
php ncpasswords2bitwarden.phar /path/to/Folders.csv /path/to/Passwords.csv > bitwarden_passwords.json
```
2024-03-03 16:56:08 +01:00
#### Using docker
2024-03-03 16:32:38 +01:00
```
docker run --rm -v /path/to/extracted_files:/data deblan/ncpasswords2bitwarden /data/Folders.csv /data/Passwords.csv > bitwarden_passwords.json
```
2024-02-29 12:49:03 +01:00
### On Bitwarden/Vaultwarden
2024-02-29 16:29:37 +01:00
- Go to tools
- Go to "Import data"
- Choose "Bitwarden (json)" as file format
- Choose the file "bitwarden_passwords.json"
- Click on "Import data"
2024-02-29 12:49:03 +01:00
### Clean up datas
2024-02-29 16:29:37 +01:00
- Remove the downloaded archive
- Remove extracted files
- Remove bitwarden_passwords.json