<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>WAL on 每日拍拍</title>
    <link>https://dailypypy.org/tags/wal/</link>
    <description>Recent content in WAL on 每日拍拍</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>zh-tw</language>
    <copyright>© 2026 每日拍拍</copyright>
    <lastBuildDate>Fri, 06 Nov 2026 12:43:00 +0800</lastBuildDate><atom:link href="https://dailypypy.org/tags/wal/index.xml" rel="self" type="application/rss+xml" />
    <follow_challenge>
      <feedId>155076163427069952</feedId>
      <userId>154825760438254592</userId>
    </follow_challenge>
    
    
    <item>
      <title>Python SQLite 線上備份：WAL、Connection.backup 與還原驗收</title>
      <link>https://dailypypy.org/learn/python-sqlite-online-backup/</link>
      <pubDate>Fri, 06 Nov 2026 12:43:00 +0800</pubDate>
      
      <guid>https://dailypypy.org/learn/python-sqlite-online-backup/</guid>
      <description>&lt;!---
1440x768
prompt: masterpiece, best quality, highres, clean anime illustration, japanese anime style, soft shading, flat color design, 1girl, black hair, green eyes, white off-shoulder shirt, black short skirt, side profile medium shot looking over shoulder, standing with both hands gently holding a closed book at waist level, calm confident smile, looking at viewer, pastel apricot cream background, neat composition, detailed eyes, cute and smart vibe, minimal background, polished illustration, no text
negative prompt: worst quality, bad eye, bad hand, extra limbs, manga, multiple views, monochrome, text, signature
dedup note: Specific follow-up to ../python-sqlite3/ (CRUD, transactions, basic WAL toggle). Owns online backup from a separate read-only connection, explicitly pinned snapshot under concurrent commits, staged validation and isolated restore drill. Not the Textual/SQLModel frontend, Alembic migration or shutil filesystem-copy angle. 213 current source inventories and weekly-plan current/recent/Already Published sections checked before drafting.
source check: Python sqlite3 and SQLite official backup, WAL, URI and PRAGMA references reviewed 2026-11-06. Executed with Python 3.14.3 / SQLite 3.53.4 on macOS; code requires Python 3.12+ for explicit autocommit.
verification: 16 contract tests plus clean-reader article demo, unittest and external 15-second supervisor passed. All 6 Python blocks parsed; all 10 Hugo-rendered code blocks match source. Maximum prose 5-gram similarity 0.024434 versus the sqlite3 introduction; manual semantic scope review passed. Cover DAILYPYPY_00158_.png verified 1440x768 and visually checked.
publication note: Required randomized display date retained; publishDate permits the authorized morning publication with buildFuture=false.
---&gt;

&lt;h2 class=&#34;relative group&#34;&gt;一. 前言：有一個 DB 檔，不等於有一份能還原的備份 
    &lt;div id=&#34;一-前言有一個-db-檔不等於有一份能還原的備份&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;
    
    &lt;span
        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100&#34;&gt;
        &lt;a class=&#34;group-hover:text-primary-300 dark:group-hover:text-neutral-700&#34;
            style=&#34;text-decoration-line: none !important;&#34; href=&#34;#%e4%b8%80-%e5%89%8d%e8%a8%80%e6%9c%89%e4%b8%80%e5%80%8b-db-%e6%aa%94%e4%b8%8d%e7%ad%89%e6%96%bc%e6%9c%89%e4%b8%80%e4%bb%bd%e8%83%bd%e9%82%84%e5%8e%9f%e7%9a%84%e5%82%99%e4%bb%bd&#34; aria-label=&#34;定位點&#34;&gt;#&lt;/a&gt;
    &lt;/span&gt;        
    
&lt;/h2&gt;
&lt;p&gt;嗨，我是拍拍君。
你的小工具持續寫入 SQLite，想每天存一份備份。
於是複製 &lt;code&gt;live.db&lt;/code&gt;，看到檔案存在，就安心關掉終端機。&lt;/p&gt;</description>
      <media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://dailypypy.org/learn/python-sqlite-online-backup/featured.png" />
    </item>
    
  </channel>
</rss>
