From 7dfe0ebab5075649b5a21379c7aba363fd67bf50 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Thu, 20 Feb 2020 05:51:06 +0000 Subject: [PATCH] Change admin backup info --- webclient/src/Admin.js | 44 +++--------------------------------------- 1 file changed, 3 insertions(+), 41 deletions(-) diff --git a/webclient/src/Admin.js b/webclient/src/Admin.js index 631f0b4..fa3ec51 100644 --- a/webclient/src/Admin.js +++ b/webclient/src/Admin.js @@ -7,52 +7,14 @@ import { apiUrl, statusColor, BasicTable, staticUrl, requester } from './utils.j import { NotFound } from './Misc.js'; export function Admin(props) { - const { token, user } = props; - const [backup, setBackup] = useState(false); - const [reveal, setReveal] = useState(false); - const [error, setError] = useState(false); - - useEffect(() => { - requester('/backup/', 'GET', token) - .then(res => { - setBackup(res.url); - }) - .catch(err => { - console.log(err); - }); - }, []); - return (
Portal Admin
-
Backup
+
Member Data Backup

Spaceport backups are created daily. 14 days are kept on the server.

- - {backup ? -
-

- Download link:
- - {backup} - -

- - Automate with wget (keep secret, that's your login token):
- {reveal ? -
-							wget \
-							
--content-disposition \ -
--header="Authorization: Token {token}" \ -
{apiUrl}/backup/ -
- : - - } -
- : -

Loading...

- } +

Backups contain the complete member data and must be kept secure.

+

Talk to Tanner to learn how to get backups.

);