Default data directory in Ubuntu is /var/lib/postgresql/16/main, which we used to use and then create symbolic link to /dat/16/data for ease of operations. However, when we do that, we don't utilize the data disk we mounted to /dat as the /dat directory only keeps the symbolic link file. We can mount the disk to /var/lib/postgresql/16/main, but that is too deep in the filesystem hierarchy. So, instead, we start to use /dat/16/data directly as data directory.
7 lines
176 B
Ruby
Executable File
7 lines
176 B
Ruby
Executable File
#!/bin/env ruby
|
|
# frozen_string_literal: true
|
|
|
|
require_relative "../../common/lib/util"
|
|
|
|
r "sudo -u postgres wal-g backup-push /dat/16/data --config /etc/postgresql/wal-g.env"
|