Bestanden uploaden naar 'scripts'
This commit is contained in:
86
scripts/loader-backup.php
Normal file
86
scripts/loader-backup.php
Normal file
@@ -0,0 +1,86 @@
|
|||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>Foto importeer app</title>
|
||||||
|
<link rel="shortcut icon" href="favicon.png" />
|
||||||
|
<link rel="stylesheet" href="milligram.min.css">
|
||||||
|
<script src="sweetalert.min.js"></script>
|
||||||
|
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Roboto:300,300italic,700,700italic">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<style>
|
||||||
|
#content {
|
||||||
|
margin: 0px auto;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
h2 {
|
||||||
|
letter-spacing: 3px;
|
||||||
|
}
|
||||||
|
img {
|
||||||
|
display: block;
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
margin-top: 1%;
|
||||||
|
margin-bottom: 1%;
|
||||||
|
}
|
||||||
|
.vl {
|
||||||
|
border-top: 1px solid #9b4dca;
|
||||||
|
padding-top: 10px;
|
||||||
|
padding-bottom: 15px;
|
||||||
|
}
|
||||||
|
.colcontent {
|
||||||
|
display: none;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
button.collapsible {
|
||||||
|
margin-bottom: 26px;
|
||||||
|
}
|
||||||
|
.collapsible {
|
||||||
|
width: 180px;
|
||||||
|
}
|
||||||
|
.loader {
|
||||||
|
margin: 25 auto;
|
||||||
|
border: 20px solid #9b4dca;
|
||||||
|
border-radius: 50%;
|
||||||
|
border-top: 20px solid #606c76;
|
||||||
|
width: 200px;
|
||||||
|
height: 200px;
|
||||||
|
-webkit-animation: spin 1.30s linear infinite; /* Safari */
|
||||||
|
animation: spin 1.30s linear infinite;
|
||||||
|
}
|
||||||
|
/* Safari */
|
||||||
|
@-webkit-keyframes spin {
|
||||||
|
0% { -webkit-transform: rotate(0deg); }
|
||||||
|
100% { -webkit-transform: rotate(360deg); }
|
||||||
|
}
|
||||||
|
@keyframes spin {
|
||||||
|
0% { transform: rotate(0deg); }
|
||||||
|
100% { transform: rotate(360deg); }
|
||||||
|
}
|
||||||
|
h4.h4txt {
|
||||||
|
padding-bottom: 26px;
|
||||||
|
margin: 0px;
|
||||||
|
}
|
||||||
|
.spacer {
|
||||||
|
padding-bottom: 25px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<div id="content">
|
||||||
|
<img src="tokyo-taxi.svg" height="51px" alt="Tokyo taxi">
|
||||||
|
<h2>Apliance Backup</h2>
|
||||||
|
<div class="vl"></div>
|
||||||
|
<h3>Backup is bezig</h3>
|
||||||
|
<div class="vl"></div>
|
||||||
|
<div class="loader"></div>
|
||||||
|
<div class="spacer"></div>
|
||||||
|
<div class="vl"></div>
|
||||||
|
<h4>Sluit de app.<br>Wacht ongeveer een uur.<br>Heropen vervolgens de app om de status van de taak te contoleren.</h4><h4 class="h4txt">Blijf deze stappen herhalen tot de volgende pagina vershijnt.</h4>
|
||||||
|
<div class="vl"></div>
|
||||||
|
<p><a href="sysinfo.php">System info</a></p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
86
scripts/loader-import.php
Normal file
86
scripts/loader-import.php
Normal file
@@ -0,0 +1,86 @@
|
|||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>Foto importeer app</title>
|
||||||
|
<link rel="shortcut icon" href="favicon.png" />
|
||||||
|
<link rel="stylesheet" href="milligram.min.css">
|
||||||
|
<script src="sweetalert.min.js"></script>
|
||||||
|
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Roboto:300,300italic,700,700italic">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<style>
|
||||||
|
#content {
|
||||||
|
margin: 0px auto;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
h2 {
|
||||||
|
letter-spacing: 3px;
|
||||||
|
}
|
||||||
|
img {
|
||||||
|
display: block;
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
margin-top: 1%;
|
||||||
|
margin-bottom: 1%;
|
||||||
|
}
|
||||||
|
.vl {
|
||||||
|
border-top: 1px solid #9b4dca;
|
||||||
|
padding-top: 10px;
|
||||||
|
padding-bottom: 15px;
|
||||||
|
}
|
||||||
|
.colcontent {
|
||||||
|
display: none;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
button.collapsible {
|
||||||
|
margin-bottom: 26px;
|
||||||
|
}
|
||||||
|
.collapsible {
|
||||||
|
width: 180px;
|
||||||
|
}
|
||||||
|
.loader {
|
||||||
|
margin: 25 auto;
|
||||||
|
border: 20px solid #9b4dca;
|
||||||
|
border-radius: 50%;
|
||||||
|
border-top: 20px solid #606c76;
|
||||||
|
width: 200px;
|
||||||
|
height: 200px;
|
||||||
|
-webkit-animation: spin 1.30s linear infinite; /* Safari */
|
||||||
|
animation: spin 1.30s linear infinite;
|
||||||
|
}
|
||||||
|
/* Safari */
|
||||||
|
@-webkit-keyframes spin {
|
||||||
|
0% { -webkit-transform: rotate(0deg); }
|
||||||
|
100% { -webkit-transform: rotate(360deg); }
|
||||||
|
}
|
||||||
|
@keyframes spin {
|
||||||
|
0% { transform: rotate(0deg); }
|
||||||
|
100% { transform: rotate(360deg); }
|
||||||
|
}
|
||||||
|
h4.h4txt {
|
||||||
|
padding-bottom: 26px;
|
||||||
|
margin: 0px;
|
||||||
|
}
|
||||||
|
.spacer {
|
||||||
|
padding-bottom: 25px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<div id="content">
|
||||||
|
<img src="tokyo-taxi.svg" height="51px" alt="Tokyo taxi">
|
||||||
|
<h2>Foto importeer app</h2>
|
||||||
|
<div class="vl"></div>
|
||||||
|
<h3>Foto's worden geimporteerd</h3>
|
||||||
|
<div class="vl"></div>
|
||||||
|
<div class="loader"></div>
|
||||||
|
<div class="spacer"></div>
|
||||||
|
<div class="vl"></div>
|
||||||
|
<h4>Sluit de app.<br>Wacht ongeveer 5 minuten.<br>Heropen vervolgens de app om de status van de taak te contoleren.</h4><h4 class="h4txt">Blijf deze stappen herhalen tot de volgende pagina vershijnt.</h4>
|
||||||
|
<div class="vl"></div>
|
||||||
|
<p><a href="sysinfo.php">System info</a></p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
17
scripts/milligram.min.css
vendored
Normal file
17
scripts/milligram.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
1
scripts/milligram.min.css.map
Normal file
1
scripts/milligram.min.css.map
Normal file
File diff suppressed because one or more lines are too long
9
scripts/script-statvars
Normal file
9
scripts/script-statvars
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
script_location=$(pwd)
|
||||||
|
storage_locaction="/share/fotos/" # Mount location of the storage device
|
||||||
|
backup_location="$storage_locaction"/"$rawdata" #finlal backup location
|
||||||
|
card_dev="mmcblk0p1" # Name of the storage card
|
||||||
|
card_mount="/media/card" # Mount point of the storage card
|
||||||
|
backup_dev="sdb1" # Name of the Backup device
|
||||||
|
backup_mount="/media/extbackup" # Mount point of the Backup device
|
||||||
|
filecpcounter=0
|
||||||
Reference in New Issue
Block a user