-
-
Notifications
You must be signed in to change notification settings - Fork 140
Backup and Restore the Database
Detection data is stored in an SQLite database called 'birds.db
in the 'scripts
' directory. At any time, you can download a copy (create a backup) of the database using the "Tools" > "File Manager" tool.
To download the database to your laptop, PC, smartphone, or tablet:
- Go to "Tools"
- "File Manager"
- Click the '
scripts
' directory - Select the database
- And finally, choose to download the database using the buttons to the right
Note: here are some other files and directories you may want to backup.
~/BirdNET-Pi/birdnet.conf
~/BirdNET-Pi/apprise.txt
~/BirdNET-Pi/scripts/birds.db
~/BirdSongs/Extracted/By_Date
~/BirdSongs/Extracted/Charts
Unfortunately, there is a bug in the "File Manager" that does not properly upload files. The current solution is to either use the command line (Linux and macOS users) or WinSCP (Windows users).Update: I found the bug and will have this fixed soon!
To restore a database from a backed-up birds.db
database:
scp /$HOME/Downloads/birds.db pi@birdnetpi.local:/home/pi/BirdNET-Pi/scripts/birds.db
-
WinSCP will open with a login prompt. Enter the hostname of your pi, its username and password. and click Login.
-
If it's your first time connecting to the host it'll present a warning. Click yes.
-
The left side is your PC's directory and the right is your Pi's. On the Pi side, open the BirdNET-Pi directory
-
Open the scripts directory and find birds.db
-
Click and drag or copy/paste birds.db from your PC's directory to your Pi side.