| Lines 48-53
          $scriptname -h|--help
      
      
        Link Here | 
        
          | 48 |  | 48 |  | 
        
          | 49 |     --schema-only         Dump only the database schema | 49 |     --schema-only         Dump only the database schema | 
        
          | 50 |     --exclude-indexes     Include Zebra indexes on the backup | 50 |     --exclude-indexes     Include Zebra indexes on the backup | 
            
              |  |  | 51 |     --uploaded_files      Include uploaded files. | 
            
              | 52 |     --uploaded_temp_files Include temporary uploaded files. | 
        
          | 51 |     --quiet|-q            Make the script avoid printing to STDOUT | 53 |     --quiet|-q            Make the script avoid printing to STDOUT | 
        
          | 52 |                           (useful for calling from another scripts) | 54 |                           (useful for calling from another scripts) | 
        
          | 53 |     --help|-h             Display this help message | 55 |     --help|-h             Display this help message | 
  
    | Lines 95-105
          dump_instance()
      
      
        Link Here | 
        
          | 95 |  | 97 |  | 
        
          | 96 |         # Dump configs, logs, etc. | 98 |         # Dump configs, logs, etc. | 
        
          | 97 |         metadump="$backupdir/$name-$date.tar.gz" | 99 |         metadump="$backupdir/$name-$date.tar.gz" | 
          
            
              | 98 |         [ "$quiet" = "no" ] && echo "* configs, logs to $metadump" | 100 |         [ "$quiet" = "no" ] && echo "* configs, files, logs to $metadump" | 
        
          | 99 |  | 101 |  | 
        
          | 100 |         if [ "$exclude_indexes" = "yes" ]; then | 102 |         if [ "$exclude_indexes" = "yes" ]; then | 
        
          | 101 |             excludes="--exclude=var/lib/koha/$name/biblios \ | 103 |             excludes="--exclude=var/lib/koha/$name/biblios \ | 
          
            
              | 102 |                       --exclude=var/lib/koha/$name/authorities" | 104 |                   --exclude=var/lib/koha/$name/authorities" | 
            
              |  |  | 105 |         fi | 
            
              | 106 |  | 
            
              | 107 |         if [ "$uploaded_files" = "yes" ]; then | 
            
              | 108 |             # Remove leading / | 
            
              | 109 |             uploaded_files_dir=$(echo $(get_upload_path $name) | cut -c 2-) | 
            
              | 110 |         fi | 
            
              | 111 |  | 
            
              | 112 |         if [ "$uploaded_temp_files" = "yes" ]; then | 
            
              | 113 |             # Remove leading / | 
            
              | 114 |             tempdir=$(echo $(get_tmp_path $name) | cut -c 2-) | 
            
              | 115 |             uploaded_temp_files_dir="$tempdir/koha_${name}_upload" | 
        
          | 103 |         fi | 116 |         fi | 
        
          | 104 |  | 117 |  | 
        
          | 105 |         tar -czf "$metadump" -C / $excludes \ | 118 |         tar -czf "$metadump" -C / $excludes \ | 
  
    | Lines 107-119
          dump_instance()
      
      
        Link Here | 
        
          | 107 |             "etc/apache2/sites-available/$instancefile" \ | 120 |             "etc/apache2/sites-available/$instancefile" \ | 
        
          | 108 |             "etc/apache2/sites-enabled/$instancefile" \ | 121 |             "etc/apache2/sites-enabled/$instancefile" \ | 
        
          | 109 |             "var/lib/koha/$name" \ | 122 |             "var/lib/koha/$name" \ | 
          
            
              | 110 |             "var/log/koha/$name" | 123 |             "var/log/koha/$name" \ | 
            
              |  |  | 124 |             $uploaded_files_dir \ | 
            
              | 125 |             $uploaded_temp_files_dir | 
        
          | 111 |  | 126 |  | 
        
          | 112 |         chown "root:$name-koha" "$metadump" | 127 |         chown "root:$name-koha" "$metadump" | 
        
          | 113 |         chmod g+r "$metadump" | 128 |         chmod g+r "$metadump" | 
        
          | 114 |  | 129 |  | 
        
          | 115 |         [ "$quiet" = "no" ] && echo "Done." | 130 |         [ "$quiet" = "no" ] && echo "Done." | 
            
              | 116 |  |  |  | 
        
          | 117 |     fi | 131 |     fi | 
        
          | 118 | } | 132 | } | 
        
          | 119 |  | 133 |  | 
  
    | Lines 135-140
          while [ $# -gt 0 ]; do
      
      
        Link Here | 
        
          | 135 |         --without-db-name) | 149 |         --without-db-name) | 
        
          | 136 |             without_db_name="yes" | 150 |             without_db_name="yes" | 
        
          | 137 |             shift ;; | 151 |             shift ;; | 
            
              |  |  | 152 |        --uploaded_files) | 
            
              | 153 |             uploaded_files="yes" | 
            
              | 154 |             shift ;; | 
            
              | 155 |         --uploaded_temp_files) | 
            
              | 156 |             uploaded_temp_files="yes" | 
            
              | 157 |             shift ;; | 
        
          | 138 |         -h|--help) | 158 |         -h|--help) | 
        
          | 139 |             usage ; exit 0 ;; | 159 |             usage ; exit 0 ;; | 
        
          | 140 |         -q|--quiet) | 160 |         -q|--quiet) |