diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2016-01-24 13:06:19 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2016-01-24 13:06:19 +0100 |
commit | 260d6d41a7eab55a051a5a8497f7bae2c9538006 (patch) | |
tree | 817b72770400555a51bf8f80a857cf46052403a5 /custom | |
parent | b948a2688a1a5f570fdb56b44a921194080fed52 (diff) | |
download | nixos-260d6d41a7eab55a051a5a8497f7bae2c9538006.tar nixos-260d6d41a7eab55a051a5a8497f7bae2c9538006.tar.gz nixos-260d6d41a7eab55a051a5a8497f7bae2c9538006.tar.bz2 nixos-260d6d41a7eab55a051a5a8497f7bae2c9538006.tar.xz nixos-260d6d41a7eab55a051a5a8497f7bae2c9538006.zip |
better backup dirs
Diffstat (limited to 'custom')
-rw-r--r-- | custom/simp_le.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/custom/simp_le.nix b/custom/simp_le.nix index 7478bcbf..686533a6 100644 --- a/custom/simp_le.nix +++ b/custom/simp_le.nix | |||
@@ -7,7 +7,7 @@ domain: | |||
7 | 7 | ||
8 | let | 8 | let |
9 | script = writeText "${domain}.sh" '' | 9 | script = writeText "${domain}.sh" '' |
10 | backupDir=/root/ssl_archive/$(date +'%Y-%m-%d')-${domain} | 10 | backupDir=/root/ssl_archive/$(date +'%Y-%m-%d')-$$-${domain} |
11 | mkdir -p ${dir} | 11 | mkdir -p ${dir} |
12 | cd ${dir} | 12 | cd ${dir} |
13 | mkdir -p $backupDir | 13 | mkdir -p $backupDir |