Bugzilla – Attachment 164491 Details for
Bug 36435
Prevent warnings from interrupting koha-run-backups when deleting old backup files
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36435: Always delete old backup files
Bug-36435-Always-delete-old-backup-files.patch (text/plain), 1.34 KB, created by
Danyon Sewell
on 2024-04-08 02:24:39 UTC
(
hide
)
Description:
Bug 36435: Always delete old backup files
Filename:
MIME Type:
Creator:
Danyon Sewell
Created:
2024-04-08 02:24:39 UTC
Size:
1.34 KB
patch
obsolete
>From 79040799d516b8fb2ddd764a6f541c7b9e9a9dc9 Mon Sep 17 00:00:00 2001 >From: danyonsewell <danyonsewell@catalyst.net.nz> >Date: Mon, 8 Apr 2024 02:22:23 +0000 >Subject: [PATCH] Bug 36435: Always delete old backup files > >--- > debian/scripts/koha-run-backups | 7 +++---- > 1 file changed, 3 insertions(+), 4 deletions(-) > >diff --git a/debian/scripts/koha-run-backups b/debian/scripts/koha-run-backups >index be807898e5..0617596657 100755 >--- a/debian/scripts/koha-run-backups >+++ b/debian/scripts/koha-run-backups >@@ -67,14 +67,13 @@ fi > > for name in $(koha-list --enabled | grep -Fxv demo) > do >- if koha-dump ${exclude_indexes} "$name" > /dev/null; then >+ koha-dump ${exclude_indexes} "$name" > /dev/null; > if [ -z "$dirname" ]; then > backupdir="$( xmlstarlet sel -t -v 'yazgfs/config/backupdir' /etc/koha/sites/$name/koha-conf.xml )"; > else > backupdir="$dirname/$name"; > fi >- fi >- >- find $backupdir -maxdepth 1 \( -mtime +$days -or -mtime $days \) -name $name-'[1-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9].???'.gz \( -name \*.sql.gz -or -name \*.tar.gz \) -print0 | xargs -0 -r rm >+ >+ find $backupdir -maxdepth 1 \( -mtime +$days -or -mtime $days \) -name $name-'[1-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9].???'.gz \( -name \*.sql.gz -or -name \*.tar.gz \) -print0 | xargs -0 -r rm > done > >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 36435
:
163970
|
164240
|
164491
|
165936
|
165937
|
165943
|
165944
|
171178
|
171179
|
172133
|
172528