summaryrefslogtreecommitdiff
path: root/pkg/checkpoint
diff options
context:
space:
mode:
authorAdrian Reber <areber@redhat.com>2021-02-25 16:43:18 +0000
committerAdrian Reber <areber@redhat.com>2021-03-02 17:00:06 +0000
commit91b2f07d5ba75cacdc8a6607fc6aed4ee4bcc9cf (patch)
tree2d55e730c2945e79da9ccd68dffd8949ac2ad46e /pkg/checkpoint
parentbf92e21113c9b2d2ff4c18423ff3deb10a1ce29e (diff)
downloadpodman-91b2f07d5ba75cacdc8a6607fc6aed4ee4bcc9cf.tar.gz
podman-91b2f07d5ba75cacdc8a6607fc6aed4ee4bcc9cf.tar.bz2
podman-91b2f07d5ba75cacdc8a6607fc6aed4ee4bcc9cf.zip
Use functions and defines from checkpointctl
No functional changes. [NO TESTS NEEDED] - only moving code around Signed-off-by: Adrian Reber <areber@redhat.com>
Diffstat (limited to 'pkg/checkpoint')
-rw-r--r--pkg/checkpoint/checkpoint_restore.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/pkg/checkpoint/checkpoint_restore.go b/pkg/checkpoint/checkpoint_restore.go
index dd40443b9..77a993128 100644
--- a/pkg/checkpoint/checkpoint_restore.go
+++ b/pkg/checkpoint/checkpoint_restore.go
@@ -32,13 +32,13 @@ func CRImportCheckpoint(ctx context.Context, runtime *libpod.Runtime, restoreOpt
options := &archive.TarOptions{
// Here we only need the files config.dump and spec.dump
ExcludePatterns: []string{
- "checkpoint",
- "artifacts",
- "ctr.log",
- "rootfs-diff.tar",
- "network.status",
- "deleted.files",
"volumes",
+ "ctr.log",
+ "artifacts",
+ metadata.RootFsDiffTar,
+ metadata.DeletedFilesFile,
+ metadata.NetworkStatusFile,
+ metadata.CheckpointDirectory,
},
}
dir, err := ioutil.TempDir("", "checkpoint")