pub:paramount

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
pub:paramount [2019/11/29 22:57] fapub:paramount [2019/11/29 23:41] (current) fa
Line 121: Line 121:
  
  
 +</file>
 +
 +<file>
 +#!/bin/bash
 +sqlite3 /data/freenas-v1.db ".tables" > table_names.txt
 +
 +for t in $(cat table_names.txt); do
 +        if [ "$t" == "auth_permission" ]; then
 +                continue
 +        fi
 +        if [ "$t" == "django_content_type" ]; then
 +                continue
 +        fi
 +        if [ "$t" == "south_migrationhistory" ]; then
 +                continue
 +        fi
 +        echo "===== ${t} =====" >> all.txt ;
 +        sqlite3 /data/freenas-v1.db "SELECT * FROM ${t};" >> all.txt ;
 +
 +done
 </file> </file>
  • pub/paramount.1575068239.txt.gz
  • Last modified: 2019/11/29 22:57
  • by fa