[WordPress] 外掛分享: b2-sync

首頁外掛目錄 › b2-sync
WordPress 外掛 b2-sync 的封面圖片
全新外掛
安裝啟用
尚無評分
1609 天前
最後更新
問題解決
WordPress 5.7.0+ PHP 7.2+ v1.2.0 上架:2021-11-27

內容簡介

這個外掛可以讓你將 wp-content/uploads 資料夾同步到你的 backblaze b2 存儲桶。

每當你:
– 創建新文章或頁面並添加新的媒體文件
– 編輯現有文章或頁面以添加或更新媒體文件時,它也會自動同步你的所有媒體檔案。

注意:
如果你在媒體庫頁面上上傳媒體,它將不會觸發運行。
幸運的是,你可以使用我們提供的動作按鈕直接觸發回到 backblaze 的同步後,像這樣上傳媒體。

需求

這個外掛假定你的伺服器已安裝 rclone.
請參考此指南以安裝 rclone:https://rclone.org/downloads/

下一步計畫

識別出通過 WordPress 媒體庫上傳媒體時適當的 hook,以便我們也能為這個動作觸發同步
告知同步程序忽略某些類型的文件
日誌文件消息沒有很好看 - 創建一個自定義方法來替代依賴於 monolog / monolog。
(完成)手動使用操作按鈕觸發同步時顯示同步的實時詳細模式。

貢獻

參與 GitHub 項目是貢獻該外掛開發的最佳方式:

https://github.com/wkhayrattee/b2-sync

你可以通過以下方式做出貢獻:

如果你發現錯誤,則提出問題
使用您的錯誤修復和/或新功能創建/提交拉取請求
提供反饋和/或建議以進行任何改進或增強
翻譯 - 這是我們未來要做的一個領域

功績

插圖由 Storyset 提供

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.2.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「b2-sync」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

This plugin allows you to sync your wp-content/uploads folder onto your backblaze b2 bucket.
It will also automatically sync all your media whenever you:
– create a new post or page and add a new media
– edit an existing post or page to add or update a media file
NOTE:
It will not get triggered if you upload a media on the media library page.
Fortunately, after you upload a media like this, you can directly trigger a sync to backblaze by using the action button that we put at your disposal.
REQUIREMENTS
This plugin relies and assumes that you have rclone installed on your server.
Refer to this guide on how to install rclone: https://rclone.org/downloads/
TODO in next phase

Identify an appropriate hook when a media is uploaded via the WordPress Media Library so that we can trigger the sync for this action as well
Tell the sync process to ignore certain type of files
The log file messages are not pretty – create a custom approach for that instead of relying on monolog/monolog
(DONE) Show a real-time verbose mode of the sync when triggering the sync manual using the action button?

Contributing
The best way to contribute to the development of this plugin is by participating on the GitHub project:
https://github.com/wkhayrattee/b2-sync
There are many ways you can contribute:

Raise an issue if you found one
Create/send us a Pull Request with your bug fixes and/or new features
Provide us with your feedback and/or suggestions for any improvement or enhancement
Translation – this is an area we are yet to do

Attributions

Storyset for the illustrations

延伸相關外掛

文章
Filter
Mastodon