View | Details | Raw Unified | Return to bug 14532
Collapse All | Expand All

(-)a/debian/scripts/koha-dump (-6 / +6 lines)
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
    if [ "$exclude_indexes" = "yes" ]; then
85
    if [ "$exclude_indexes" = "no" ]; then
85
        excludes="--exclude=var/lib/koha/$name/biblios \
86
        zebra_files="var/lib/koha/$name"
86
                  --exclude=var/lib/koha/$name/authorities"
87
    fi
87
    fi
88
88
89
    tar -C / -czf "$metadump" \
89
    tar -czf "$metadump" -C / $excludes \
90
        "etc/koha/sites/$name" \
90
        "etc/koha/sites/$name" \
91
        "etc/apache2/sites-available/$instancefile" \
91
        "etc/apache2/sites-available/$instancefile" \
92
        "etc/apache2/sites-enabled/$instancefile" \
92
        "etc/apache2/sites-enabled/$instancefile" \
93
        "var/log/koha/$name" ${zebra_files:+"$zebra_files"}
93
        "var/lib/koha/$name" \
94
        "var/log/koha/$name"
94
95
95
    [ "$quiet" = "no" ] && echo "Done."
96
    [ "$quiet" = "no" ] && echo "Done."
96
}
97
}
97
- 

Return to bug 14532