aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/backup_prices.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/backup_prices.sh')
-rwxr-xr-xscripts/backup_prices.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/backup_prices.sh b/scripts/backup_prices.sh
index fe257a20..569a2fe4 100755
--- a/scripts/backup_prices.sh
+++ b/scripts/backup_prices.sh
@@ -1,4 +1,5 @@
#!/bin/bash
-for i in {10..12}; do
- find . -maxdepth 1 -type d|grep "Prices_2017-${i}"|xargs tar cvf "prices_2017-${i}.tar.zstd" -I zstdmt;
+year=$1
+for i in {01..12}; do
+ find . -maxdepth 1 -type d|grep "Prices_${year}-${i}"|xargs tar cvf "prices_${year}-${i}.tar.zst" -I zstdmt;
done