- Testing snapshot creating of big volumes
- Securing snapshots with
gpg(OpenPGP) - Securing snapshots with
age
docker run --rm -it -v big-volume:/data alpine sh
Create 10 files, each 2GB (change count to control size)
for i in $(seq 1 10); do dd if=/dev/zero of=/data/file_$i bs=1M count=2024; done
docker run --rm -v big-volume:/data alpine ls -lh /data
Creating a snapshot of a volume sized 20GB, dvs took 2-3 mins (although the stat can be highly wrong)
real 2m8.993s
user 0m0.009s
sys 0m0.016s
Restoring the same to a fresh volume took 1-2 mins
real 1m55.040s
user 0m0.010s
sys 0m0.018s
gpg --batch --yes --passphrase "12345" \
--pinentry-mode loopback \
--cipher-algo AES256 \
--symmetric \
--output big-volume.tar.gz.gpg \
big-volume.tar.gz
gpg --batch --yes --passphrase "12345" \
--pinentry-mode loopback \
--output big-volume.tar.gz \
--decrypt big-volume.tar.gz.gpg