Web drag and drop interface to backup files with asymmetric key
Easily save files with drag and drop website. All file are encrypted with asymmetric algorithm.
- Generate RSA pem file and extract public.pem (see upload.php file)
- copy public.pem in uploads folder
- Save private.pem in safe place (other sever/keepass...)
- Copy repo files in /var/www(/html)
- Install and configure webserver (apache/nginx ...) or run php -S 0.0.0.0:8080
- index.php is drag and drop files backup page
- upload.php is php file who encrypt data with public key and save file in uploads directory
- restore.php is a php script to restore file with private key
each encrypted file contains on first line the envelope key in base64 and on the second line base64 encrypted data.
chmod +x restore.php
./restore.php -f uploads/myfiletorestore.123123123123
More parameters are available with -h option
-k [priv.pem] private pem key
-h for show Help
-f set the path/name of file to recover
-p set the private pem key passphrase if needed
docker build --tag safebackup .
docker run --rm -it -d -v /path/to/vault/:/uploads -p 8080:80 --name safebackup safebackup
alias docker-vault="docker run --rm -it -d -v /path/to/vault/:/uploads -p 8080:80 --name safebackup safebackup"