Skip to content

Instantly share code, notes, and snippets.

View mzhaase's full-sized avatar

Mattis Haase mzhaase

  • Pinguin AG
View GitHub Profile
@mzhaase
mzhaase / gist:f0a1be7f29f2074fac6ad19e65cc8ca8
Created December 16, 2020 14:43
ESP8266 / DHT22 Temperature Sensor Simple Website
#include "DHT.h"
#include <ESP8266WiFi.h>
#include <ESP8266WebServer.h>
#define DHTPIN 5
#define DHTTYPE DHT22
#define RATE 115200
#define DEBUG true
#define SSID "szvsyGm6E74c6HnevvfBHuuY6NG3otjOyxBpEyb9"
"""Locally compresses and encrypts data into cache directory, checks if the data
stored on S3 is different. If yes, uploads new version. Otherwise skips them.
Encryption provided by openssl enc, I do not feel comfortable writing my own
implementation.
Versioning is supposed to be done with s3 versioning
Basic process:
- find all subfolders / files of backup_path up to a depth of depth
this makes it so that folders which do not change often do not get backed up