vserver: Create clone-exclude for files not be copied on cloning.
authorMatthijs Kooijman <matthijs@stdin.nl>
Thu, 18 Nov 2010 14:47:36 +0000 (15:47 +0100)
committerMatthijs Kooijman <matthijs@stdin.nl>
Thu, 18 Nov 2010 18:54:06 +0000 (19:54 +0100)
This file is not used automatically, but should be passed to
vserver ... build ... --exclude-from

etc/vservers/clone-exclude [new file with mode: 0644]

diff --git a/etc/vservers/clone-exclude b/etc/vservers/clone-exclude
new file mode 100644 (file)
index 0000000..9e796c0
--- /dev/null
@@ -0,0 +1,7 @@
+# Don't copy ssh keys when cloning
+/etc/ssh/*key*
+# Dont' copy temp files when cloning (But do copy the dirs themselves)
+/tmp/*
+/var/tmp/*
+# Don't copy any spool files (but again, do copy the dirs)
+/var/spool/*/*