aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrey Bastian <hello@treybastian.com>2025-11-19 11:32:25 +0000
committerTrey Bastian <hello@treybastian.com>2025-11-19 11:32:25 +0000
commitf1194b68568a05a9cb7c35ccc14b2b56dc181aa8 (patch)
tree29eec13ca458b906ad5aad09be89d394135ecee6
parent30a5e12dfe12728c1dd7b7eb455dd23919fe7305 (diff)
changed date format
-rwxr-xr-xdaily-snapshot.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/daily-snapshot.sh b/daily-snapshot.sh
index cb8e0b6..8a1544f 100755
--- a/daily-snapshot.sh
+++ b/daily-snapshot.sh
@@ -12,7 +12,7 @@
MAX_BACKUPS=7
-tar -czf "/mnt/backup/snapshots/gwaine.snapshot.`date + "%FT%H%M%S"`.tar.gz" -C /mnt/backup/live .
+tar -czf "/mnt/backup/snapshots/gwaine.snapshot.`date -Iseconds`.tar.gz" -C /mnt/backup/live .
COUNT=$(ls -1 /mnt/backup/snapshots/*.tar.gz 2>/dev/null | wc -l)