Re: Move base directory to different location

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It is no problem to move the base directory.

  1. stop the database server
  2. move the base directory as a whole to some other location
    mv /var/lib/pgsql/10/data/base /some/other/location
  3. create a symbolic link pointing to the new location
    cd /var/lib/pgsql/10/data
    ln -s /some/other/location/base .
  4. start the database server

BTW, an upgrade to a newer major version would be a good idea.

Regards,

Holger

Am 26.11.20 um 13:59 schrieb Yambu:
Hello

May i know the procedure of moving the base directory from /var/lib/pgsql/10/data/base to another location?

regards
-- 
Holger Jakobs, Bergisch Gladbach, Tel. +49-178-9759012

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux