从远程主机同步数据库和/或数据的脚本
sitesync的Python项目详细描述
site sync
==
>脚本同步来自远程主机的数据库和/或数据
installation
----
:
usage
-
提供了一种从远程站点生成工作本地副本的简单方法,其中之一:
1)转储:将远程数据库和数据的副本保存到./dump/host文件夹
2)同步:替换本地数据库和数据从远程主机下载新副本
{0,1,2,3}[--dry run][--quiet][--localhost]
action target
dump remote db和/或data,或sync local db和/或data from remote instance
positional arguments:
action choices:sync,dump
target choices:db,data,all
可选参数:
-h,-help显示此帮助消息并退出 -v{01,1,2,3} -冗长{0},1,2,3}
冗长级别。(默认值:2)
--dry run,-d simulate actions
--quiet,-q在执行命令之前不需要用户确认
--localhost,-l将数据库和数据从localhost转储到./dumps/localhost
history
==
----
*默认情况下建议相对本地路径配置文件添加了对传统PostgreSQL语法的支持
==
>脚本同步来自远程主机的数据库和/或数据
installation
----
:
usage
-
提供了一种从远程站点生成工作本地副本的简单方法,其中之一:
1)转储:将远程数据库和数据的副本保存到./dump/host文件夹
2)同步:替换本地数据库和数据从远程主机下载新副本
{0,1,2,3}[--dry run][--quiet][--localhost]
action target
dump remote db和/或data,或sync local db和/或data from remote instance
positional arguments:
action choices:sync,dump
target choices:db,data,all
可选参数:
-h,-help显示此帮助消息并退出 -v{01,1,2,3} -冗长{0},1,2,3}
冗长级别。(默认值:2)
--dry run,-d simulate actions
--quiet,-q在执行命令之前不需要用户确认
--localhost,-l将数据库和数据从localhost转储到./dumps/localhost
history
==
*默认情况下建议相对本地路径配置文件添加了对传统PostgreSQL语法的支持