Skip to content
Snippets Groups Projects
Commit 942fac2c authored by Bob Mottram's avatar Bob Mottram
Browse files

Tidying

parent c242ddc2
No related branches found
No related tags found
No related merge requests found
......@@ -35,6 +35,10 @@ BACKUP_DUMMY_PASSWORD='backup'
BACKUP_TEMP_DIRECTORY=/root/.backuptemp
BACKUP_GPG_OPTIONS="--pinentry-mode loopback"
# Stores a list of drives when the system was first installed.
# This is used to detect drives later connected
DRIVES_BASELINE_FILE=/root/.drives_baseline
function create_backups_temp_directory {
if [ ! -d $BACKUP_TEMP_DIRECTORY ]; then
mkdir $BACKUP_TEMP_DIRECTORY
......@@ -839,8 +843,6 @@ function backup_extra_directories {
done <"$BACKUP_EXTRA_DIRECTORIES"
}
DRIVES_BASELINE_FILE=/root/.drives_baseline
function store_drives_baseline {
if [ -f $DRIVES_BASELINE_FILE ]; then
return
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment