{"_id":"@bratislava/ristor","_rev":"10-e7635c4694f3bf5fa1e86fb5479d2b22","name":"@bratislava/ristor","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.0":{"name":"@bratislava/ristor","version":"1.0.0","license":"EUPL-1.2","_id":"@bratislava/ristor@1.0.0","maintainers":[{"name":"mpinter","email":"mpinter.pinto@gmail.com"},{"name":"skifahrer","email":"richard.dvorsky@bratislava.sk"},{"name":"marekbodingerba","email":"marek.bodinger@bratislava.sk"},{"name":"kristianduda","email":"kristian.duda@extropy.sk"},{"name":"inovacie.bratislava","email":"inovacie.bratislava@gmail.com"}],"bin":{"ristor":"index.js"},"dist":{"shasum":"1de20923a2139f417c96110bbecf91a36ab6e3a2","tarball":"https://registry.npmjs.org/@bratislava/ristor/-/ristor-1.0.0.tgz","fileCount":5,"integrity":"sha512-40GzFeAu+QWgRtkqPJ+WQlvNcz6KhovSmz3U6ieWNyQQFb5umDItuQRFPbylvtSTZt9bwWBZ0RIYcVOOuFod+A==","signatures":[{"sig":"MEUCICT2TL8dtx3B22XGuyRKsoL5i7bzXg1/F5Fx1kK9O9CqAiEAqO1LOcsRK7okdxCum2sGUwZ60jruW61yoyXRfp/JPXA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":19773},"main":"index.js","type":"module","gitHead":"a45cefa62f447f6923adbb5a5b361b6b206bd3ae","scripts":{"start":"node index.js","prettier":"prettier --write ."},"_npmUser":{"name":"marekbodingerba","email":"marek.bodinger@bratislava.sk"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","_npmVersion":"10.7.0","description":"A tool for restoring Bratislava.sk PostgreSQL database dumps","directories":{},"_nodeVersion":"20.14.0","dependencies":{"inquirer":"^10.1.8","await-spawn":"^4.0.2","tmp-promise":"^3.0.3"},"_hasShrinkwrap":false,"devDependencies":{"prettier":"^3.3.3"},"_npmOperationalInternal":{"tmp":"tmp/ristor_1.0.0_1723391112365_0.1327219556783632","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@bratislava/ristor","version":"1.0.1","license":"EUPL-1.2","_id":"@bratislava/ristor@1.0.1","maintainers":[{"name":"mpinter","email":"mpinter.pinto@gmail.com"},{"name":"skifahrer","email":"richard.dvorsky@bratislava.sk"},{"name":"marekbodingerba","email":"marek.bodinger@bratislava.sk"},{"name":"kristianduda","email":"kristian.duda@extropy.sk"},{"name":"inovacie.bratislava","email":"inovacie.bratislava@gmail.com"}],"bin":{"ristor":"index.js"},"dist":{"shasum":"f702f97706ee55a66f83b8009824c58b88dca523","tarball":"https://registry.npmjs.org/@bratislava/ristor/-/ristor-1.0.1.tgz","fileCount":5,"integrity":"sha512-YaJUsxQvRNXH/T9td8c8s7hXhzN3GeIIOngZw9AqmA/U8Nrxvw5UWnhXgUNVG2wSCT0orcWXRiuYgox1dWeqaA==","signatures":[{"sig":"MEYCIQCX6C62VZtIyAXmewfna7HShPSHxcOV7GFAOMAEKO/Z+QIhAMZ9P/n4jGaciGhCKIrKbn/DxfO/cEj3zq5W6VHwEGXt","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":19800},"main":"index.js","type":"module","gitHead":"3dc7cf1d7baf05b177f78ca7935c771eae257204","scripts":{"start":"node index.js","prettier":"prettier --write ."},"_npmUser":{"name":"marekbodingerba","email":"marek.bodinger@bratislava.sk"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","_npmVersion":"10.7.0","description":"A tool for restoring Bratislava.sk PostgreSQL database dumps","directories":{},"_nodeVersion":"20.14.0","dependencies":{"inquirer":"^10.1.8","await-spawn":"^4.0.2","tmp-promise":"^3.0.3"},"_hasShrinkwrap":false,"devDependencies":{"prettier":"^3.3.3"},"_npmOperationalInternal":{"tmp":"tmp/ristor_1.0.1_1723391527399_0.2528730436120159","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@bratislava/ristor","version":"1.0.2","license":"EUPL-1.2","_id":"@bratislava/ristor@1.0.2","maintainers":[{"name":"pavel.filo","email":"pavel.filo@bratislava.sk"},{"name":"mpinter","email":"mpinter.pinto@gmail.com"},{"name":"skifahrer","email":"richard.dvorsky@bratislava.sk"},{"name":"marekbodingerba","email":"marek.bodinger@bratislava.sk"},{"name":"kristianduda","email":"kristian.duda@extropy.sk"},{"name":"inovacie.bratislava","email":"inovacie.bratislava@gmail.com"}],"bin":{"ristor":"index.js"},"dist":{"shasum":"962e9e3f2e6829e69fff5417bcab32fb3d436b04","tarball":"https://registry.npmjs.org/@bratislava/ristor/-/ristor-1.0.2.tgz","fileCount":5,"integrity":"sha512-cUYx4Ml2A0sQw6p4XU6nHjbxn8ZtBQX8ZT1bgB427DSQtGvrVEl0A9nMMhMAloxISQgxeIb8DdEC13bg4UwrfA==","signatures":[{"sig":"MEUCIB2FaLZKN8UJNGRNWkAH0rje4KZ/946PuS//sX5rl8s5AiEAii6TktbwU7Ww3Qa/w8/CoEVVRiGWCccwlezOOXCzK5c=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20797},"main":"index.js","type":"module","gitHead":"4fadefec7067a346638c8d44cd04f3a1acb36c1e","scripts":{"start":"node index.js","prettier":"prettier --write ."},"_npmUser":{"name":"marekbodingerba","email":"marek.bodinger@bratislava.sk"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","_npmVersion":"10.7.0","description":"A tool for restoring Bratislava.sk PostgreSQL database dumps","directories":{},"_nodeVersion":"20.14.0","dependencies":{"inquirer":"^10.1.8","await-spawn":"^4.0.2","tmp-promise":"^3.0.3"},"_hasShrinkwrap":false,"devDependencies":{"prettier":"^3.3.3"},"_npmOperationalInternal":{"tmp":"tmp/ristor_1.0.2_1730973118040_0.9646665513979304","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"@bratislava/ristor","version":"1.0.3","license":"EUPL-1.2","_id":"@bratislava/ristor@1.0.3","maintainers":[{"name":"marekbodingerba","email":"marek.bodinger@bratislava.sk"},{"name":"skifahrer","email":"npm@mydevelops.com"},{"name":"inovacie.bratislava","email":"inovacie.bratislava@gmail.com"},{"name":"mpinter","email":"mpinter.pinto@gmail.com"},{"name":"pavel.filo","email":"pavel.filo@bratislava.sk"},{"name":"lukas.babula","email":"lukas.babula@bratislava.sk"}],"bin":{"ristor":"index.js"},"dist":{"shasum":"b5d0d7c959cabc54981c401c40547b03bc0bc41f","tarball":"https://registry.npmjs.org/@bratislava/ristor/-/ristor-1.0.3.tgz","fileCount":5,"integrity":"sha512-fFYHsLvQbvqa79hGi332ziiL05aYwlx8mIK6XWSEvsOP4GiY0938IzVF0vKCEQ4RByzp9a+BZPVSY35zPrg1Gg==","signatures":[{"sig":"MEUCIBnRf/aqFuHa2w7NfMuRQ5kRmlfQCozzrPBFNvDNTeo8AiEA+PzHZ3umjiahiW4KQurkevk9X1Jvi5qXMtSVFRTFxO0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":20786},"main":"index.js","type":"module","gitHead":"a8e3f19e358f82e663ff430258620ded1ecade64","scripts":{"start":"node index.js","prettier":"prettier --write ."},"_npmUser":{"name":"marekbodingerba","email":"marek.bodinger@bratislava.sk"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","_npmVersion":"10.9.2","description":"A tool for restoring Bratislava.sk PostgreSQL database dumps","directories":{},"_nodeVersion":"22.11.0","dependencies":{"inquirer":"^10.1.8","await-spawn":"^4.0.2","tmp-promise":"^3.0.3"},"_hasShrinkwrap":false,"devDependencies":{"prettier":"^3.3.3"},"_npmOperationalInternal":{"tmp":"tmp/ristor_1.0.3_1737632268289_0.9873038577136515","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2024-08-11T15:45:12.242Z","modified":"2026-06-24T07:49:38.587Z","1.0.0":"2024-08-11T15:45:12.571Z","1.0.1":"2024-08-11T15:52:07.579Z","1.0.2":"2024-11-07T09:51:58.195Z","1.0.3":"2025-01-23T11:37:48.461Z"},"license":"EUPL-1.2","description":"A tool for restoring Bratislava.sk PostgreSQL database dumps","maintainers":[{"email":"marek.bodinger@bratislava.sk","name":"marekbodingerba"},{"email":"inovacie.bratislava@gmail.com","name":"inovacie.bratislava"},{"email":"mpinter.pinto@gmail.com","name":"mpinter"},{"email":"erik.rehulka@gmail.com","name":"erehulka"},{"email":"pavel.filo@bratislava.sk","name":"pavel.filo"},{"email":"lukas.babula@bratislava.sk","name":"lukas.babula"},{"email":"jakubicka.adam@gmail.com","name":"ty-ci"}],"readme":"# @bratislava/ristor\n\n@bratislava/ristor is a command-line tool for downloading and restoring PostgreSQL database dumps from Bratislava.sk Minio storage.\n\n## Installation\n\nTo install ristor globally, run:\n\n```bash\nnpm install -g @bratislava/ristor@latest\n```\n\n## Usage\n\nAfter installation, you can run the tool using the `ristor` command:\n\n```bash\nristor\n```\n\nThe tool will guide you through the following steps:\n\n1. Enter the Minio sharable download URL for the SQL dump file.\n2. Optionally, enter the browser URL to get the project information.\n2. Provide database connection details (host, port, database name, username, and password).\n\nThe tool will then:\n\n1. Download the SQL dump file.\n2. Terminate existing connections to the specified database.\n3. Restore the SQL dump to the specified database.\n4. Clean up the temporary files.\n\n## Requirements\n\n- PostgreSQL client (`psql` command should be available in your system PATH)\n\n## Configuration\n\nThe tool uses default database configurations based on the project path in the Minio URL. You can modify these defaults in the `defaults.js` file.\n\n## License\n\nThis project is licensed under the European Union Public Licence (EUPL) version 1.2 or later. See the [LICENSE](LICENSE) file for details.\n","readmeFilename":"README.md"}