1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-01-25 11:53:32 +02:00

159 Commits

Author SHA1 Message Date
Anastasia
3ed0666f14 fix for previous commit 2017-06-14 20:36:11 +03:00
Anastasia
ab3b160a1a send pg_stop_backup() asynchronously, cancel query if no answer in 300 seconds 2017-06-14 19:30:25 +03:00
Anastasia
5adeae5fdd clarify usage of backup_content.control key 'is_datafile', add key 'is_cfs' 2017-06-14 15:27:16 +03:00
Anastasia
bf40f1f818 Improve backup from replica. add master connection options 2017-06-07 16:50:33 +03:00
Anastasia
57d1fa7c5e comments cleanup 2017-06-07 16:28:22 +03:00
Anastasia
84fb036004 fix in pg_stop_backup call on backup interruption 2017-05-31 16:05:14 +03:00
Arthur Zakirov
66d3e97e26 Do non-exclusive backup for PostgreSQL 9.6+ 2017-05-29 19:03:55 +03:00
Arthur Zakirov
7a294ad0c9 Use checkpoint_timeout in stop_streaming() 2017-05-29 18:58:41 +03:00
Arthur Zakirov
dd83e73918 INFO:Wait end of WAL streaming 2017-05-29 18:58:41 +03:00
Arthur Zakirov
a98eb327e1 Wait for target LSN, not only for WAL segment 2017-05-29 18:58:41 +03:00
Arthur Zakirov
aa9764d8e9 Wait checkpoint_timeout + 3s for LSN in stream mode 2017-05-29 18:58:41 +03:00
Arthur Zakirov
82ca5a0213 Wait for stop_lsn.
In stream mode we wait it in backuped pg_xlog directory now.
2017-05-29 18:58:41 +03:00
Arthur Zakirov
635a4a53ed Added pgBackupGetPath2() 2017-05-29 18:58:41 +03:00
Anastasia
4e94454544 1. Implement backup of multiple instances. Add option --instance, commands add-instance and del-instance.
2. Implement pg_probackup specific commands for archiving: archive-push for archive_command and archive-get for restore_command
2017-05-29 18:52:43 +03:00
Arthur Zakirov
62eee9cfdc Write ERROR status of the backup before executing pg_stop_backup() 2017-05-19 12:08:16 +03:00
Arthur Zakirov
e6ec0f2898 Check if archiving is enabled during archive backup 2017-05-18 15:53:09 +03:00
Arthur Zakirov
9f9c95c990 Wait for start_lsn in pg_start_backup() 2017-05-18 15:33:03 +03:00
Arthur Zakirov
62e4e90e2c Add log file functions 2017-05-18 12:09:04 +03:00
Anastasia
d40e299c3c fix dest backup search 2017-05-02 17:28:08 +03:00
Anastasia
419008d9de code cleanup 2017-05-02 15:13:32 +03:00
Anastasia
8405a59a53 Add backup completed message. 1.1.7 is stable version 2017-04-25 17:33:52 +03:00
Arthur Zakirov
c8d5e0338d Get list of backups in do_backup() as soon as possible 2017-04-25 12:42:38 +03:00
Arthur Zakirov
2bdaaf0eaf Add pg_switch_wal(). It is used for page backup 2017-04-24 19:25:42 +03:00
Arthur Zakirov
e9e25d96b4 Fix parsing db_oid from relation path in make_pagemap_from_ptrack() 2017-04-24 18:22:34 +03:00
Arthur Zakirov
737c8b0647 Add WAL column for show command 2017-04-24 17:56:05 +03:00
Arthur Zakirov
0effc18193 Remove unnecessary ERROR message 2017-04-24 15:44:15 +03:00
Arthur Zakirov
8dea09ca1a Improve comments. Add pgBackupGetBackupMode() 2017-04-21 14:54:33 +03:00
Arthur Zakirov
e861c7f7f2 Little fixes
- read parent-backup-id not parent_backup
- sort backup_files_list only for ptrack backup
2017-04-21 11:54:00 +03:00
Anastasia
e0175b98c5 Merge branch 'master' of git.postgrespro.ru:pgpro-dev/pg_probackup 2017-04-20 15:22:37 +03:00
Anastasia
1af622f78a Options cleanup 2017-04-20 15:22:18 +03:00
Arthur Zakirov
82d79598d0 Do not use pointer for prev_backup_start_lsn 2017-04-20 15:08:07 +03:00
Arthur Zakirov
28626dcdb1 Fix little bugs.
- scan segno in dir_read_file_list()
- check backup_path in main() if 'backup_path == NULL'
2017-04-20 15:01:29 +03:00
Arthur Zakirov
c47af357b1 Initialize backup_cleanup() earlier 2017-04-20 14:14:14 +03:00
Arthur Zakirov
1c87d613f4 Check target LSN. Archived WAL segment should contain it. 2017-04-20 12:38:51 +03:00
Anastasia
12cc3a1491 Format change backup.conf is renamed to backup.control 2017-04-19 12:01:10 +03:00
Anastasia
f833ca624b Code cleanup: backup, restore. Still WIP. Something can be broken. 2017-04-18 11:41:02 +03:00
Anastasia
3ca609a0ff Code cleanup: validate 2017-04-14 12:51:05 +03:00
Anastasia
75534a00be Code cleanup. Unify restore and validate. Remove unused functions. 2017-04-13 19:37:29 +03:00
Anastasia
612070c48d Code cleanup. remove unused check option 2017-04-12 17:39:20 +03:00
Anastasia
1315723dc5 remove unused pgut-port files 2017-04-11 20:25:00 +03:00
Artur Zakirov
d41c11d55e pg_ptrack_enable() should be executed only pg_ptrack_support() returns true 2017-04-11 17:56:46 +03:00
Artur Zakirov
5c7669757d Compare system_identifier of PGDATA with system_identifier of backup_conn 2017-04-05 19:48:55 +03:00
Artur Zakirov
8f37eb5afa Calculate recovery_time using current_timestamp() 2017-03-24 17:22:55 +03:00
Artur Zakirov
b31485640b Read recovery_time and recovery_xid from WAL segments whenever possible 2017-03-24 16:58:35 +03:00
Artur Zakirov
62953a7f81 Default --archive-timeout is 300 seconds 2017-03-24 14:24:29 +03:00
Artur Zakirov
f3bdedcf4d Add backup option --archive-timeout 2017-03-24 14:07:03 +03:00
Artur Zakirov
3a7b6d5de4 Wait right WAL segment for backup from replica 2017-03-23 17:00:43 +03:00
Artur Zakirov
515150cff1 Allow page backups from standby 2017-03-22 11:50:29 +03:00
Artur Zakirov
2671a0c08e Wait lsn in pg_start_backup() and pg_stop_backup(). Do pg_switch_xlog() only for master 2017-03-21 18:30:48 +03:00
Artur Zakirov
176102b159 Refactor backup connection for PostgreSQL 2017-03-21 11:54:49 +03:00