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

(-)a/debian/scripts/koha-run-backups (-5 / +3 lines)
Lines 67-80 fi Link Here
67
67
68
for name in $(koha-list --enabled | grep -Fxv demo)
68
for name in $(koha-list --enabled | grep -Fxv demo)
69
do
69
do
70
    if koha-dump ${exclude_indexes} "$name" > /dev/null; then
70
     koha-dump ${exclude_indexes} "$name" > /dev/null;
71
        if [ -z "$dirname" ]; then
71
        if [ -z "$dirname" ]; then
72
            backupdir="$( xmlstarlet sel -t -v 'yazgfs/config/backupdir' /etc/koha/sites/$name/koha-conf.xml )";
72
            backupdir="$( xmlstarlet sel -t -v 'yazgfs/config/backupdir' /etc/koha/sites/$name/koha-conf.xml )";
73
        else
73
        else
74
            backupdir="$dirname/$name";
74
            backupdir="$dirname/$name";
75
        fi
75
        fi
76
    fi
76
    
77
77
        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
78
    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
79
done
78
done
80
79
81
- 

Return to bug 36435