We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent acbcb3b commit 56ee63cCopy full SHA for 56ee63c
1 file changed
database/bin/boot
@@ -72,6 +72,9 @@ if [[ ! -f /var/lib/postgresql/9.3/main/initialized ]]; then
72
if [[ `envdir /etc/wal-e.d/env wal-e --terse backup-list | wc -l` -gt "1" ]]; then
73
echo "database: restoring from backup..."
74
rm -rf /var/lib/postgresql/9.3/main
75
+ mkdir -p /var/lib/postgresql/9.3/main
76
+ # disable copy-on-write
77
+ chattr -R +C /var/lib/postgresql/9.3/main
78
sudo -u postgres envdir /etc/wal-e.d/env wal-e backup-fetch /var/lib/postgresql/9.3/main LATEST
79
chown -R postgres:postgres /var/lib/postgresql/9.3/main
80
chmod 0700 /var/lib/postgresql/9.3/main
0 commit comments