vserver: Create clone-exclude for files not be copied on cloning.
authorMatthijs Kooijman <matthijs@drsnuggles.stderr.nl>
Tue, 16 Sep 2008 19:41:45 +0000 (21:41 +0200)
committerMatthijs Kooijman <matthijs@drsnuggles.stderr.nl>
Tue, 16 Sep 2008 19:41:45 +0000 (21:41 +0200)
vunify/exclude contained lines for this, but those are not used by clone
(only the deprecated vcopy).

etc/vservers/.defaults/apps/vunify/exclude
etc/vservers/clone-exclude [new file with mode: 0644]

index bd5f6bf6219a1b4e3969acb5f695a852d81598b5..c94db10a03d169b849ef394f53eb6792abe50f01 100644 (file)
@@ -1,9 +1,3 @@
-# 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 hashify these dirs
 /dev
 /etc
diff --git a/etc/vservers/clone-exclude b/etc/vservers/clone-exclude
new file mode 100644 (file)
index 0000000..4d78f7b
--- /dev/null
@@ -0,0 +1,5 @@
+# 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/*