From 927d14bd264d9aafafc21a0e095c8837f6b4acd8 Mon Sep 17 00:00:00 2001 From: Thomas Kuntz Date: Thu, 15 Sep 2022 17:47:02 +0200 Subject: =?UTF-8?q?Escape=20%=20signs=20in=20crontab=20example=20(CLI?= =?UTF-8?q?=E2=80=AFtools=20docs)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit % is a special character for crontab. From man 5 crontab: A "%" character in the command, unless escaped with a backslash (\), will be changed into newline characters, and all data after the first % will be sent to the command as standard input. --- support/doc/tools.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'support') diff --git a/support/doc/tools.md b/support/doc/tools.md index c08747cdc..1356d2c6a 100644 --- a/support/doc/tools.md +++ b/support/doc/tools.md @@ -140,7 +140,7 @@ these rules (ensure to customize them to your needs): 0 0 * * * /usr/bin/npm rebuild youtube-dl --prefix /PATH/TO/PEERTUBE/ # Synchronize the YT channel every sunday at 22:00 all the videos published since last monday included -0 22 * * 0 /usr/bin/node /PATH/TO/PEERTUBE/dist/server/tools/peertube-import-videos.js -u '__PEERTUBE_URL__' -U '__USER__' --password '__PASSWORD__' --target-url 'https://www.youtube.com/channel/___CHANNEL__' --since $(date --date="-6 days" +%Y-%m-%d) +0 22 * * 0 /usr/bin/node /PATH/TO/PEERTUBE/dist/server/tools/peertube-import-videos.js -u '__PEERTUBE_URL__' -U '__USER__' --password '__PASSWORD__' --target-url 'https://www.youtube.com/channel/___CHANNEL__' --since $(date --date="-6 days" +\%Y-\%m-\%d) ``` Also you may want to subscribe to the PeerTube channel in order to manually check the synchronization is successful. -- cgit v1.2.3