Commit cd395b7e authored by Philippe Guilbault's avatar Philippe Guilbault Committed by Natanael Copa

BACKUP_LIMIT not working for encrypted backups

parent bd4e2c5b
......@@ -482,7 +482,7 @@ cmd_commit() {
# delete old backups if needed
# poor mans 'head -n -N' done with awk.
ls "$mnt"/$(hostname).[0-9][0-9][0-9][0-9]*[0-9].tar.gz 2>/dev/null \
ls "$mnt"/$(hostname).[0-9][0-9][0-9][0-9]*[0-9].tar.gz* 2>/dev/null \
| awk '{ a[++i] = $0; } END {
print a[0];
while (i-- > '"${BACKUP_LIMIT:-0}"') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment