Skip to content

Instantly share code, notes, and snippets.

@ranguard
Created May 18, 2016 18:21
Show Gist options
  • Save ranguard/1187c88577c11ace547b4855f1a1d6f8 to your computer and use it in GitHub Desktop.
Save ranguard/1187c88577c11ace547b4855f1a1d6f8 to your computer and use it in GitHub Desktop.
~/bin/metacpan-api-carton-exec bin/metacpan mapping --delete
~/bin/metacpan-api-carton-exec ./bin/metacpan backup --restore /home/leo/data/2016-04-21-user.json.gz
~/bin/metacpan-api-carton-exec ./bin/metacpan backup --restore /home/leo/data/2016-04-21-cpan-favorite.json.gz
~/bin/metacpan-api-carton-exec ./bin/metacpan backup --restore /home/leo/data/2016-04-21-cpan-author.json.gz
~/bin/metacpan-api-carton-exec bin/metacpan queue --dir /home/metacpan/CPAN/
@mickeyn
Copy link

mickeyn commented May 18, 2016

L10 should be replaced with something like:

for i in `ls -d /home/metacpan/CPAN/authors/id/{A..Z}`; do echo $i; ~/bin/metacpan-api-carton-exec bin/metacpan queue --dir $i; done

(until queue script is made to take multiple dirs at once)

since we have duplication of the author directories and the non /authors/id/A/AA/AAAA like paths are not parsed properly by CPAN::DistnameInfo and cause A LOT of warnings

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment