master
parent
3cca493648
commit
7e8ac6bbd1
|
|
@ -1,6 +1,7 @@
|
|||
all_backups=($(find /mnt/save -not -path '*/\.*' -type f | sort -r))
|
||||
for ((i=${#all_backups[@]}-1; i>50; i--)); do
|
||||
echo rm old backpu ${all_backups[i]} >&2
|
||||
rm -f ${all_backups[i]} || true
|
||||
done
|
||||
|
||||
for b in "${all_backups[@]}"; do
|
||||
|
|
|
|||
Loading…
Reference in New Issue