Commit 4d2b50f7 authored by Klaus Aehlig's avatar Klaus Aehlig

Exclude archived jobs from configuration backup

For a cluster that existed for a long time, the archive of
old jobs might be big. Additionally, this data is neither
necessary for running new jobs, nor is it touched in the
upgrade procedure. Hence it is safe to be excluded from
the backup created on Ganeti version upgrades, thus obtaining
a smaller backup.
Signed-off-by: default avatarKlaus Aehlig <>
Reviewed-by: default avatarPetr Pudlak <>
parent 01f4b72e
......@@ -1859,7 +1859,8 @@ def _UpgradeBeforeConfigurationChange(versionstring):
ToStdout("Backing up configuration as %s" % backuptar)
if not _RunCommandAndReport(["mkdir", "-p", pathutils.BACKUP_DIR]):
return (False, rollback)
if not _RunCommandAndReport(["tar", "cf", backuptar,
if not _RunCommandAndReport(["tar", "-cf", backuptar,
return (False, rollback)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment