summaryrefslogtreecommitdiffstats
path: root/src/live
diff options
context:
space:
mode:
authorJose M. Guisado <jguisado@soleta.eu>2023-10-24 09:56:09 +0200
committerJose M. Guisado <jguisado@soleta.eu>2023-10-24 09:56:09 +0200
commit4e10c4656324b01529f0765bf5493fe0b2cd477c (patch)
tree837ab76cf2d772f978b733514269f8e852c4cdd3 /src/live
parentb49ec83bcde10ca6e0066ef5f01b636e11cb4d25 (diff)
live: use legacy backup image suffixv1.3.2
Image backup is considered a legacy feature. Use the legacy mechanism of naming image backups by adding ".ant" suffix. Previously, by using the strftime suffix clients were reporting that the disk were getting full rather quickly. When a good method for image deletion is implemented then a proper backup naming mechanism should be reconsidered.
Diffstat (limited to 'src/live')
-rw-r--r--src/live/ogOperations.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/live/ogOperations.py b/src/live/ogOperations.py
index 0998b18..a8412c6 100644
--- a/src/live/ogOperations.py
+++ b/src/live/ogOperations.py
@@ -450,8 +450,7 @@ class OgLiveOperations:
logfile = open('/tmp/command.log', 'wb', 0)
if os.path.exists(image_path) and backup:
- now = datetime.datetime.now().strftime("%Y_%m_%d_%H_%M_%S")
- shutil.move(image_path, f'{image_path}_{now}')
+ shutil.move(image_path, f'{image_path}.ant')
p1 = Popen(cmd1, stdout=PIPE, stderr=logfile)
p2 = Popen(cmd2, stdin=p1.stdout)