rgleason wrote
Is it safe to assume that revisions will be recorded and be active going forward?
No. A new page is a new page, regardless of whether it's added by SSH, WebDAV, FTP, or locally.
But it won't appear in the list of recent changes or the index
unless you created it within DokuWiki e.g. using the DokuWiki editor. Even if you "touch"
conf/local.php....
To add pages you didn't create from within DokuWiki to the index:-
1. Check that
$DokuWiki/bin/indexer.php is executable, if it's not - make it so (from the root of your DokuWiki)
File=$DokuWiki/bin/indexer.php;if [[ -x "$File" ]];then echo "'$File' is executable";else chmod +x "$File";fi
[/color]
2. Run
indexer.php:-
$DokuWiki/bin/indexer.php -c
Clearing index... done.
Searching pages... 11 pages found.
playground:one...
Indexer: finished
done.
playground:playground... Indexer: finished
done.
playground:syntax... Indexer: finished
done.
playground:test_186... Indexer: finished
done.
playground:two... Indexer: finished
done.
playground:welcome... Indexer: finished
done.
wiki:dokuwiki... Indexer: finished
done.
wiki:syntax... Indexer: finished
done.
wiki:welcome... Indexer: finished
done.
sidebar... Indexer: finished
done.
start... Indexer: finished
done.
[/color]
To add pages you didn't create to the list of updates (revision history). Note you must run this command with the correct permissions or the webserver can't read it, check that
$DokuWiki/bin/dwpage.php is executable first (use my previous code substituting
dwpage.php for
indexer.php):-
dwpage.php commit -m <summary> <path to page you are adding> <dokuwiki path and page you are adding it to>
[/color]
e.g. Running as
www-data I create a DokuWiki page called
test.txt in
/var/www
pwd;whoami;dokuwiki-test/bin/dwpage.php commit -m addition test.txt playground:test
/var/www
www-data
S: test.txt > playground:test
[/color]
After which
playground:test exists, is in the revision history as a Recent change summarised as "addition" (
playground:test 2016/11/08 14:49 Show differences to current revisions Old revisions playground:test – addition www-data (0.0.0.0) +43 B), and it's contents are in the index.
Note: I usually don't do that if I administer the DokuWiki as I maintain backups using version control, but when I have to do it for DokuWiki installations I don't manage - I script the process so many pages are moved into the DokuWiki in one go. In your case you probably only need to update the index rather than revision history.
Incidentally I've been using FTP to upload 700+ images to the appropriate media directory/folder during a migration from Druple. This seems to work fine because the images are being added. I suppose deleting via FTP would have a similar result?
Yes (the media will no longer be accessible, links to them will no longer work).