2.9 KiB
SBV Administration Guide
This guide covers administrative features in SBV.
User Management
List All Users
To see all registered users along with their UUIDs and ingest directories:
Docker:
docker exec -it <container_name> /app/sbv -list-users
Binary:
./sbv -list-users
Example output:
USERNAME UUID INGEST DIRECTORY
-------- ---- ----------------
alice 46f958dc-e022-41de-b298-4ab060b5ca24 data/46f958dc-e022-41de-b298-4ab060b5ca24/ingest
bob 3cf92802-b3c5-4d38-8b11-9d34aafc7d46 data/3cf92802-b3c5-4d38-8b11-9d34aafc7d46/ingest
Reset a User's Password
To reset a user's password:
Docker:
docker exec -it <container_name> /app/sbv -reset-password <username>
Binary:
./sbv -reset-password <username>
You will be prompted to enter and confirm the new password. Passwords must be at least 6 characters.
Auto-Import
SBV can automatically import XML backup files placed in a user's ingest directory. This is useful for automated backup workflows or when you want to import files without using the web interface.
How It Works
- SBV scans each user's ingest directory every minute
- When an XML file is detected and stable (not being written to), it is automatically imported
- After successful import, the file is moved to a
completesubdirectory - A
.logfile is created alongside each import with details about the process
Ingest Directory Location
Each user has their own ingest directory based on their UUID:
<data_dir>/<user-uuid>/ingest/
Use -list-users to find the correct ingest directory for each user.
Docker Volume Setup
When running with Docker, make sure the ingest directories are accessible. With the standard volume mount:
volumes:
- ./data:/data
The ingest directories will be at:
./data/<user-uuid>/ingest/
Example Workflow
-
Find the user's ingest directory:
docker exec -it sbv /app/sbv -list-users -
Copy your backup file to the ingest directory:
cp sms-backup.xml ./data/<user-uuid>/ingest/ -
SBV will automatically detect and import the file within 1 minute
-
Check the import results:
- The XML file will be moved to
./data/<user-uuid>/complete/ - A log file (
sms-backup.xml.log) will contain import details
- The XML file will be moved to
Supported File Types
- XML files from SMS Backup & Restore (
.xml)
Troubleshooting
File not being imported:
- Ensure the file has a
.xmlextension - Check that the file is not still being written (SBV waits for files to be stable)
- Verify the file is in the correct user's ingest directory
- Check the application logs for errors
Import failed:
- Check the
.logfile in the ingest directory for error details - The original file remains in the ingest directory for manual review if import fails