Adding checking integrity on tarsnap before deleting.

This commit is contained in:
Faerbit 2015-12-03 13:42:05 +01:00
parent d5d7467d45
commit a75eb02c36

View File

@ -85,6 +85,7 @@ virtual_env_prompt() {
} }
delete-old-archives() { delete-old-archives() {
sudo tarsnap --fsck
archives=$(sudo tarsnap --list-archives | sort) archives=$(sudo tarsnap --list-archives | sort)
del_archives=$(echo $archives | head -n $(($(echo $archives | wc -l) - 3))) del_archives=$(echo $archives | head -n $(($(echo $archives | wc -l) - 3)))
del_archives=("${(@f)del_archives}") del_archives=("${(@f)del_archives}")