adding the new button

This commit is contained in:
Patrick McGuire
2021-10-21 12:26:00 -04:00
parent faf1d16a86
commit dbd5fd95bf
3 changed files with 21 additions and 0 deletions
+4
View File
@@ -0,0 +1,4 @@
<?php
shell_exec("sudo -u pi /home/pi/BirdNET-Pi/scripts/backup_data.sh > /tmp/birdnetbackup.log 2&>1");
header('Location: /backup_inprogress.html');
?>
+5
View File
@@ -0,0 +1,5 @@
#!/usr/bin/env bash
# Tar and compress all data
source /etc/birdnet/birdnet.conf
tar -czvf /home/pi/BirdNET-Pi/BirdNET-Pi_Data_Dump_$(date +%F).tar.gz ${EXTRACTED} /home/pi/BirdNET-Pi/BirdDB.txt
+12
View File
@@ -0,0 +1,12 @@
<html lang="en">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<head></head>
<body style="background-color: rgb(119, 196, 135);font-size:large;">
A backup is being made that includes all of<br>
your extractions and the BirdDB.txt<br>
<br></br>
The backup is in /home/pi/BirdNET-Pi
</body>
</html>