Adding checking integrity on tarsnap before deleting.
This commit is contained in:
parent
d5d7467d45
commit
a75eb02c36
@ -85,6 +85,7 @@ virtual_env_prompt() {
|
||||
}
|
||||
|
||||
delete-old-archives() {
|
||||
sudo tarsnap --fsck
|
||||
archives=$(sudo tarsnap --list-archives | sort)
|
||||
del_archives=$(echo $archives | head -n $(($(echo $archives | wc -l) - 3)))
|
||||
del_archives=("${(@f)del_archives}")
|
||||
|
Loading…
Reference in New Issue
Block a user