CC-1695 Remove Campcaster Studio and make install easier
Removed more stuff and started creating new directory structure.
This commit is contained in:
parent
3f5b1a1c92
commit
d9c6971131
148 changed files with 50 additions and 29338 deletions
18
utils/backup.sh
Executable file
18
utils/backup.sh
Executable file
|
@ -0,0 +1,18 @@
|
|||
#!/bin/bash
|
||||
|
||||
# param $1: workdir what we would like to tar
|
||||
# param $2: output file: the .tar file
|
||||
# param $3: statusfile
|
||||
echo "==>"
|
||||
date +\ %Y%m%d\ %H:%M:%S
|
||||
echo "backup.sh: create tarball $1 to $2"
|
||||
echo "backup.sh: status: #$3#"
|
||||
echo "<=="
|
||||
echo -n "working" > $3;
|
||||
touch $2 || { echo -n "fault|error with .tar file" > $3; exit 1; }
|
||||
#sleep 120
|
||||
cd $1
|
||||
tar cf $2 * || { echo -n "fault|error in tar procedure" > $3; exit 1; }
|
||||
chmod 666 $2
|
||||
|
||||
echo -n "success" > $3
|
Loading…
Add table
Add a link
Reference in a new issue