diff options
| author | Jeff Carr <[email protected]> | 2024-10-27 11:03:26 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-10-27 11:03:26 -0500 |
| commit | bf46163a87b78d6a4a8f66c6c817cc35fa29b1b8 (patch) | |
| tree | 48d2eedca9274bd8ad7f6948c730fe8ed6fe0088 | |
| parent | 099363089ba70d326bd3fcf5340652be2b4a2859 (diff) | |
timestamp example format was wrong
Signed-off-by: Jeff Carr <[email protected]>
| -rw-r--r-- | config.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) |
