def do_clone(self, line):
        '''.clone NEWDB           
Clone data into NEWDB from the existing database'''
        if not os.path.isfile(line):
            try:
                conn = sqlite3.connect(line)
                cur = conn.cursor()
                cur.executescript('\n'.join(self.conn.iterdump()))
                print("Switched to database: %s" % line)
                self.conn = conn
                self.cur = cur
            except sqlite3.Error as e:
                print('There was an error with the clone %s' % e.args[0])
.clone NEWDB           
Clone data into NEWDB from the existing database
bin/sqlite.py