From 49a7b6d3a45c5a93d9d29b56d5f86ea460d5bc7c Mon Sep 17 00:00:00 2001 From: Sonny Date: Wed, 31 Jan 2018 17:03:56 +0100 Subject: [PATCH] LXC copy container script --- .gitignore | 1 + scripts/copy-container | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 .gitignore create mode 100755 scripts/copy-container diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ffe9657 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +vim/.netrwhist diff --git a/scripts/copy-container b/scripts/copy-container new file mode 100755 index 0000000..9814583 --- /dev/null +++ b/scripts/copy-container @@ -0,0 +1,4 @@ +#!/bin/bash +# $1 is for the container to be copied +# $2 is the name of the newly snapshotted container +lxc-copy -n $1 -N $2 -B overlayfs -s