1
0
mirror of https://github.com/pirate/ArchiveBox.git synced 2025-08-24 15:13:03 +02:00

Updated Upgrading or Merging Archives (markdown)

Nick Sweeting
2022-03-22 20:12:05 -04:00
parent c8e134c2ee
commit 1e03fc180b

@@ -92,7 +92,20 @@ archivebox init # run init to upgrade the collection to the latest versio
If you need to automate changes to the ArchiveBox DB (for example adding a User from an Ansible script), you can modify the SQLite3 DB directly. If you need to automate changes to the ArchiveBox DB (for example adding a User from an Ansible script), you can modify the SQLite3 DB directly.
**As an example, here's how to add a user row manually:** ```bash
cd ~/archivebox # cd into your archivebox collection dir
sqlite3 index.sqlite3 # open the db with sqlite3 shell
```
#### Example: Modifying an existing user's email
```sql
UPDATE auth_user
SET email = 'someNewEmail@example.com', is_superuser = 1
WHERE username = 'someUsernameHere';
```
#### Example: Adding a new user with a hashed password
1. First, generate the hashed password in a Python shell using Django's `make_password` function. 1. First, generate the hashed password in a Python shell using Django's `make_password` function.