Go to file
Simon Vieille ceb0b8faec
update documentation
2024-03-03 21:25:17 +01:00
.dockerignore add docker 2024-03-03 16:32:38 +01:00
Dockerfile add docker 2024-03-03 16:32:38 +01:00
README.md update documentation 2024-03-03 21:25:17 +01:00
composer.json init 2024-02-29 12:49:03 +01:00
index.php init 2024-02-29 12:49:03 +01:00

README.md

Nextcloud Passwords to Bitwarden/Vaultwarden

This project allows you to convert Nextcloud Passwords CSV to a Bitwarden/Vaultwarden JSON file.

Installation

From source

git clone https://gitnet.fr/deblan/nextcloud_passwords_to_bitwarden
composer install

Using the Phar

wget https://gitnet.fr/deblan/nextcloud_passwords_to_bitwarden/releases/download/2024-03-03/ncpasswords2bitwarden.phar

Using docker

docker pull deblan/ncpasswords2bitwarden

How to

On Nextcloud

  • 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

Convertion

From source

php index.php /path/to/Folders.csv /path/to/Passwords.csv > bitwarden_passwords.json

Using the Phar

php ncpasswords2bitwarden.phar /path/to/Folders.csv /path/to/Passwords.csv > bitwarden_passwords.json

Using docker

docker run --rm -v /path/to/extracted_files:/data deblan/ncpasswords2bitwarden /data/Folders.csv /data/Passwords.csv > bitwarden_passwords.json

On Bitwarden/Vaultwarden

  • Go to tools
  • Go to "Import data"
  • Choose "Bitwarden (json)" as file format
  • Choose the file "bitwarden_passwords.json"
  • Click on "Import data"

Clean up datas

  • Remove the downloaded archive
  • Remove extracted files
  • Remove bitwarden_passwords.json