Bugzilla – Attachment 134350 Details for
Bug 21903
koha-dump be able to include koha-upload
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21903: (follow-up) koha-dump can export uploaded and temporary uploaded files
Bug-21903-follow-up-koha-dump-can-export-uploaded-.patch (text/plain), 2.32 KB, created by
Marcel de Rooy
on 2022-04-29 08:54:31 UTC
(
hide
)
Description:
Bug 21903: (follow-up) koha-dump can export uploaded and temporary uploaded files
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2022-04-29 08:54:31 UTC
Size:
2.32 KB
patch
obsolete
>From 75637630b8ad03f138d0a9f74ca0c7b6f09dfede Mon Sep 17 00:00:00 2001 >From: Marion Durand <marion.durand@biblibre.com> >Date: Thu, 21 Oct 2021 08:00:21 +0000 >Subject: [PATCH] Bug 21903: (follow-up) koha-dump can export uploaded and > temporary uploaded files >Content-Type: text/plain; charset=utf-8 > >Minor improvment on display. >Solve the error message if the folder for uploaded temp files >doesn't exist. > >Sponsored-by: Orex > >Test plan: >- Apply the patch >- Try using koha-dump without any option >- Try using koha-dump with --uploaded_files >- Try using koha-dump with --uploaded_temp_files >- Try using koha-dump with both of the options above > >Expected results: the .tar.gz dump will include uploaded and/or temporary >uploaded files if requested. >Change message and solve the error message if no temporary folder > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > debian/scripts/koha-dump | 10 +++++++++- > 1 file changed, 9 insertions(+), 1 deletion(-) > >diff --git a/debian/scripts/koha-dump b/debian/scripts/koha-dump >index 62c1c57433..399eb8618f 100755 >--- a/debian/scripts/koha-dump >+++ b/debian/scripts/koha-dump >@@ -97,7 +97,7 @@ dump_instance() > > # Dump configs, logs, etc. > metadump="$backupdir/$name-$date.tar.gz" >- [ "$quiet" = "no" ] && echo "* configs, files, logs to $metadump" >+ output="* configs, logs" > > if [ "$exclude_indexes" = "yes" ]; then > excludes="--exclude=var/lib/koha/$name/biblios \ >@@ -107,14 +107,22 @@ dump_instance() > if [ "$uploaded_files" = "yes" ]; then > # Remove leading / > uploaded_files_dir=$(echo $(get_upload_path $name) | cut -c 2-) >+ output="$output, uploaded files" > fi > > if [ "$uploaded_temp_files" = "yes" ]; then > # Remove leading / > tempdir=$(echo $(get_tmp_path $name) | cut -c 2-) > uploaded_temp_files_dir="$tempdir/koha_${name}_upload" >+ if ! [ -d /$uploaded_temp_files_dir ]; then >+ mkdir /$uploaded_temp_files_dir >+ fi >+ output="$output, uploaded temporary files" > fi > >+ output="$output to $metadump" >+ [ "$quiet" = "no" ] && echo "$output" >+ > tar -czf "$metadump" -C / $excludes \ > "etc/koha/sites/$name" \ > "etc/apache2/sites-available/$instancefile" \ >-- >2.20.1
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 21903
:
88598
|
88867
|
93550
|
93862
|
126835
|
126907
|
126908
|
128732
|
134349
| 134350 |
134351