Skip to content

[Use Case] Backup, archive, encode and push directory.

aerth edited this page Oct 12, 2015 · 1 revision

Do you use drive to backup your directory? Add your oneliners below!

Simple tar.gz on-the-fly backup

tar czf - . | drive push -piped backup-$(date +"%m-%d-%Y-"%T"").tar.gz

Above, encrypted with openssl aes-256

tar czf - . | openssl enc -aes-256-cbc -salt | drive push -piped backup-$(date +"%m-%d-%Y-"%T"").tar.gz