Syntax
# ncli --help preupgradeThis command applies only to AD-based upgrades and must be run before performing the upgrade. Running this command validates if the upgradation was successful. This takes the backup of all files that might get changed after the upgrade, specifically config files. If config files were changed after upgrade, running this command restores them.
Command | Help Text |
---|---|
backUpRequiredFiles | Take the backup of the required files. |
Example
ncli preupgrade backUpRequiredFiles postgresql.conf 100% 20KB 20.1KB/s 00:00 hosts 100% 128 0.1KB/s 00:00 resolv.conf 100% 132 0.1KB/s 00:00 coordinator.cfg 100% 9889 9.7KB/s 00:00 loader.cfg 100% 3351 3.3KB/s 00:00 queen-replacement.cfg 100% 20 0.0KB/s 00:01 worker.cfg 100% 5752 5.6KB/s 00:00 coordinator.profile 100% 1498 1.5KB/s 00:00 loader.profile 100% 290 0.3KB/s 00:01 worker.profile 100% 1174 1.2KB/s 00:00 ntp.conf 100% 1833 1.8KB/s 00:00 beehiveparams.cfg 100% 501 0.5KB/s 00:00 cgconfig.conf 100% 812 0.8KB/s 00:00 pg_hba.conf 100% 3386 3.3KB/s 00:00 postgresql.conf 100% 20KB 20.1KB/s 00:00 postgresql.conf 100% 20KB 20.1KB/s 00:00 hosts 100% 128 0.1KB/s 00:00 resolv.conf 100% 155 0.2KB/s 00:00 coordinator.cfg 100% 9889 9.7KB/s 00:00 loader.cfg 100% 3351 3.3KB/s 00:00 queen-replacement.cfg 100% 20 0.0KB/s 00:00 worker.cfg 100% 5752 5.6KB/s 00:00 coordinator.profile 100% 1498 1.5KB/s 00:00 loader.profile 100% 290 0.3KB/s 00:00 worker.profile 100% 1174 1.2KB/s 00:00 ntp.conf 100% 1833 1.8KB/s 00:00 beehiveparams.cfg 100% 501 0.5KB/s 00:00 cgconfig.conf 100% 812 0.8KB/s 00:00 pg_hba.conf 100% 3386 3.3KB/s 00:00 postgresql.conf 100% 20KB 20.1KB/s 00:00