diff options
author | Thomas Kuntz <tk@thomaskuntz.org> | 2022-09-15 17:47:02 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2022-09-16 10:19:41 +0200 |
commit | 927d14bd264d9aafafc21a0e095c8837f6b4acd8 (patch) | |
tree | 95f71390ddc9e1511c9f41962110529a1e39b026 /support/doc | |
parent | 192edf169c70f44543c4e6843cac567bdbd91c59 (diff) | |
download | PeerTube-927d14bd264d9aafafc21a0e095c8837f6b4acd8.tar.gz PeerTube-927d14bd264d9aafafc21a0e095c8837f6b4acd8.tar.zst PeerTube-927d14bd264d9aafafc21a0e095c8837f6b4acd8.zip |
Escape % signs in crontab example (CLI tools docs)
% 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.
Diffstat (limited to 'support/doc')
-rw-r--r-- | support/doc/tools.md | 2 |
1 files changed, 1 insertions, 1 deletions
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): | |||
140 | 0 0 * * * /usr/bin/npm rebuild youtube-dl --prefix /PATH/TO/PEERTUBE/ | 140 | 0 0 * * * /usr/bin/npm rebuild youtube-dl --prefix /PATH/TO/PEERTUBE/ |
141 | 141 | ||
142 | # Synchronize the YT channel every sunday at 22:00 all the videos published since last monday included | 142 | # Synchronize the YT channel every sunday at 22:00 all the videos published since last monday included |
143 | 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) | 143 | 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) |
144 | ``` | 144 | ``` |
145 | 145 | ||
146 | Also you may want to subscribe to the PeerTube channel in order to manually check the synchronization is successful. | 146 | Also you may want to subscribe to the PeerTube channel in order to manually check the synchronization is successful. |