summaryrefslogtreecommitdiffstats
path: root/abs/core/LinHES-system/bin/rollback.sh
blob: 12897daa58edf564c22d72e537b05978e54d8e8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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