Skip to content

Commit

Permalink
repo: improving general description, using FTP analogy
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkli committed Dec 5, 2015
1 parent afcbb33 commit 0a1b794
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 12 deletions.
22 changes: 14 additions & 8 deletions repo/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# repo - Script for JCR content synchronization
# repo - FTP-like tool for JCR content

Uploads or downloads JCR content from a local filesystem to a server.
Simple replacement for the `vlt` tool from [jackrabbit-filevault](http://jackrabbit.apache.org/filevault/overview.html), written in plain bash instead of Java and is very fast.
Transfers filevault JCR content between the filesystem (unzipped content package) and a server such as AEM (running the package manager HTTP API).

It will take the given path and push that entire subtree to the server (or vice-versa), while overwriting everything below. It assumes an unzipped content package as file system structure, with a `jcr_root` folder denoting the root of the JCR. It does not require or support multiple filter paths and vlt's `filter.xml`.
Similar to the `vlt` command line tool from [jackrabbit-filevault](http://jackrabbit.apache.org/filevault/overview.html), but faster, bash-script-only and with minimal dependencies.

For a given path inside a `jcr_root` filevault structure on the filesystem, it creates a package with a single filter for the entire subtree and pushes that to the server (put), fetches it from the server (get) or compares the differences (status and diff). Please note that it will always overwrite the entire file or directory specified. Does not support multiple filter paths or vlt's filter.xml.

[Licensed under Apache 2.0](../LICENSE).

Expand Down Expand Up @@ -76,11 +77,16 @@ Examples:
```
Usage: repo <command> [opts] [<path>]
Uploads or downloads JCR content from a local filesystem to a server.
FTP-like tool for JCR content, with support for diffing.
Transfers filevault JCR content between the filesystem (unzipped content package)
and a server such as AEM (running the package manager HTTP API).
Takes a given path inside a jcr_root/ filevault structure as single filter
to either upload or download that file or subtree using a content package.
Note in case of a directory, it will be entirely overwritten.
For a given path inside a jcr_root filevault structure on the filesystem, it
creates a package with a single filter for the entire subtree and pushes that to
the server (put), fetches it from the server (get) or compares the differences
(status and diff). Please note that it will always overwrite the entire file or
directory specified. Does not support multiple filter paths or vlt's filter.xml.
Available commands:
Expand Down
13 changes: 9 additions & 4 deletions repo/repo
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,16 @@ function show_help_commands() {
function show_help_global() {
echo "Usage: $PROGNAME <command> [opts] [<path>]"
echo
echo "Uploads or downloads JCR content from a local filesystem to a server."
echo "FTP-like tool for JCR content, with support for diffing."
echo
echo "Takes a given path inside a jcr_root/ filevault structure as single filter"
echo "to either upload or download that file or subtree using a content package."
echo "Note in case of a directory, it will be entirely overwritten."
echo "Transfers filevault JCR content between the filesystem (unzipped content package)"
echo "and a server such as AEM (running the package manager HTTP API)."
echo
echo "For a given path inside a jcr_root filevault structure on the filesystem, it"
echo "creates a package with a single filter for the entire subtree and pushes that to"
echo "the server (put), fetches it from the server (get) or compares the differences"
echo "(status and diff). Please note that it will always overwrite the entire file or"
echo "directory specified. Does not support multiple filter paths or vlt's filter.xml."
echo
show_help_commands
echo
Expand Down

0 comments on commit 0a1b794

Please # to comment.