Rename to exponential_backups
This commit is contained in:
parent
9a3f4a38aa
commit
d25a1b261d
2
test.sh
2
test.sh
@ -4,7 +4,7 @@ touch test_results
|
|||||||
for (( ago=100; ago>=0; ago-- )); do
|
for (( ago=100; ago>=0; ago-- )); do
|
||||||
backup_date=$( date -I -d "$ago days ago")
|
backup_date=$( date -I -d "$ago days ago")
|
||||||
echo $backup_date >> test_latest
|
echo $backup_date >> test_latest
|
||||||
grep -v "_" test_latest | ./binary_backups.sh -r -d "$backup_date" | xargs -I "{}" sed -ri "s/{}/__________/g" test_latest
|
grep -v "_" test_latest | ./exponential_backups.sh -r -d "$backup_date" | xargs -I "{}" sed -ri "s/{}/__________/g" test_latest
|
||||||
mv test_results test_results_old
|
mv test_results test_results_old
|
||||||
paste -d " " test_latest test_results_old > test_results
|
paste -d " " test_latest test_results_old > test_results
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user