Lines 81-96
dump_instance()
Link Here
|
81 |
metadump="$backupdir/$name-$date.tar.gz" |
81 |
metadump="$backupdir/$name-$date.tar.gz" |
82 |
[ "$quiet" = "no" ] && echo "* configs, logs to $metadump" |
82 |
[ "$quiet" = "no" ] && echo "* configs, logs to $metadump" |
83 |
|
83 |
|
84 |
zebra_files="" |
84 |
excludes="" |
85 |
if [ "$exclude_indexes" = "no" ]; then |
85 |
if [ "$exclude_indexes" = "no" ]; then |
86 |
zebra_files="var/lib/koha/$name" |
86 |
excludes="--exclude='var/lib/koha/$name/biblios' \ |
|
|
87 |
--exclude='var/lib/koha/$name/authorities'" |
87 |
fi |
88 |
fi |
88 |
|
89 |
|
89 |
tar -C / -czf "$metadump" \ |
90 |
tar -C / -czf "$metadump" $excludes \ |
90 |
"etc/koha/sites/$name" \ |
91 |
"etc/koha/sites/$name" \ |
91 |
"etc/apache2/sites-available/$instancefile" \ |
92 |
"etc/apache2/sites-available/$instancefile" \ |
92 |
"etc/apache2/sites-enabled/$instancefile" \ |
93 |
"etc/apache2/sites-enabled/$instancefile" \ |
93 |
"var/log/koha/$name" ${zebra_files:+"$zebra_files"} |
94 |
"var/log/koha/$name" |
94 |
|
95 |
|
95 |
[ "$quiet" = "no" ] && echo "Done." |
96 |
[ "$quiet" = "no" ] && echo "Done." |
96 |
} |
97 |
} |
97 |
- |
|
|