Plone技术资料

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 785|回复: 0

Linux/Unix环境迁移Plone站点数据的方法

[复制链接]
发表于 2019-7-14 20:13:16 | 显示全部楼层 |阅读模式
Below are example UNIX commands to copy a Plone site data from a computer to another over SCP/SSH connection.
The actual $USERNAME and folder locations depend on your system configuration.
A copy of the Plone site configuration must already exist on the target computer.

These instructions are for copying or creating a backup of your site data.
This operation can be performed on a running system - Data.fs is append only file and you will lose transactions which happened during the copying of the end of the file.

Copy Local To Remote
Run this command in your buildout Plone installation.
Copy Data.fs database:
  1. scp -C -o CompressionLevel=9 var/filestorage/Data.fs plone@server.com:/srv/plone/site/var/filestorage
复制代码

Copy BLOB Files Using Rsync
BLOB files contain file and image data uploaded to your site.
Since the file content rarely changes after upload, rsync can synchronize only changed files using -a (archive) flag.
  1. rsync -av --compress-level=9 var/blobstorage plone@server.com:/srv/plone/site/var
复制代码





回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|Archiver|手机版|Plone技术资料 ( 湘ICP备14006519号-1 )

GMT+8, 2019-8-23 13:18 , Processed in 0.044954 second(s), 14 queries , Gzip On.

Powered by Plone! X3.4

© 2001-2019 Plone.org.

快速回复 返回顶部 返回列表