From f43a60da1d6c94c4d9535e42aedd23408b3255d0 Mon Sep 17 00:00:00 2001 From: Alex Grintsvayg Date: Wed, 13 Dec 2017 12:58:58 -0500 Subject: [PATCH] readme update --- README.md | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 214a7ca..7f2fc39 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,17 @@ # Current YT Sync Process -- start daemon with clean `.lbryum` dir -- `wallet_unused_address` to get an address -- send credits to address. make sure the send is split into 50 or so txns, and that there are enough credits to publish all the videos -- wait for credits to arrive and be confirmed +- make sure you have a clean `.lbryum` dir (delete existing dir if there's nothing you need there) +- make sure daemon is stopped and can be controlled with `systemctl` - run `lbry ytsync YOUTUBE_KEY YOUTUBE_CHANNEL_ID LBRY_CHANNEL_NAME --max-tries=5` - `max-tries` will retry errors that you will undoubtedly get -- after sync is done, stop daemon and move `.lbryum` dir somewhere safe -- mark content as synced in doc +- after sync is complete, daemon will be stopped and wallet will be moved to `~/wallets/` +- now mark content as synced in doc + +Running the sync command for a channel that was already started will resume the sync. This can also be used to update a channel with new +content that was put on Youtube since the last sync. + +--- + +Add this to cron to delete synced videos that have been published: + +`*/10 * * * * /usr/bin/find /tmp/ ! -readable -prune -o -name '*ytsync*' -mmin +20 -print0 | xargs -0 --no-run-if-empty rm -r`