Skip to content

ecrane314/happysync

Repository files navigation

Background

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.

2021 Dec 13

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

2021 Aug 17

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.

2018 Dec 30

Added cron_sample.sh for reference and cron.sh to .gitignore as it contains system and user-specific info.

2018 Dec 9

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

2018 Jul 4

Removing authentication and user directory artifacts from source Pursuing 12 Factor... ask, "could I safely push this to public repo as-is?"

About

A collection of synchronization tools

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published