My PostgreSQL installation by default uses /var/lib/pgsql
directory to store data, backups and configuration files. As my disk space is running out, I have installed new hardware and mounted it in the /data
directory. Having this done, I would like now to move the data and backups there.
What is the best way to do this transition correctly? Note that I do not require atomic transition – the PostgreSQL service can be offline while the data transfer is in progress.
Thanks in advance,
Pete.