From bf46163a87b78d6a4a8f66c6c817cc35fa29b1b8 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 27 Oct 2024 11:03:26 -0500 Subject: [PATCH] timestamp example format was wrong Signed-off-by: Jeff Carr --- config.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config.go b/config.go index 26b5d3f..cd33a83 100644 --- a/config.go +++ b/config.go @@ -80,7 +80,8 @@ func (c *Cluster) ConfigSave() error { func backupConfigFiles() error { // make a new dir to backup the files now := time.Now() - timestamp := now.Format("2022.07.18.190545") // 50yr shout out to K&R + // timestamp := now.Format("2022.07.18.190545") // 50yr shout out to K&R + timestamp := now.Format("2006.01.02.150405") // bummer. other date doesn't work? srcDir := filepath.Join(os.Getenv("VIRTIGO_HOME")) destDir := filepath.Join(os.Getenv("VIRTIGO_HOME"), timestamp)