mirror of
https://github.com/lrenaud/IEEEtemplate.git
synced 2025-06-16 20:31:17 -07:00
Inital commit
This commit is contained in:
commit
9958f11d71
18 changed files with 1208 additions and 0 deletions
19
backups.sh
Executable file
19
backups.sh
Executable 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"
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue