happysync is a collection of scripts to perform archiving and [un]authenticated syncronization between local directories and Google Cloud Storage Buckets. It was written to sync large project files between multiple computers and additionally offer cloud backup.
Need a manifest of archive files created. What's in this, when was it created, and how is it to be extracted? Exact commands and dates are good
Use tar to -c create an archive and -v verbosely output to stderr, -f put it in a new file called output.tar, use source_dir as the input to archive, then redirect that stderr to a logfile so you can see what's in there.
export outfile=$(date +"%Y-%m-%d")
tar -cvf output.tar source_dir 2> output.log
GPG encrypting of, among other binaries, Google Takeout zip archives:
Confirm that your GDrive is clean including the Takeout folder and trash.
Create your zip archive, download it locally.
Create your password and store it in your manager of choice.
Proceed to terminal
Install gpg,
brew install gpg
And then encrypt your file
gpg --symmetric --cipher-algo aes256 -o encrypted.zip.gpg plain.zip
gpg --symmetric --cipher-algo aes256 -o $(date -u +"%Y-%m-%dT%H%M%ST")-source.zip.gpg plain.zip
Upload to bucket and copy to your external drive.
Added cron_sample.sh
for reference and cron.sh
to .gitignore as it contains system and user-specific info.
Consolidating scripts and python Video/Picture and file archiving will be two functions in this repo Setting bucket to version will protect from deletion and limited modification means costs will stay low
Removing authentication and user directory artifacts from source Pursuing 12 Factor... ask, "could I safely push this to public repo as-is?"