diff options
| author | Cecil Hugh Watson <knoppmyth@gmail.com> | 2009-01-11 18:50:00 (GMT) |
|---|---|---|
| committer | Cecil Hugh Watson <knoppmyth@gmail.com> | 2009-01-11 18:50:00 (GMT) |
| commit | 3f11fa374c89a6444e75e7ae319a41cefd8d51ab (patch) | |
| tree | b46a5e6f3d6cc46f376116f70794da4ca5b1038d /abs/core-testing/LinHES-system/bin/rollback.sh | |
| parent | bcf5ec3fa5da5bbac9a1eaba782bbcea0278d9b7 (diff) | |
| parent | ae4a3db9403d07e987efc351701eb5429baff635 (diff) | |
| download | linhes_pkgbuild-3f11fa374c89a6444e75e7ae319a41cefd8d51ab.zip linhes_pkgbuild-3f11fa374c89a6444e75e7ae319a41cefd8d51ab.tar.gz linhes_pkgbuild-3f11fa374c89a6444e75e7ae319a41cefd8d51ab.tar.bz2 | |
Merge branch 'HEAD' of ssh://cesman@knoppmyth.net/mount/repository/LinHES-PKGBUILD
Conflicts:
abs/core-testing/LinHES-config/PKGBUILD
Diffstat (limited to 'abs/core-testing/LinHES-system/bin/rollback.sh')
| -rwxr-xr-x | abs/core-testing/LinHES-system/bin/rollback.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/abs/core-testing/LinHES-system/bin/rollback.sh b/abs/core-testing/LinHES-system/bin/rollback.sh new file mode 100755 index 0000000..12897da --- /dev/null +++ b/abs/core-testing/LinHES-system/bin/rollback.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +#---------------------------------------------------------------------------- +. /usr/LH/bin/backupcommon || { + echo 1>&2 "Can not load common settings!" + exit 1 +} +#---------------------------------------------------------------------------- + +require file+r+x $MYTHSHUTDOWN + +# Prevent mythshutdown from shutting down the system in the middle... +lock_myth + +echo "Starting rollback of old backups" +backup_roller '' .1 .2 .3 .4 .5 .6 .7 .8 .9 .10 .11 .12 .13 .14 .15 .16 .17 .18 .19 +echo "Rollback completed." + +# Unlock the system again... +unlock_myth |
