timestamp example format was wrong

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-10-27 11:03:26 -05:00
parent 099363089b
commit bf46163a87
1 changed files with 2 additions and 1 deletions

View File

@ -80,7 +80,8 @@ func (c *Cluster) ConfigSave() error {
func backupConfigFiles() error { func backupConfigFiles() error {
// make a new dir to backup the files // make a new dir to backup the files
now := time.Now() 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")) srcDir := filepath.Join(os.Getenv("VIRTIGO_HOME"))
destDir := filepath.Join(os.Getenv("VIRTIGO_HOME"), timestamp) destDir := filepath.Join(os.Getenv("VIRTIGO_HOME"), timestamp)