File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ previous_snapshot_time=$(sudo zfs list -t snapshot -r ${zfs_pool} -H -o dblab:da
56
56
# .. and in the very end: select pg_stop_backup();
57
57
58
58
# echo "Stopping sync instance..."
59
+ # sudo docker exec ${sync_instance} psql -U ${pg_username} -d ${pg_db} -XAtc 'checkpoint'
59
60
# sudo docker stop ${sync_instance}
60
61
61
62
# If you have a running sync instance, uncomment this line before getting a snapshot.
260
261
# ###############################################################################
261
262
262
263
# Finally, stop Postgres and create the base snapshot ready to be used for thin provisioning
264
+ sudo docker exec ${container_name} psql -p ${clone_port} -U ${pg_username} -d ${pg_db} -h ${pg_sock_dir} -XAtc ' checkpoint'
263
265
sudo docker stop ${container_name}
264
266
265
267
${sudo_cmd} rm -rf ${clone_pgdata_dir} /pg_log
You can’t perform that action at this time.
0 commit comments