repo.or.cz
/
rsync_backup.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
create the host directory on first run
[rsync_backup.git]
/
snapshot.sh
blob
c93e82a04b0f48de65da7b2b899301cac2e80475
1
#!/bin/sh
2
3
BINDIR
=
$
(
dirname
$0
)
4
5
run
() {
6
echo -n
"
$2
"
7
$BINDIR
/
$1
8
RET
=
$?
9
if
[
$RET
-eq
0
];
then
10
echo
" [ok]"
11
else
12
echo
" [error]"
13
fi
14
return
$RET
15
}
16
17
run mysql_backup.sh
"MySQL local backup"
18
run vdb_backup.sh
"VDB backup"
19
run rotate_snapshot_hourly.sh
"Rotating snapshots"
20
run make_snapshot.sh
"Sync with remote server"
21
run check_quota.sh
"Check quota"