4 月 232024
 

Source: 什麼是 CAP 理論

CAP 理論是指在一個分散式系統中,當涉及讀寫操作時,只能保證一制性(Consistence)、可用性(Availability)、分區容錯性(Partition Tolerance)三者中的兩個,剩下的一個必須被犧牲。

  • 一制性 Consistency:對某個 Client 來說,讀操作保證能夠返回最新寫操作的結果。
  • 可用性 Availability:非故障節點能在合理的時間內返回合理地響應(不是錯誤和超時的響應)。
  • 分區容錯性 Partition Tolerance:當出現分區時(封包遺失、連接中斷、塞車等),系統能夠繼續履行職責(返回 Reasonable Response)。
Continue reading »
1 月 162024
 

Source: Handling renamed files or directories in rsync

Here is a tool that is designed to work before rsync is run: rsync-sidekick

This propagates following changes from source directory to destination directory (or any combination of below):

  1. Change in file modification timestamp
  2. Rename of file/directory
  3. Moving a file from one directory to another

rsync options such as --detect-renamed--detect-renamed-lax--detect-moved and --fuzzy don’t work reliably and sometimes are dangerous! rsync-sidekick is reliable alternative to all these options and much more.

12 月 222023
 

完整備份 LINE 電腦版:

  • Windows:%USERPROFILE%\AppData\Local\LINE
  • MAC:~/Library/Containers/ jp.nvaver.line.mac/Data

一個群組一個群組分開備份成 txt 文字檔:

  • 步驟1點擊群組視窗右上角的「…圖示」。
  • 步驟2點擊「儲存聊天」。
  • 步驟3確認「檔名」、選擇「儲存位置」點擊「儲存」。
  • 步驟4彈跳視窗提醒「檔案格式為文字檔」、不會儲存圖檔。