1) Postgres recien instalado - POSTGRES NEW INSTALL 2) Creando db de Pruebas - - CREATE TESTING DATABASE # createdb Test 3) iniciamos procedimiento de respaldo - START BACKUP PROCEDURE # SELECT pg_start_backup('1'); copiamos wal otro lado - COPY WAL FILES SOMEWHERE ELSE # SELECT pg_stop_backup(); 4) populamos Test - INSERT A LOT OF DATA INTO 'Test' # insert into users values (1 ,'name','800122','2 someones name',3,1); # insert into users values (2 ,'name','800122','2 someones name',3,1); ...cincuenta mil veces con su id unico - FIFTY THOUSAND TIMES WITH UNIQUE ID'S 5) # mkdir /home/postgres/backup # mkdir /home/postgres/backup/oficial # cd /home/postgres/backup # tar zcf oficial-sin-drop-17-10-01-05.tgz oficial 6) borramos tabla Test - ERASE 'Test' DB # dropdb Test 7) modificamos postgresql.conf en las siguientes lineas - UNCOMMENTED postgresql.conf THESE LINES fsync = on wal_sync_method = fsync full_page_writes = on wal_buffers = 8 commit_delay = 0 commit_siblings = 5 checkpoint_segments = 3 checkpoint_timeout = 300 checkpoint_warning = 30 archive_command = 'cp -i %p /home/postgres/respaldos/oficial/%f