Inital commit

This commit is contained in:
Luke 2018-08-08 15:02:17 -07:00
commit 9958f11d71
18 changed files with 1208 additions and 0 deletions

19
backups.sh Executable file
View file

@ -0,0 +1,19 @@
#!/bin/bash
# Stuff everything in a backups directory on the local machine.
# Or, you could use git for your paper?
BAK=$(date +"%Y%m%d-%H%M")
BAK_DIR="backups/"
# Make it if we need it.
if [[ ! -e "${BAK_DIR}" ]]; then
mkdir -p "${BAK_DIR}"
fi
FOUT="${BAK_DIR}/backup_${BAK}.tar"
# Bundle it up.
tar --exclude "build/*" --exclude "backups" -cvf "$FOUT" .
xz -9v "$FOUT"
du -sh "${FOUT}.xz"