adding the new button
This commit is contained in:
@@ -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');
|
||||
?>
|
||||
Executable
+5
@@ -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
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user