指令 rsync -av --delete source target 中:
-a:相當於-rlptgoD,同步資料一般就是用-a--delete:若 source 中的檔案被刪除、不存在,則一併刪除 target 中的資料
還有一些方便的參數可用:
--partial:保留傳輸未完成的檔案,供下次繼續--progress:顯示檔案傳輸的進度
軟體開發和生活瑣事
指令 rsync -av --delete source target 中:
-a:相當於 -rlptgoD,同步資料一般就是用 -a--delete:若 source 中的檔案被刪除、不存在,則一併刪除 target 中的資料還有一些方便的參數可用:
--partial:保留傳輸未完成的檔案,供下次繼續--progress:顯示檔案傳輸的進度發現 Razer 官方有提供 Linux 的工具:https://openrazer.github.io/。
目前還沒找到方法把滑鼠 RGB 燈光關掉,但一些功能按鍵可以使用了。
Mastodon 大版本更新,需要先 migrate database:
docker-compose run --rm web RAILS_ENV=production bundle exec rails db:migrate