mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
ipa_backup.py: replace /var/lib/ipa/backup with paths.IPA_BACKUP_DIR
/var/lib/ipa/backup is defined in ipaplatform.paths as paths.IPA_BACKUP_DIR Remove all instances of /var/lib/ipa/backup/ in ipa_backup.py. Signed-off-by: François Cami <fcami@redhat.com> Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
This commit is contained in:
parent
e6415ec321
commit
5331510eab
@ -550,7 +550,7 @@ class Backup(admintool.AdminTool):
|
|||||||
|
|
||||||
logger.info("Backing up files")
|
logger.info("Backing up files")
|
||||||
args = ['tar',
|
args = ['tar',
|
||||||
'--exclude=/var/lib/ipa/backup',
|
'--exclude=%s' % paths.IPA_BACKUP_DIR,
|
||||||
'--xattrs',
|
'--xattrs',
|
||||||
'--selinux',
|
'--selinux',
|
||||||
'-cf',
|
'-cf',
|
||||||
@ -575,7 +575,7 @@ class Backup(admintool.AdminTool):
|
|||||||
|
|
||||||
if missing_directories:
|
if missing_directories:
|
||||||
args = ['tar',
|
args = ['tar',
|
||||||
'--exclude=/var/lib/ipa/backup',
|
'--exclude=%s' % paths.IPA_BACKUP_DIR,
|
||||||
'--xattrs',
|
'--xattrs',
|
||||||
'--selinux',
|
'--selinux',
|
||||||
'--no-recursion',
|
'--no-recursion',
|
||||||
@ -655,7 +655,7 @@ class Backup(admintool.AdminTool):
|
|||||||
the db2bak output and an LDIF.
|
the db2bak output and an LDIF.
|
||||||
|
|
||||||
These, along with the header, are moved into a new subdirectory
|
These, along with the header, are moved into a new subdirectory
|
||||||
in /var/lib/ipa/backup.
|
in paths.IPA_BACKUP_DIR (/var/lib/ipa/backup).
|
||||||
'''
|
'''
|
||||||
|
|
||||||
if data_only:
|
if data_only:
|
||||||
|
Loading…
Reference in New Issue
Block a user