diff options
| author | Jeff Carr <[email protected]> | 2024-12-05 12:37:07 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-05 12:37:07 -0600 |
| commit | 34a287a38e3af080ec3d3c42bbca5ef06b2311f8 (patch) | |
| tree | fa600ee6f6ee77bddd1f4f86c5f8b7276e066fe0 /configBackup.go | |
| parent | f98179971e574de202c582576e59a8e3da68530f (diff) | |
Diffstat (limited to 'configBackup.go')
| -rw-r--r-- | configBackup.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/configBackup.go b/configBackup.go index ee019ae..d9bc396 100644 --- a/configBackup.go +++ b/configBackup.go @@ -18,8 +18,8 @@ func backupConfig() error { now := time.Now() // 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("FORGE_HOME")) - destDir := filepath.Join(os.Getenv("FORGE_HOME"), timestamp) + srcDir := filepath.Join(os.Getenv("FORGE_CONFIG")) + destDir := filepath.Join(os.Getenv("FORGE_CONFIG"), timestamp) return backupFiles(srcDir, destDir) } |
