ActivityPub-federated video streaming platform using P2P directly in your web browser
Add redundancy CLI doc
Chocobozzze669ff58736e
diff --git a/server/tests/cli/peertube.ts b/server/tests/cli/peertube.tsindex 09cbcdb658..15b6755f22 100644--- a/server/tests/cli/peertube.ts+++ b/server/tests/cli/peertube.ts@@ -277,6 +277,12 @@ describe('Test CLI wrapper', function () {expect(stdout).to.not.contain('super video')}})++ after(async function () {+ this.timeout(10000)++ await cleanupTests([ anotherServer ])+ })})after(async function () {diff --git a/support/doc/tools.md b/support/doc/tools.mdindex d5427b5b7a..1f1e52c36d 100644--- a/support/doc/tools.md+++ b/support/doc/tools.md@@ -12,6 +12,7 @@- [peertube-upload.js](#peertube-uploadjs)- [peertube-watch.js](#peertube-watchjs)- [peertube-plugins.js](#peertube-pluginsjs)+ - [peertube-redundancy.js](#peertube-redundancyjs)- [Server tools](#server-tools)- [parse-log](#parse-log)- [create-transcoding-job.js](#create-transcoding-jobjs)@@ -77,7 +78,8 @@ You can access it as `peertube` via an alias in your `.bashrc` like `alias peertimport-videos|import import a video from a streaming platformwatch|w watch a video in the terminal ✩°。⋆repl initiate a REPL to access internals- plugins|p [action] manag instance plugins+ plugins|p [action] manage instance plugins+ redundancy|r [action] manage video redundancieshelp [cmd] display help for [cmd]```@@ -200,6 +202,34 @@ $ node dist/server/tools/peertube-plugins.js install --path /my/plugin/path$ node dist/server/tools/peertube-plugins.js install --npm-name peertube-theme-example```+#### peertube-redundancy.js++Manage (list/add/remove) video redundancies:++To list your videos that are duplicated by remote instances:++```+$ node dist/server/tools/peertube.js redundancy list-remote-redundancies+```++To list remote videos that your instance duplicated:++```+$ node dist/server/tools/peertube.js redundancy list-my-redundancies+```++To duplicate a specific video in your redundancy system:++```+$ node dist/server/tools/peertube.js redundancy add --video 823+```++To remove a video redundancy:++```+$ node dist/server/tools/peertube.js redundancy remove --video 823+```+## Server toolsThese scripts should be run on the server, in `peertube-latest` directory.