Revision 13261
Added by Aaron Marcuse-Kubitza over 10 years ago
sync.sh | ||
---|---|---|
65 | 65 |
{ |
66 | 66 |
echo_func; kw_params ctl from to; : "${ctl:?}" |
67 | 67 |
|
68 |
# copy changes before stopping DB to minimize the time that it's shut down |
|
69 |
db_copy # copy changes since last backup |
|
70 |
db_copy # copy changes that occurred during the copy operation |
|
71 |
|
|
72 |
# make copy a consistent snapshot |
|
68 | 73 |
sudo "$ctl" stop |
69 | 74 |
try db_copy |
70 | 75 |
sudo "$ctl" start |
Also available in: Unified diff
lib/sh/sync.sh: db_snapshot(): copy changes before stopping DB to minimize the time that it's shut down