LXC copy container script

This commit is contained in:
Sonny 2018-01-31 17:03:56 +01:00
parent 3622910561
commit 49a7b6d3a4
2 changed files with 5 additions and 0 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
vim/.netrwhist

4
scripts/copy-container Executable file
View file

@ -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