Added pushhtml example to README and to usage text
This commit is contained in:
parent
17fb11fae2
commit
8279dc0c4b
23
README.md
23
README.md
@ -55,6 +55,29 @@ To get help on a subcommand:
|
|||||||
etherdump revisionscount --help
|
etherdump revisionscount --help
|
||||||
|
|
||||||
|
|
||||||
|
Usage / cookbook
|
||||||
|
========================
|
||||||
|
|
||||||
|
Using etherdump to migrate from one etherpad instance to another
|
||||||
|
------------------------------------------------------------------
|
||||||
|
|
||||||
|
mkdir instance1 && cd instance1
|
||||||
|
etherdump init
|
||||||
|
etherdump pull --html --meta
|
||||||
|
|
||||||
|
(cd ..)
|
||||||
|
mkdir instance2 && cd instance2
|
||||||
|
etherdump init
|
||||||
|
etherdump pushhtml --basepath ../instance1 ../instance1/p/*.meta.json
|
||||||
|
|
||||||
|
Warning, this command indescriminantly clobbers pads in instance2 with the HTML of the dumped versions from instance1.
|
||||||
|
|
||||||
|
Note: this technique can be used to "reset" the database of a pad by recreating pads (without their history or editor info/colors) in a fresh database.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Change log / notes
|
Change log / notes
|
||||||
=======================
|
=======================
|
||||||
|
|
||||||
|
|||||||
@ -7,17 +7,25 @@ usage = """Usage:
|
|||||||
etherdump CMD
|
etherdump CMD
|
||||||
|
|
||||||
where CMD could be:
|
where CMD could be:
|
||||||
pull
|
appendmeta
|
||||||
index
|
|
||||||
dumpcsv
|
|
||||||
gettext
|
|
||||||
gethtml
|
|
||||||
creatediffhtml
|
creatediffhtml
|
||||||
list
|
deletepad
|
||||||
listauthors
|
dumpcsv
|
||||||
revisionscount
|
gethtml
|
||||||
showmeta
|
gettext
|
||||||
html5tidy
|
html5tidy
|
||||||
|
index
|
||||||
|
init
|
||||||
|
join
|
||||||
|
listauthors
|
||||||
|
list
|
||||||
|
pull
|
||||||
|
pushhtml
|
||||||
|
revisionscount
|
||||||
|
sethtml
|
||||||
|
settext
|
||||||
|
showmeta
|
||||||
|
status
|
||||||
|
|
||||||
For more information on each command try:
|
For more information on each command try:
|
||||||
etherdump CMD --help
|
etherdump CMD --help
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user