rm
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
all_backups=($(find /mnt/save -not -path '*/\.*' -type f | sort -r))
|
all_backups=($(find /mnt/save -not -path '*/\.*' -type f | sort -r))
|
||||||
for ((i=${#all_backups[@]}-1; i>50; i--)); do
|
for ((i=${#all_backups[@]}-1; i>50; i--)); do
|
||||||
echo rm old backpu ${all_backups[i]} >&2
|
echo rm old backpu ${all_backups[i]} >&2
|
||||||
|
rm -f ${all_backups[i]} || true
|
||||||
done
|
done
|
||||||
|
|
||||||
for b in "${all_backups[@]}"; do
|
for b in "${all_backups[@]}"; do
|
||||||
|
|||||||
Reference in New Issue
Block a user