projects
/
feisty_meow.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f66db5
)
adding a script for archiving our trac repository.
author
Chris Koeritz
<fred@gruntose.com>
Fri, 30 Sep 2016 16:44:31 +0000
(12:44 -0400)
committer
Chris Koeritz
<fred@gruntose.com>
Fri, 30 Sep 2016 16:44:31 +0000
(12:44 -0400)
scripts/archival/backup_trac.sh
[new file with mode: 0755]
patch
|
blob
diff --git a/scripts/archival/backup_trac.sh
b/scripts/archival/backup_trac.sh
new file mode 100755
(executable)
index 0000000..
950c7c9
--- /dev/null
+++ b/
scripts/archival/backup_trac.sh
@@ -0,0
+1,16
@@
+#!/bin/bash
+
+# backs up our trac repository.
+
+trac_path="$1"; shift
+
+if [ -z "$trac_path" ]; then
+ echo This script needs the path to the trac database.
+ exit 1
+fi
+
+sep='_'
+
+tar -czf /z/stuffing/archives/trac_bkup_$(date +"%Y$sep%m$sep%d$sep%H%M$sep%S" | tr -d '/\n/').tar.gz "$trac_path" &>$TMP/zz_backup_trac.log
+
+