diff options
| author | Trey Bastian <hello@treybastian.com> | 2025-11-19 11:32:25 +0000 |
|---|---|---|
| committer | Trey Bastian <hello@treybastian.com> | 2025-11-19 11:32:25 +0000 |
| commit | f1194b68568a05a9cb7c35ccc14b2b56dc181aa8 (patch) | |
| tree | 29eec13ca458b906ad5aad09be89d394135ecee6 /daily-snapshot.sh | |
| parent | 30a5e12dfe12728c1dd7b7eb455dd23919fe7305 (diff) | |
changed date format
Diffstat (limited to 'daily-snapshot.sh')
| -rwxr-xr-x | daily-snapshot.sh | 2 |
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) |
