Add plugins dir to backup snapshot
- add plugins dir to backup by default. - mend full backup of system dirs in order to include puppet and repos as well. Closes-Bug: #1462439 Change-Id: Id8327a283c26574088db33e89bdaaa6c7a5e2d41
This commit is contained in:
parent
3a9b899d6c
commit
825264f28a
@ -127,7 +127,7 @@ for requirement in "${!REQS[@]}"; do
|
||||
done
|
||||
|
||||
#backup settings
|
||||
SYSTEM_DIRS="/etc/fuel /var/lib/fuel /root/.ssh"
|
||||
SYSTEM_DIRS="/etc/fuel /var/lib/fuel /root/.ssh /var/www/nailgun/plugins"
|
||||
FULL_BACKUP_DIRS="/etc/puppet /var/www/nailgun"
|
||||
BACKUP_ROOT="/var/backup/fuel"
|
||||
|
||||
|
@ -127,7 +127,7 @@ for requirement in "${!REQS[@]}"; do
|
||||
done
|
||||
|
||||
#backup settings
|
||||
SYSTEM_DIRS="/etc/fuel /var/lib/fuel /root/.ssh"
|
||||
SYSTEM_DIRS="/etc/fuel /var/lib/fuel /root/.ssh /var/www/nailgun/plugins"
|
||||
FULL_BACKUP_DIRS="/etc/puppet /var/www/nailgun"
|
||||
BACKUP_ROOT="/var/backup/fuel"
|
||||
|
||||
|
@ -577,7 +577,7 @@ function backup_system_dirs {
|
||||
tar cf $backup_dir/system-dirs.tar -C / $SYSTEM_DIRS
|
||||
|
||||
if [[ "$1" == "--full" ]]; then
|
||||
tar rf $backup_Dir/system-dirs.tar -C / $FULL_BACKUP_DIRS
|
||||
tar rf $backup_dir/system-dirs.tar -C / $FULL_BACKUP_DIRS
|
||||
fi
|
||||
|
||||
echo "Unpausing containers..."
|
||||
|
Loading…
Reference in New Issue
Block a user