Bugzilla – Attachment 47307 Details for
Bug 14532
koha-dump should provide a way to exclude Zebra indexes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14532: (followup) Use tar's --exclude for simplicity
Bug-14532-followup-Use-tars---exclude-for-simplici.patch (text/plain), 1.67 KB, created by
Tomás Cohen Arazi (tcohen)
on 2016-01-26 14:59:50 UTC
(
hide
)
Description:
Bug 14532: (followup) Use tar's --exclude for simplicity
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2016-01-26 14:59:50 UTC
Size:
1.67 KB
patch
obsolete
>From a0a425ddb9e85b5872b00e1056307dc9ccd6d49b Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Tom=C3=A1s=20Cohen=20Arazi?= <tomascohen@theke.io> >Date: Thu, 21 Jan 2016 10:50:17 -0300 >Subject: [PATCH] Bug 14532: (followup) Use tar's --exclude for simplicity > >This patch creates an --exclude definition for the tar command >so it is easier to stack excluded stuff. It does so for the >authority and biblio indexes if --exclude-indexes is passed. > >A side effect from this, is that uploads and plugins are still >backed up, as Jonathan noted. > >Regards > >Edit: Fixed a weird quoting problem. > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > debian/scripts/koha-dump | 11 ++++++----- > 1 file changed, 6 insertions(+), 5 deletions(-) > >diff --git a/debian/scripts/koha-dump b/debian/scripts/koha-dump >index a67a2c8..ff171a0 100755 >--- a/debian/scripts/koha-dump >+++ b/debian/scripts/koha-dump >@@ -81,16 +81,17 @@ dump_instance() > metadump="$backupdir/$name-$date.tar.gz" > [ "$quiet" = "no" ] && echo "* configs, logs to $metadump" > >- zebra_files="" >- if [ "$exclude_indexes" = "no" ]; then >- zebra_files="var/lib/koha/$name" >+ if [ "$exclude_indexes" = "yes" ]; then >+ excludes="--exclude=var/lib/koha/$name/biblios \ >+ --exclude=var/lib/koha/$name/authorities" > fi > >- tar -C / -czf "$metadump" \ >+ tar -czf "$metadump" -C / $excludes \ > "etc/koha/sites/$name" \ > "etc/apache2/sites-available/$instancefile" \ > "etc/apache2/sites-enabled/$instancefile" \ >- "var/log/koha/$name" ${zebra_files:+"$zebra_files"} >+ "var/lib/koha/$name" \ >+ "var/log/koha/$name" > > [ "$quiet" = "no" ] && echo "Done." > } >-- >2.7.0
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 14532
:
41098
|
44442
|
44674
|
44675
|
44676
|
47117
|
47307
|
47348
|
47349
|
47350
|
47351