I am trying to split an ikiwiki into two wikis.
Suppose I have an ikiwiki called myiki (compare this question from ikiwiki.info), which contains the pages
pageA1,pageA2,...,pageB1,pageB2,...
now I want to have two wikis called myikiA and myikiB, such that:
myikiA contains pageA1,pageA2,...myikiA should contain the whole history of those pages, but no history of pageB1,pageB2,...
and:
myikiB contains pageB1,pageB2,...myikiB should contain the whole history of those pages but no history of pageA1,pageA2,...
In a first step I made a copy of my scrdir and tried to remove a page named foo like this (note that in the scrdir there are files called foo.mdwn and directories foo as well).
To do so, I did this command:
sudo git filter-branch --tree-filter 'find . -name foo* -exec rm -r -f {} \;' --prune-empty -f HEAD
Rewrite 3cbc4646145e31cf7ce23d5e8397baaebab64c60 (179/1439)find: `./index/testdir/foo': No such file or directory
tree filter failed: find . -name foo* -exec rm -r -f {} \;
Any Idea what's wrong with it?
Is there a way to give a list of pages and split the wiki as described above?
When find finds foo/, it calls rm -rf on it and then tries to enter it to find more files. You can cause find to remove the directory and then ignore it using -prune.
find . -name foo* -exec rm -r -f {} \; -prune
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With