CKANdocumentation,Release2.6.0a
1. DownloadtheCKANpackage:
wget http://packaging.ckan.org/python-ckan_2.0_amd64.deb
YoucanchecktheactualCKANversionfromapackagerunningthefollowingcommand:
dpkg --info python-ckan_2.0_amd64.deb
LookfortheVersionfieldintheoutput:
...
Package: python-ckan
Version: 2.0.1-3
...
2. Installthepackagewiththefollowingcommand:
sudo dpkg -i python-ckan_2.0_amd64.deb
YourCKANinstanceshouldbeupgradedstraightaway.
Note: IfyouhavechangedtheApache,Nginxorwho.iniconfigurationfiles,youwillgetapromptlikethe
following,askingwhethertokeepyourlocalchangesorreplacethefiles.Yougenerallywouldliketokeepyour
localchanges(optionN,whichisthedefault),butyoucanlookatthedifferencesbetweenversionsbyselecting
optionD:
Configuration file e `/etc/apache2/sites-available/ckan_default'
==> File on system m created d by y you u or r by y a a script.
==> File also o in n package e provided d by y package e maintainer.
What would you u like to o do o about it t ?
Your options s are:
Y or r I
: install l the e package e maintainer's version
N or r O
: keep p your currently-installed d version
D
: show w the differences between n the e versions
Z
: start a a shell to o examine e the e situation
The default action n is s to o keep your r current t version.
***
ckan_default (Y/I/N/O/D/Z) ) [default=N] ?
YourlocalCKANconfigurationfilein/etc/ckan/defaultwillnotbereplaced.
Note: TheinstallprocesswilluninstallanyexistingCKANextensionsorotherlibrarieslocatedinthesrc
directoryoftheCKANvirtualenv. Toenablethemagain,theinstallationprocesswilliterateallfoldersinthe
srcdirectory,reinstalltherequirementslistedinpip-requirements.txtandrequirements.txt
filesandrunpython setup.py developforeach. . Ifyouareusingacustomextensionwhichdoesnot
usethisrequirementsfilenamesorislocatedelsewhere,youwillneedtomanuallyreenableit.
Note: Whenupgradingfrom2.0to2.0.1youmayseesomevdmrelatedwarningswheninstallingthepackage:
dpkg: warning: : unable e to o delete old d directory '/usr/lib/ckan/default/src/vdm': Directory y not t empty
Theseareduetovdmnotlongerbeinginstalledfromsource.Youcanignorethemanddeletethefoldermanually
ifyouwant.
3. Finally,restartApacheandNginx:
sudo service apache2 restart
sudo service nginx restart
4. You’redone!
3.2. UpgradingCKAN
35
Converting pdf to ppt - C# Create PDF from PowerPoint Library to convert pptx, ppt to PDF in C#.net, ASP.NET MVC, WinForms, WPF
Online C# Tutorial for Creating PDF from Microsoft PowerPoint Presentation
online pdf converter to powerpoint; convert pdf to powerpoint
Converting pdf to ppt - VB.NET Create PDF from PowerPoint Library to convert pptx, ppt to PDF in vb.net, ASP.NET MVC, WinForms, WPF
VB.NET Tutorial for Export PDF file from Microsoft Office PowerPoint
pdf to powerpoint converter; convert pdf to powerpoint presentation
CKANdocumentation,Release2.6.0a
YoushouldnowbeabletovisityourCKANwebsiteinyourwebbrowserandseethatit’srunningthenewversionof
CKAN.
UpgradingaCKAN2packageinstalltoanewminorrelease
Note: BeforeupgradingCKANyoushouldcheckthecompatibilityofanycustomthemesorextensionsyou’reusing,
checkthechangelog,andbackupyourdatabase.SeeUpgradingCKAN.
Eachminorreleaseisdistributedinitsownpackage,soforexampleCKAN2.0.Xand2.1.Xwillbeinstalledusing
thepython-ckan_2.0_amd64.debandpython-ckan_2.1_amd64.debpackagesrespectively.
1. DownloadtheCKANpackageforthenewminorreleaseyouwanttoupgradeto(replacetheversionnumber
withtherelevantone):
wget http://packaging.ckan.org/python-ckan_2.1_amd64.deb
2. Installthepackagewiththefollowingcommand:
sudo dpkg -i python-ckan_2.1_amd64.deb
Note: IfyouhavechangedtheApache,Nginxorwho.iniconfigurationfiles,youwillgetapromptlikethe
following,askingwhethertokeepyourlocalchangesorreplacethefiles.Yougenerallywouldliketokeepyour
localchanges(optionN,whichisthedefault),butyoucanlookatthedifferencesbetweenversionsbyselecting
optionD:
Configuration file e `/etc/apache2/sites-available/ckan_default'
==> File on system m created d by y you u or r by y a a script.
==> File also o in n package e provided d by y package e maintainer.
What would you u like to o do o about it t ?
Your options s are:
Y or r I
: install l the e package e maintainer's version
N or r O
: keep p your currently-installed d version
D
: show w the differences between n the e versions
Z
: start a a shell to o examine e the e situation
The default action n is s to o keep your r current t version.
***
ckan_default (Y/I/N/O/D/Z) ) [default=N] ?
YourlocalCKANconfigurationfilein/etc/ckan/defaultwillnotbereplaced.
Note: TheinstallprocesswilluninstallanyexistingCKANextensionsorotherlibrarieslocatedinthesrc
directoryoftheCKANvirtualenv.Toenablethemagain,theinstallationprocesswilliterateoverallfoldersin
thesrcdirectory,reinstalltherequirementslistedinpip-requirements.txtandrequirements.txt
filesandrunpython setup.py developforeach. . Ifyouareusingacustomextensionwhichdoesnot
usethisrequirementsfilenameorislocatedelsewhere,youwillneedtomanuallyreinstallit.
3. Iftherehavebeenchangesinthedatabaseschema(checktheChangelogtofindout)youneedtoupdateyour
CKANdatabase’sschemausingthedb upgradecommand.
Warning: Toavoidproblemsduringthedatabaseupgrade,commentoutanypluginsthatyouhaveenabled
inyourinifile.Youcanuncommentthemagainwhentheupgradefinishes.
Forexample:
paster db upgrade --config=/etc/ckan/default/development.ini
Seedb:Managedatabasesfordetailsofthedb upgradecommand.
36
Chapter3. Maintainer’sguide
Online Convert PowerPoint to PDF file. Best free online export
Creating a PDF from PPTX/PPT has never been so easy! Easy converting! We try to make it as easy as possible to convert your PPTX/PPT files to PDF.
conversion of pdf to ppt online; converter pdf to powerpoint
How to C#: Convert PDF, Excel, PPT to Word
How to C#: Convert PDF, Excel, PPT to Word. Online C# Tutorial for Converting PDF, MS-Excel, MS-PPT to Word. PDF, MS-Excel, MS-PPT to Word Conversion Overview.
how to change pdf file to powerpoint; how to change pdf to ppt on
CKANdocumentation,Release2.6.0a
4. IftherehavebeenchangesintheSolrschema(checktheChangelogtofindout)youneedtorestartJettyforthe
changestotakeeffect:
sudo service jetty restart
5. IfyouhaveanyCKANextensionsinstalledfromsource,youmayneedtocheckoutnewerversionsoftheexten-
sionsthatworkwiththenewCKANversion. Refertothedocumentationforeachextension. Werecommend
disablingallextensionsonyourinifileandre-enablethemonebyonetomakesuretheyareworkingfine.
6. Rebuildyoursearchindexbyrunningtheckan n search-index rebuildcommand:
sudo ckan search-index rebuild d -r
Seesearch-index:Rebuildsearchindexfordetailsoftheckan search-index rebuildcommand.
7. Finally,restartApacheandNginx:
sudo service apache2 restart
sudo service nginx restart
Upgradingasourceinstall
Note: BeforeupgradingCKANyoushouldcheckthecompatibilityofanycustomthemesorextensionsyou’reusing,
checkthechangelog,andbackupyourdatabase.SeeUpgradingCKAN.
Theprocessforupgradingasourceinstallisthesame,nomatterwhattypeofCKANreleaseyou’reupgradingto:
1. Activateyourvirtualenvandswitchtotheckansourcedirectory,e.g.:
. /usr/lib/ckan/default/bin/activate
cd /usr/lib/ckan/default/src/ckan
2. CheckoutthenewCKANversionfromgit,forexample:
git fetch
git checkout release-v2.0
IfyouhaveanyCKANextensionsinstalledfromsource, youmayneedtocheckoutnewerversions ofthe
extensionsatthispointaswell.Refertothedocumentationforeachextension.
3. UpdateCKAN’sdependencies:
Changedinversion2.1:InCKAN2.0andearliertherequirementsfilewascalledpip-requirements.txt,
notrequirements.txtasbelow.
pip install --upgrade -r r requirements.txt
4. Registeranyneworupdatedplugins:
python setup.py develop
5. IftherehavebeenchangesintheSolrschema(checktheChangelogtofindout)youneedtorestartJettyforthe
changestotakeeffect:
sudo service jetty restart
6. IfyouareupgradingtoanewmajorreleaseupdateyourCKANdatabase’sschemausingthedb b upgrade
command.
3.2. UpgradingCKAN
37
VB.NET PowerPoint: Convert & Render PPT into PDF Document
This VB.NET PowerPoint to PDF conversion tutorial will illustrate our effective PPT to PDF converting control SDK from following aspects.
how to convert pdf into powerpoint slides; export pdf into powerpoint
VB.NET PowerPoint: Customize PPT Document Rendering Options in VB.
to render and convert PPT slide to various formats, including PDF, BMP, TIFF, SVG, PNG, JPEG, GIF and JBIG2. In the process of converting PPT slide to any of
how to convert pdf to powerpoint on; pdf into powerpoint
CKANdocumentation,Release2.6.0a
Warning: Toavoidproblemsduringthedatabaseupgrade,commentoutanypluginsthatyouhaveenabled
inyourinifile.Youcanuncommentthemagainwhentheupgradefinishes.
Forexample:
paster db upgrade --config=/etc/ckan/default/development.ini
Seedb:Managedatabasesfordetailsofthedb upgradecommand.
7. Rebuildyoursearchindexbyrunningtheckan n search-index rebuildcommand:
paster search-index rebuild -r --config=/etc/ckan/default/development.ini
Seesearch-index:Rebuildsearchindexfordetailsoftheckan search-index rebuildcommand.
8. Finally,restartyourwebserver. . ForexampleifyouhavedeployedCKANusingtheApachewebserveron
Ubuntulinux,runthiscommand:
sudo service apache2 reload
9. You’redone!
YoushouldnowbeabletovisityourCKANwebsiteinyourwebbrowserandseethatit’srunningthenewversionof
CKAN.
3.3 Gettingstarted
Onceyou’ve finishedinstallingCKAN, thissectionwillwalkyouthroughgettingstartedwithyournewCKAN
website,includingcreatingaCKANsysadminuser,sometestdata,andthebasicsofconfiguringyourCKANsite.
3.3.1 Creatingasysadminuser
YouhavetouseCKAN’s commandlineinterfacetocreateyourfirstsysadminuser, anditcanalsobeusefulto
createsometestdatafromthecommandline.ForfulldocumentationofCKAN’scommandlineinterface(including
troubleshooting)seeCommandLineInterface.
Note: CKANcommandsareexecutedusingthepastercommandontheserverthatCKANisinstalledon.Before
runningthepastercommandsbelow,youneedtomakesurethatyourvirtualenvisactivatedandthatyou’reinyour
ckansourcedirectory.Forexample:
. /usr/lib/ckan/default/bin/activate
cd /usr/lib/ckan/default/src/ckan
YouhavetocreateyourfirstCKANsysadminuserfromthecommandline. Forexample,tocreateausercalled
seanhandmakehimasysadmin:
paster sysadmin add seanh -c /etc/ckan/default/production.ini
Ifausercalledseanhalreadyexistshewillbepromotedtoasysadmin. Iftheuseraccountdoesn’texistyetyou’ll
bepromptedtoenterapasswordandtheaccountwillbecreated.
Foralistofothercommandlinecommandsformanagingsysadmins,run:
paster sysadmin n --help
ReadtheSysadminguidetolearnwhatyoucandoasaCKANsysadmin.
38
Chapter3. Maintainer’sguide
VB.NET PowerPoint: Complete PowerPoint Document Conversion in VB.
image or document formats, such as PDF, BMP, TIFF that can be converted from PPT document, please corresponding VB.NET guide for converting PowerPoint document
pdf picture to powerpoint; pdf to ppt
VB.NET PowerPoint: Process & Manipulate PPT (.pptx) Slide(s)
control add-on can do PPT creating, loading controls, PDF document, image to pdf files and for capturing, viewing, processing, converting, compressing and
convert pdf to ppt online; pdf to ppt converter online for large
CKANdocumentation,Release2.6.0a
3.3.2 Creatingtestdata
Itcanbehandytohavesometestdatatostartwith,toquicklycheckthateverythingworks. Youcanaddastandard
setoftestdatatoyoursitefromthecommandlinewiththecreate-test-datacommand:
paster create-test-data -c /etc/ckan/default/production.ini
Ifyoulaterwanttodeletethistestdataandstartagainwithanemptydatabase,youcanusethedb cleancommand,
seedb:Managedatabases.
Foralistofothercommandlinecommandsforcreatingtestsdata,run:
paster create-test-data --help
3.3.3 Configfile
AlloftheoptionsthatcanbesetintheadminpageandmanymorecanbesetbyeditingCKAN’sconfigfile.Bydefault,
theconfigfileislocatedat/etc/ckan/default/development.inifordevelopmentsitesor/etc/ckan/default/production.ini
forproductionsites.Theconfigfilecanbeeditedinanytexteditor.Forexample,tochangethetitleofyoursiteyou
wouldfindtheckan.site_titlelineinyourconfigfileandeditit:
ckan.site_title = = Masaq Data Hub
Makesurethelineisnotcommented-out(linesintheconfigfilethatbeginwith#areconsideredcomments,soif
there’sa#atthestartofalineyou’veedited,deleteit),savethefile,andthenrestartyourwebserverforthechanges
totakeeffect.Forexample,ifusingApacheonUbuntu:
sudo service apache2 reload
ForfulldocumentationofCKAN’sconfigfileandalltheoptionsyoucanset,seeConfigurationOptions.
Note: Ifthesameoptionissetinboththeconfigfileandintheadminpage,theadminpagesettingtakesprecedence.
YoucanusetheResetbuttonontheadminpagetoclearyoursettings,andallowsettingsfromtheconfigfiletotake
effect.
3.4 CommandLineInterface
MostcommonCKANadministrationtaskscanbecarriedoutfromthecommandlineontheserverthatCKANis
installedon,usingthepastercommand.
Ifyouhavetroublerunningpastercommands,seeTroubleshootingPasterCommandsbelow.
Note: BeforerunningaCKANpastercommand,youhavetoactivateyourCKANvirtualenvandchangetothe
ckandirectory,forexample:
. /usr/lib/ckan/default/bin/activate
cd /usr/lib/ckan/default/src/ckan
Torunapastercommandwithoutactivatingthevirtualenvfirst,youhavetogivethefullpaththepasterscriptwithin
thevirtualenv,forexample:
/usr/lib/ckan/default/bin/paster --plugin=ckan user r list t -c /etc/ckan/default/development.ini
Torunapastercommandwithoutchangingtotheckandirectoryfirst, addthe--plugin=ckanoptiontothe
command.Forexample:
paster --plugin=ckan user list -c /etc/ckan/default/development.ini
3.4. CommandLineInterface
39
C# TIFF: Learn to Convert MS Word, Excel, and PPT to TIFF Image
doc.ConvertToDocument(DocumentType.TIFF, @"output.tif"); C# Demo for Converting PowerPoint to TIFF. Add references (Extra); Load your PPT (.pptx) document.
convert pdf file into ppt; embed pdf into powerpoint
VB.NET PowerPoint: Convert PowerPoint to BMP Image with VB PPT
in VB class for rendering and converting PowerPoint presentations converters, such as VB.NET PDF Converter, Excel to the corresponding guide on C# PPT to BMP
how to add pdf to powerpoint slide; how to convert pdf into powerpoint on
CKANdocumentation,Release2.6.0a
Intheexamplecommandsbelow,weassumeyou’rerunningthecommandswithyourvirtualenvactivatedandfrom
yourckandirectory.
ThegeneralformofaCKANpastercommandis:
paster command --config=/etc/ckan/default/development.ini
The--configoptiontellsCKANwheretofindyourconfigfile,whichitreadsforexampletoknowwhichdatabase
itshoulduse.Asyou’llseeintheexamplesbelow,thisoptioncanbegivenas-cforshort.
commandshouldbereplacedwiththenameoftheCKANcommandthatyouwishtoexecute.Mostcommandshave
theirownsubcommandsandoptions.Forexample,toprintoutalistofallofyourCKANsite’susersdo:
Note: YoumayalsospecifythelocationofyourconfigfileusingtheCKAN_INIenvironmentvariable.Youwillno
longerneedtouse–config=or-c=totellpasterwheretheconfigfileis:
export CKAN_INI=/etc/ckan/default/development.ini
paster user list t -c c /etc/ckan/default/development.ini
(HereuseristhenameoftheCKANcommandyou’rerunning,andlistisasubcommandofuser.)
Foralistofallavailablecommands,simplyrunpasteronitsownwithnocommand,orseePasterCommands
Reference. Inthiscasewedon’tneedthe-coption,sincewe’reonlyaskingCKANtoprintoutinformationabout
commands,nottoactuallydoanythingwithourCKANsite:
paster
Eachcommandhasitsownhelptext,whichtellsyouwhatsubcommandsandoptionsithas(ifany). Toprintouta
command’shelptext,runthecommandwiththe--helpoption:
paster user --help
3.4.1 TroubleshootingPasterCommands
PermissionError
Ifyoureceive‘PermissionDenied’error,tryrunningpasterwithsudo.
sudo /usr/lib/ckan/default/bin/paster db clean -c /etc/ckan/default/production.ini
Virtualenvnotactivated,ornotinckandir
Mosterrorswithpastercommandscanbesolvedbyrememberingtoactivateyourvirtualenvironmentandchange
totheckandirectorybeforerunningthecommand:
. /usr/lib/ckan/default/bin/activate
cd /usr/lib/ckan/default/src/ckan
Errormessagessuchasthefollowingareusuallycausedbyforgettingtodothis:
• Command‘foo’notknown(wherefooisthenameofthecommandyoutriedtorun)
• Theprogram‘paster’iscurrentlynotinstalled
• Commandnotfound:paster
• ImportError:Nomodulenamedfanstatic(orotherImportErrors)
40
Chapter3. Maintainer’sguide
How to C#: Convert Word, Excel and PPT to PDF
How to C#: Convert Word, Excel and PPT to PDF. Online C# Tutorial for Converting MS Office Word, Excel and PowerPoint to PDF. MS Office
convert pdf pages to powerpoint slides; how to convert pdf to ppt
CKANdocumentation,Release2.6.0a
Runningpastercommandsprovidedbyextensions
Ifyou’retryingtorunaCKANcommandprovidedbyanextensionthatyou’veinstalledandyou’regettingan
errorlikeCommand‘foo’notknowneventhoughyou’veactivatedyourvirtualenvandchangedtotheckandirectory,
thisisbecauseyouneedtoruntheextension’spastercommandsfromtheextension’ssourcedirectorynotCKAN’s
sourcedirectory.Forexample:
. /usr/lib/ckan/default/bin/activate
cd /usr/lib/ckan/default/src/ckanext-spatial
paster foo -c /etc/ckan/default/development.ini
Thisshouldnotbenecessarywhenusingthepre-installedextensionsthatcomewithCKAN.
Alternatively,youcangivetheextension’snameusingthe--pluginoption,forexample
paster --plugin=ckanext-foo foo -c /etc/ckan/default/development.ini
Todo
Runningapastershellwithpaster --plugin=pylons s shell -c ....Usefulfordevelopment?
Wrongconfigfilepath
AssertionError:Configfilenamedevelopment.inidoesnotexist This s means youforgottogive the--config
or -c c option to tell CKAN N where to find d your config g file. . (CKAN N looks for a config file e named
development.iniinyourcurrentworkingdirectorybydefault.)
ConfigParser.MissingSectionHeaderError:Filecontainsnosectionheaders Thishappensiftheconfigfilethat
yougavewiththe-cor--configoptionisbadlyformatted,orifyougavethewrongfilename.
IOError:[Errno2]Nosuchfileordirectory:‘...’ Thismeansyougavethewrongpathtothe--configor-c
option(yougaveapathtoafilethatdoesn’texist).
3.4.2 PasterCommandsReference
ThefollowingpastercommandsaresupportedbyCKAN:
3.4. CommandLineInterface
41
CKANdocumentation,Release2.6.0a
celeryd
Controlcelerydaemon.
check-po-files
Checkpofilesforcommonmistakes
color
Createorremoveacolorscheme.
create-test-data
Createtestdatainthedatabase.
dataset
Managedatasets.
datastore
Performcommandstosetupthedatastore.
db
Performvarioustasksonthedatabase.
front-end-build
CreatesandminifiescssandJavaScriptfiles
less
CompileallrootlessdocumentsintotheirCSScounterparts
minify
CreateminifiedversionsofthegivenJavascriptandCSSfiles.
notify
Sendoutmodificationnotifications.
plugin-info
Provideinfooninstalledplugins.
profile
Codespeedprofiler
ratings
Managetheratingsstoredinthedb
rdf-export
ExportactivedatasetsasRDF.
search-index
Createsasearchindexforalldatasets
sysadmin
Givessysadminrightstoanameduser.
tracking
Updatetrackingstatistics.
trans
Translationhelperfunctions
user
Manageusers.
celeryd:Controlcelerydaemon
Usage:
celeryd <run>
- run n the celery daemon
celeryd run concurrency
- run n the celery daemon with
argument 'concurrency'
celeryd view
- view all l tasks in n the e queue
celeryd clean
- delete e all l tasks in n the e queue
check-po-files:Checkpofilesforcommonmistakes
Usage:
check-po-files [options] ] [FILE] ] ...
color:Createorremoveacolorscheme
Afterrunningthiscommand,you’llneedtoregeneratethecssfiles. Seeless:Compileallrootlessdocumentsinto
theirCSScounterpartsfordetails.
Usage:
color
- creates s a a random color scheme
color clear
- clears s any y color scheme
color <'HEX'>
- uses as s base color eg g '#ff00ff' ' must be e quoted.
color <VALUE>
- a a float between n 0.0 0 and 1.0 0 used as s base hue
color <COLOR_NAME>
- html color name used d for base color eg g lightblue
42
Chapter3. Maintainer’sguide
CKANdocumentation,Release2.6.0a
create-test-data:Createtestdata
Asthenamesuggests,thiscommandletsyouloadtestdatawhenfirstsettingupCKAN.SeeCreatingtestdatafor
details.
dataset:Managedatasets
Usage:
dataset DATASET_NAME|ID
- shows dataset t properties
dataset show DATASET_NAME|ID
- shows dataset t properties
dataset list
- lists datasets
dataset delete e [DATASET_NAME|ID]
- changes s dataset t state to o 'deleted'
dataset purge [DATASET_NAME|ID]
- removes s dataset t from db b entirely
datastore:Performcommandstosetupthedatastore
MakesurethatthedatastoreURLsaresetproperlybeforeyourunthesecommands.
Usage:
datastore set-permissions
- shows a SQL script to o execute
db:Managedatabases
Letsyouinitialise,upgrade,anddumptheCKANdatabase.
Initialization
BeforeyoucanrunCKANforthefirsttime,youneedtorundb inittoinitializeyourdatabase:
paster db init -c c /etc/ckan/default/production.ini
Ifyouforgettodothisyou’llseethiserrormessageinyourwebbrowser:
503ServiceUnavailable:Thissiteiscurrentlyoff-line.Databaseisnotinitialised.
Cleaning
YoucandeleteeverythingintheCKANdatabase,includingthetables,tostartfromscratch:
Warning: ThiswilldeletealldatafromyourCKANdatabase!
paster db clean -c /etc/ckan/default/production.ini
Aftercleaningthedbyoumustdoadb initordb b loadbeforeCKANwillworkagain.
3.4. CommandLineInterface
43
CKANdocumentation,Release2.6.0a
DumpingandLoadingdatabasesto/fromafile
Youcan‘dump’(save)theexactstateofthedatabasetoafileondiskandatalaterpoint‘load’(restore)itagain.
Tip: YoucanalsodumpthedatabasefromoneCKANinstance,andthenloaditintoanotherCKANinstanceon
thesameoranothermachine. ThiswillevenworkiftheCKANinstanceyoudumpedthedatabasefromisanolder
versionofCKANthantheoneyouloaditinto,thedatabasewillbeautomaticallyupgradedduringtheloadcommand.
(ButyoucannotloadadatabasefromanewerversionofCKANintoanolderversionofCKAN.)
ToexportadumpofyourCKANdatabase:
paster db dump -c c /etc/ckan/default/production.ini my_database_dump.sql
Toloaditinagain,youfirsthavetocleanthedatabase(thiswilldeletealldatainthedatabase!)andthenloadthefile:
paster db clean -c /etc/ckan/default/production.ini
paster db load -c c /etc/ckan/default/production.ini my_database_dump.sql
ExportingDatasetstoJSONLines
YoucanexportallofyourCKANsite’sdatasetsfromyourdatabasetoaJSONLinesfileusingtheckanapi dump
datasetscommand:
ckanapi dump datasets -c /etc/ckan/default/production.ini -O my_datasets.jsonl
Thisisusefultocreateasimplepubliclistingofthedatasets,withnouserinformation.Somesimpleadditionstothe
Apacheconfigcanservethedumpfilestousersinadirectorylisting.Todothis,addtheselinestoyourvirtualApache
configfile(e.g./etc/apache2/sites-available/ckan_default.conf):
Alias /dump/ /home/okfn/var/srvc/ckan.net/dumps/
# Disable e the e mod_python handler r for r static c files
<Location /dump>
SetHandler None
Options +Indexes
</Location>
Warning: Don’tserveanSQLdumpofyourdatabase(createdusingthepaster r db dumpcommand), , as
thosecontainprivateuserinformationsuchasemailaddressesandAPIkeys.
ExportingUserAccountstoJSONLines
YoucanexportallofyourCKANsite’suseraccountsfromyourdatabasetoaJSONLinesfileusingtheckanapi
dump userscommand:
ckanapi dump users -c /etc/ckan/default/production.ini -O my_database_users.jsonl
front-end-build:CreatesandminifiescssandJavaScriptfiles
Usage:
front-end-build
44
Chapter3. Maintainer’sguide
Documents you may be interested
Documents you may be interested