定制 lucapon/statamic-content-backup 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

lucapon/statamic-content-backup

最新稳定版本:v4.0.0

Composer 安装命令:

composer require lucapon/statamic-content-backup

包简介

Statamic Content Backup is a Statamic addon that allows control panel users to create, download, upload and restore content backups easily.

README 文档

README

Packagist version Packagist Total Downloads

Statamic Content Backup is a Statamic addon that allows control panel users to create, download, upload and restore content backups easily.

Features

  • Create and restore full content backups from the control panel
  • Back up database-stored content
  • Upload and download backup archives
  • Backup history with size and creation date
  • Background backup creation via Laravel queues

Installation

Install this addon running the following command from your project's root directory:

composer require lucapon/statamic-content-backup

After installation, publish the configuration file with:

php artisan vendor:publish --tag=statamic-content-backup-config

Run the following command to start the Laravel queue to handle backups creation in the background:

php artisan queue:work

Usage

Once installed, the addon is available under Utilities > Content Backup in the Statamic control panel.

Customization

You can customize which files and database tables are included in the backup by editing the configuration file located at: config/statamic-content-backup.php

Upgrading

Upgrading to v3

If you upgrade to version ^2.0.0 or ^3.0.0, it is recommended to republish the configuration file to ensure compatibility with the updated features. Run the following command:

php artisan vendor:publish --tag=statamic-content-backup-config --force

This will overwrite your old configuration file with the updated version. Be sure to review the new configuration file for any additional options or changes.

Upgrading to v4

Version 4.x requires Statamic 6 (and Laravel 12). It is not compatible with earlier versions of Statamic.

composer require lucapon/statamic-content-backup:^4.0

Permissions: In v3, the addon used a custom permission (statamic-content-backup-permission). In v4, permissions are managed automatically by Statamic's utility system. The permission is now access content_backup utility and can be configured under Users > Roles > Utilities in the control panel.

统计信息

  • 总下载量: 3.71k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-03-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固