Skip to content

Commit

Permalink
fix archive purge
Browse files Browse the repository at this point in the history
  • Loading branch information
ryecoaaron committed Jan 5, 2019
1 parent 12deb26 commit 468c469
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
openmediavault-backup (4.0.5) stable; urgency=low

* Fix archive purge

-- OpenMediaVault Plugin Developers <plugins@omv-extras.org> Sat, 05 Jan 2019 09:17:25 -0600

openmediavault-backup (4.0.4) stable; urgency=low

* Add scheduled backup
Expand Down
2 changes: 1 addition & 1 deletion usr/share/openmediavault/mkconf/backup
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ purgeOld()
keep=$(omv_config_get "/config/system/backup/keep")
if [[ ${keep} -gt 0 ]]; then
echo "Purging old files..."
find "${backupDir}" -maxdepth 1 -type f -mtime ${keep} -name "${BACKUP_FILE_PREFIX}*" -delete
find "${backupDir}" -maxdepth 1 -type f -mtime +${keep} -name "${BACKUP_FILE_PREFIX}*" -delete
echo "Purging done."
else
echo "Purging disabled."
Expand Down

0 comments on commit 468c469

Please sign in to comment.