01,备份

  生成备份数据库

 [gpadmin@greenplum01 ~]$ gpcrondump -l /gpbackup/back2/gpcorndump.log -x postgres -v
 [gpadmin@greenplum01 ~]$ gpcrondump -l /gpbackup/back2/gpcorndump.log -x postgres -v
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Starting gpcrondump with args: -l /gpbackup/back2/gpcorndump.log -x postgres -v
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='template1'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting GpCronDump
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ValidateDatabaseExists
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ValidateDatabaseExists
:::: gpcrondump:greenplum01:gpadmin-[INFO]:----------------------------------------------------
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Master Greenplum Instance dump parameters
:::: gpcrondump:greenplum01:gpadmin-[INFO]:----------------------------------------------------
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump type = Full database
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Database to be dumped = postgres
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Master port =
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Master data directory = /greenplum/data/master/gpseg-
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Run post dump program = Off
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Rollback dumps = Off
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump file compression = On
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Clear old dump files = Off
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Update history table = On
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Secure config files = Off
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump global objects = Off
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Vacuum mode type = Off
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Ensuring remaining free disk > Continue with Greenplum dump Yy|Nn (default=N):
> y
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='postgres'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='postgres'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='postgres'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='postgres'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='postgres'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='postgres'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='postgres'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting DumpDatabase
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ValidateDumpDatabase
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ValidateDatabaseExists
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ValidateDatabaseExists
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ValidateCluster
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ValidateCluster
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ValidateAllDumpDirs
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ValidateDumpDirs
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting CheckDir
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending CheckDir
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Directory /greenplum/data/master/gpseg-/db_dumps/ not found,will try to create
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting MakeDir
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending MakeDir
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Created /greenplum/data/master/gpseg-/db_dumps/
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ValidateDumpDirs
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Checked /greenplum/data/master/gpseg- on master
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ParallelOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] got cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] got cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] got cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] got cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] got cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] got cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] got cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] got cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] finished cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] finished cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] finished cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] finished cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] finished cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] finished cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] finished cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] finished cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-WorkerPool haltWork()
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ParallelOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ValidateAllDumpDirs
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ValidateDumpTargets
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Configuring for single database dump
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ValidateDumpTargets
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Validating disk space
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ValidateDiskSpace
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ParallelOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] got cmd: Remote(ValidateSegDiskSpace)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] got cmd: Remote(ValidateSegDiskSpace)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] got cmd: Remote(ValidateSegDiskSpace)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] got cmd: Remote(ValidateSegDiskSpace)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] got cmd: Remote(ValidateSegDiskSpace)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] got cmd: Remote(ValidateSegDiskSpace)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] got cmd: Remote(ValidateSegDiskSpace)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] got cmd: Remote(ValidateSegDiskSpace)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] finished cmd: Remote(ValidateSegDiskSpace)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] finished cmd: Remote(ValidateSegDiskSpace)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] finished cmd: Remote(ValidateSegDiskSpace)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] finished cmd: Remote(ValidateSegDiskSpace)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] finished cmd: Remote(ValidateSegDiskSpace)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] finished cmd: Remote(ValidateSegDiskSpace)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] finished cmd: Remote(ValidateSegDiskSpace)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] finished cmd: Remote(ValidateSegDiskSpace)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-WorkerPool haltWork()
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ParallelOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ValidateDiskSpace
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ValidateDumpDatabase
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Creating filter file: /greenplum/data/master/gpseg-/db_dumps//gp_dump_20190319035503_table
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Adding compression parameter
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Adding --no-expand-children
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump process command line gp_dump -p -U gpadmin --gp-d=db_dumps/ --gp-r=/greenplum/data/master/gpseg-/db_dumps/ --gp-s=p --gp-k= --no-lock --gp-c --no-expand-children "postgres"
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Starting Dump process
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump process returned exit code
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending DumpDatabase
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting PostDumpDatabase
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ListFilesByPattern
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ListFilesByPattern
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Timestamp key =
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting PostDumpSegment
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting CheckFile
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending CheckFile
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending PostDumpSegment
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Checked master status file and master dump file.
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ParallelOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] got cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] got cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] got cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] got cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] got cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] got cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] got cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] got cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] finished cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] finished cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] finished cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] finished cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] finished cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] finished cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] finished cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] finished cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-WorkerPool haltWork()
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ParallelOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending PostDumpDatabase
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting UpdateHistoryTable
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='postgres'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting CheckTableExists
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending CheckTableExists
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='postgres'
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Created public.gpcrondump_history in postgres database
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='postgres'
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Inserted dump record into public.gpcrondump_history in postgres database
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending UpdateHistoryTable
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump status report
:::: gpcrondump:greenplum01:gpadmin-[INFO]:----------------------------------------------------
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Target database = postgres
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump subdirectory =
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump type = Full database
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Clear old dump directories = Off
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump start time = ::
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump end time = ::
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Status = COMPLETED
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump key =
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump file compression = On
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Vacuum mode type = Off
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Exit code zero, no warnings generated
:::: gpcrondump:greenplum01:gpadmin-[INFO]:----------------------------------------------------
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting MailDumpEvent
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting CheckFile
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending CheckFile
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting CheckFile
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending CheckFile
:::: gpcrondump:greenplum01:gpadmin-[WARNING]:-Found neither /usr/local/greenplum-db/./bin/mail_contacts nor /home/gpadmin/mail_contacts
:::: gpcrondump:greenplum01:gpadmin-[WARNING]:-Unable to send dump email notification
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-To enable email notification, create /usr/local/greenplum-db/./bin/mail_contacts or /home/gpadmin/mail_contacts containing required email addresses
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending MailDumpEvent
[

在最后面说配置邮件.那我们来试试把

01-1,邮件

   查看怎么配置邮件

gpbackup will send out status email notifications after a back up operation
completes, if you place a file named mail_contacts in the home directory of the
Greenplum database superuser (gpadmin) or in the same directory as the
gpbackup utility ($GPHOME/bin). This file must contain one email address per line. gpbackup issues a warning if
it cannot locate a mail_contacts file in either location. If both locations have a
mail_contacts file, then the one in $HOME takes precedence. Note: The UNIX mail utility must be running on the Greenplum Database host
and must be configured to allow the Greenplum superuser (gpadmin) to send
email.

   编写地址到>$GPHOME/bin/mail_contacts 

  echo "kingle_work@163.com" >mail_contacts

  重新执行就有了.配置邮件的话需要启动邮件服务,具体操作可以回复邮件

02,备份数据

  备份数据 的位置通过上面的备份信息可以看出

03,增量备份

  创建数据:

gpdb=# create database test2
gpdb-# ;
CREATE DATABASE
gpdb=# create table test1 (id int,name varchar(128));
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'id' as the Greenplum Database data distribution key for this table.
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
CREATE TABLE
gpdb=# insert into test1 values(1,'hello');
INSERT 0 1
gpdb=# insert into test1 values(2,'hello');
INSERT 0 1
gpdb=# SELECT * from test1
gpdb-# ;
id | name
----+-------
1 | hello
2 | hello
(2 rows)

 开始备份:

 [gpadmin@greenplum01 ~]$ gpcrondump  -x gpdb -v --incremental
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Starting gpcrondump with args: -x gpdb -v --incremental
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='template1'
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Bypassing disk space checks for incremental backup
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-/db_dumps//gp_dump_20190319040710.rpt
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp =
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting GpCronDump
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ValidateDatabaseExists
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ValidateDatabaseExists
:::: gpcrondump:greenplum01:gpadmin-[INFO]:----------------------------------------------------
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Master Greenplum Instance dump parameters
:::: gpcrondump:greenplum01:gpadmin-[INFO]:----------------------------------------------------
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump type = Incremental
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-/db_dumps//gp_dump_20190319040710.rpt
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp =
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Database to be dumped = gpdb
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Master port =
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Master data directory = /greenplum/data/master/gpseg-
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Run post dump program = Off
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Rollback dumps = Off
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump file compression = On
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Clear old dump files = Off
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Update history table = On
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Secure config files = Off
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump global objects = Off
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Vacuum mode type = Off Continue with Greenplum dump Yy|Nn (default=N):
> y
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-/db_dumps//gp_dump_20190319040710.rpt
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp =
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-/db_dumps//gp_dump_20190319040710.rpt
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp =
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-/db_dumps//gp_dump_20190319040710.rpt
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp =
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-/db_dumps//gp_dump_20190319040710.rpt
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp =
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-/db_dumps//gp_dump_20190319040710.rpt
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp =
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting DumpDatabase
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ValidateDumpDatabase
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ValidateDatabaseExists
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ValidateDatabaseExists
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ValidateCluster
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ValidateCluster
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ValidateAllDumpDirs
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ValidateDumpDirs
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting CheckDir
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending CheckDir
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Directory /greenplum/data/master/gpseg-/db_dumps/ exists
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ValidateDumpDirs
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Checked /greenplum/data/master/gpseg- on master
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ParallelOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] got cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] got cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] got cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] got cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] got cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] got cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] got cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] got cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] finished cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] finished cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] finished cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] finished cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] finished cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] finished cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] finished cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] finished cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-WorkerPool haltWork()
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ParallelOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ValidateAllDumpDirs
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ValidateDumpDatabase
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Creating filter file: /greenplum/data/master/gpseg-/db_dumps//gp_dump_20190319044402_table
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Adding compression parameter
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Adding --no-expand-children
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Adding --incremental
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump process command line gp_dump -p -U gpadmin --gp-d=db_dumps/ --gp-r=/greenplum/data/master/gpseg-/db_dumps/ --gp-s=p --gp-k= --no-lock --gp-c --no-expand-children "gpdb" --table-file=/tmp/dirty_backup_list_otvbnB --incremental
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Starting Dump process
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump process returned exit code
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending DumpDatabase
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting PostDumpDatabase
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ListFilesByPattern
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ListFilesByPattern
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Timestamp key =
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting PostDumpSegment
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting CheckFile
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending CheckFile
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending PostDumpSegment
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Checked master status file and master dump file.
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ParallelOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] got cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] got cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] got cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] got cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] got cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] got cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] got cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] got cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Releasing pg_class lock
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] finished cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] finished cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] finished cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] finished cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] finished cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] finished cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] finished cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] finished cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-WorkerPool haltWork()
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ParallelOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending PostDumpDatabase
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Adding cmd to work_queue: rm -f /tmp/dirty_backup_list_otvbnB
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Adding cmd to work_queue: rm -f /tmp/dirty_backup_list_otvbnB
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] got cmd: rm -f /tmp/dirty_backup_list_otvbnB
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] got cmd: rm -f /tmp/dirty_backup_list_otvbnB
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] finished cmd: greenplum02 cmdStr='ssh -o StrictHostKeyChecking=no -o ServerAliveInterval=60 greenplum02 ". /usr/local/greenplum-db/./greenplum_path.sh; rm -f /tmp/dirty_backup_list_otvbnB"' had result: cmd had rc= completed=True halted=False
stdout=''
stderr=''
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] finished cmd: greenplum03 cmdStr='ssh -o StrictHostKeyChecking=no -o ServerAliveInterval=60 greenplum03 ". /usr/local/greenplum-db/./greenplum_path.sh; rm -f /tmp/dirty_backup_list_otvbnB"' had result: cmd had rc= completed=True halted=False
stdout=''
stderr=''
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-WorkerPool haltWork()
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-/db_dumps//gp_dump_20190319044402.rpt
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp = None
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-/db_dumps//gp_dump_20190319040710.rpt
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp =
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting CreateIncrementsFile
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending CreateIncrementsFile
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-/db_dumps//gp_dump_20190319044402.rpt
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp = None
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-/db_dumps//gp_dump_20190319040710.rpt
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp =
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting UpdateHistoryTable
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting CheckTableExists
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending CheckTableExists
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Inserted dump record into public.gpcrondump_history in gpdb database
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending UpdateHistoryTable
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump status report
:::: gpcrondump:greenplum01:gpadmin-[INFO]:----------------------------------------------------
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Target database = gpdb
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump subdirectory =
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump type = Incremental
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Clear old dump directories = Off
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump start time = ::
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump end time = ::
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Status = COMPLETED
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump key =
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump file compression = On
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Vacuum mode type = Off
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Exit code zero, no warnings generated
:::: gpcrondump:greenplum01:gpadmin-[INFO]:----------------------------------------------------
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting MailDumpEvent
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting CheckFile
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending CheckFile
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting CheckFile
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending CheckFile
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting MailEvent
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Sending mail to kingle_work@.com
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Email command string= echo "Completed for database gpdb with return code 0 [Start=04:44:02 End=04:44:09] Options passed [-x gpdb -v --incremental]" | /bin/mail -s "Report from gpcrondump on host greenplum01 [COMPLETED]" kingle_work@.com
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending MailEvent
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending MailDumpEvent

04,继续增量备份

备份:

gpcrondump  -x gpdb -v --incremental
 [gpadmin@greenplum01 ~]$ gpcrondump  -x gpdb -v --incremental
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Starting gpcrondump with args: -x gpdb -v --incremental
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='template1'
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Bypassing disk space checks for incremental backup
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-/db_dumps//gp_dump_20190319044402.rpt
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp = None
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-/db_dumps//gp_dump_20190319040710.rpt
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp =
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting GpCronDump
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ValidateDatabaseExists
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ValidateDatabaseExists
:::: gpcrondump:greenplum01:gpadmin-[INFO]:----------------------------------------------------
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Master Greenplum Instance dump parameters
:::: gpcrondump:greenplum01:gpadmin-[INFO]:----------------------------------------------------
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump type = Incremental
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-/db_dumps//gp_dump_20190319044402.rpt
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp = None
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-/db_dumps//gp_dump_20190319040710.rpt
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp =
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Database to be dumped = gpdb
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Master port =
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Master data directory = /greenplum/data/master/gpseg-
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Run post dump program = Off
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Rollback dumps = Off
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump file compression = On
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Clear old dump files = Off
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Update history table = On
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Secure config files = Off
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump global objects = Off
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Vacuum mode type = Off Continue with Greenplum dump Yy|Nn (default=N):
> y
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-/db_dumps//gp_dump_20190319044402.rpt
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp = None
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-/db_dumps//gp_dump_20190319040710.rpt
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp =
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-/db_dumps//gp_dump_20190319044402.rpt
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp = None
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-/db_dumps//gp_dump_20190319040710.rpt
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp =
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-/db_dumps//gp_dump_20190319044402.rpt
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp = None
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-/db_dumps//gp_dump_20190319040710.rpt
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp =
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-/db_dumps//gp_dump_20190319044402.rpt
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp = None
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-/db_dumps//gp_dump_20190319040710.rpt
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp =
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-/db_dumps//gp_dump_20190319044402.rpt
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp = None
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-/db_dumps//gp_dump_20190319040710.rpt
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp =
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting DumpDatabase
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ValidateDumpDatabase
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ValidateDatabaseExists
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ValidateDatabaseExists
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ValidateCluster
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ValidateCluster
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ValidateAllDumpDirs
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ValidateDumpDirs
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting CheckDir
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending CheckDir
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Directory /greenplum/data/master/gpseg-/db_dumps/ exists
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ValidateDumpDirs
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Checked /greenplum/data/master/gpseg- on master
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ParallelOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] got cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] got cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] got cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] got cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] got cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] got cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] got cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] got cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] finished cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] finished cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] finished cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] finished cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] finished cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] finished cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] finished cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] finished cmd: Remote(ValidateDumpDirs)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-WorkerPool haltWork()
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ParallelOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ValidateAllDumpDirs
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ValidateDumpDatabase
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Creating filter file: /greenplum/data/master/gpseg-/db_dumps//gp_dump_20190319050016_table
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Adding compression parameter
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Adding --no-expand-children
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Adding --incremental
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump process command line gp_dump -p -U gpadmin --gp-d=db_dumps/ --gp-r=/greenplum/data/master/gpseg-/db_dumps/ --gp-s=p --gp-k= --no-lock --gp-c --no-expand-children "gpdb" --table-file=/tmp/dirty_backup_list_8b9DHz --incremental
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Starting Dump process
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump process returned exit code
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending DumpDatabase
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting PostDumpDatabase
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ListFilesByPattern
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ListFilesByPattern
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Timestamp key =
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting PostDumpSegment
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting CheckFile
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending CheckFile
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending PostDumpSegment
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Checked master status file and master dump file.
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting ParallelOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] got cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] got cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] got cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] got cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] got cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] got cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] got cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] got cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Releasing pg_class lock
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] finished cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] finished cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] finished cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] finished cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] finished cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] finished cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] finished cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-N. :::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending RemoteOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] finished cmd: Remote(PostDumpSegment)
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-WorkerPool haltWork()
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker4] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker2] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker3] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker6] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending ParallelOperation
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending PostDumpDatabase
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker5] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker7] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Adding cmd to work_queue: rm -f /tmp/dirty_backup_list_8b9DHz
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Adding cmd to work_queue: rm -f /tmp/dirty_backup_list_8b9DHz
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] got cmd: rm -f /tmp/dirty_backup_list_8b9DHz
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] got cmd: rm -f /tmp/dirty_backup_list_8b9DHz
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] finished cmd: greenplum02 cmdStr='ssh -o StrictHostKeyChecking=no -o ServerAliveInterval=60 greenplum02 ". /usr/local/greenplum-db/./greenplum_path.sh; rm -f /tmp/dirty_backup_list_8b9DHz"'had result: cmd had rc= completed=True halted=False
stdout=''
stderr=''
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] finished cmd: greenplum03 cmdStr='ssh -o StrictHostKeyChecking=no -o ServerAliveInterval=60 greenplum03 ". /usr/local/greenplum-db/./greenplum_path.sh; rm -f /tmp/dirty_backup_list_8b9DHz"'had result: cmd had rc= completed=True halted=False
stdout=''
stderr=''
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-WorkerPool haltWork()
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] haltWork
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker0] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-[worker1] got a halt cmd
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-/db_dumps//gp_dump_20190319050016.rpt
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp = None
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-/db_dumps//gp_dump_20190319044402.rpt
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp = None
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-/db_dumps//gp_dump_20190319040710.rpt
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp =
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting CreateIncrementsFile
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending CreateIncrementsFile
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-/db_dumps//gp_dump_20190319050016.rpt
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp = None
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-/db_dumps//gp_dump_20190319044402.rpt
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp = None
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Checking for latest timestamp in report file /greenplum/data/master/gpseg-/db_dumps//gp_dump_20190319040710.rpt
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Timestamp =
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting UpdateHistoryTable
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting CheckTableExists
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending CheckTableExists
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Inserted dump record into public.gpcrondump_history in gpdb database
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending UpdateHistoryTable
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump status report
:::: gpcrondump:greenplum01:gpadmin-[INFO]:----------------------------------------------------
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Target database = gpdb
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump subdirectory =
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump type = Incremental
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Clear old dump directories = Off
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump start time = ::
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump end time = ::
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Status = COMPLETED
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump key =
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Dump file compression = On
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Vacuum mode type = Off
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Exit code zero, no warnings generated
:::: gpcrondump:greenplum01:gpadmin-[INFO]:----------------------------------------------------
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting MailDumpEvent
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting CheckFile
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending CheckFile
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting CheckFile
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending CheckFile
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Starting MailEvent
:::: gpcrondump:greenplum01:gpadmin-[INFO]:-Sending mail to kingle_work@.com
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Email command string= echo "Completed for database gpdb with returncode 0 [Start=05:00:16 End=05:00:23] Options passed [-x gpdb -v --incremental]" | /bin/mail -s "Report from gpcrondump on host greenplum01 [COMPLETED]" kingle_work@.com
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending MailEvent
:::: gpcrondump:greenplum01:gpadmin-[DEBUG]:-Ending MailDumpEvent

一,恢复

  01,数据删除恢复

gpdb=# DELETE FROM test1
gpdb-# ;
DELETE
gpdb=# SELECT * from test1;
id | name
----+------
( rows)

  02, 恢复全量

gpdbrestore -l /gpbackup/back3/gpcorndump.log -t  -T public.test1 --truncate --redirect gpdb

  -t 后面的是时间戳,每个日志生成都有,选择对应的时间就行

 删除数据后的恢复:
[gpadmin@greenplum01 ~]$ gpdbrestore -l /gpbackup/back4/gpcorndump.log -t -T public.test1 --truncate --redirect gpdb
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Starting gpdbrestore with args: -l /gpbackup/back4/gpcorndump.log -t -T public.test1 --truncate --redirect gpdb
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-------------------------------------------
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Greenplum database restore parameters
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-------------------------------------------
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Restore type = Table Restore
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Database name = gpdb
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-------------------------------------------
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Table restore list
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-------------------------------------------
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Table = public.test1
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Redirect Restore database = gpdb
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Restore method = Specific table restore
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Restore timestamp =
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Restore compressed dump = On
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Restore global objects = Off
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Array fault tolerance = f
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:------------------------------------------- Continue with Greenplum restore Yy|Nn (default=N):
> y
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Creating Database gpdb
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Created Database gpdb
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Running metadata restore
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Invoking commandline: gp_restore -i -h greenplum01 -p -U gpadmin --gp-d=db_dumps/ --gp-i --gp-k= --gp-l=p --gp-f=/tmp/table_list_5PvlS8 --gp-c -d "gpdb" -s /greenplum/data/master/gpseg-/db_dumps//gp_dump_-1_1_20190320015752.gz -P
:::: gpdbrestore:greenplum01:gpadmin-[WARNING]:-gpdbrestore finished but ERRORS were found, please check the restore report file for details
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Expanding parent partitions if any in table filter
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-gp_restore commandline: gp_restore -i -h greenplum01 -p -U gpadmin --gp-d=db_dumps/ --gp-i --gp-k= --gp-l=p --gp-f=/tmp/table_list_RH6W_s --gp-c -d "gpdb" -a:
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-gpdbrestore finished successfully
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Running post data restore
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-gp_restore commandline: gp_restore -i -h greenplum01 -p -U gpadmin --gp-d=db_dumps/ --gp-i --gp-k= --gp-l=p --gp-f=/tmp/table_list_RH6W_s --gp-c -d "gpdb" -P:
:::: gpdbrestore:greenplum01:gpadmin-[WARNING]:-gpdbrestore finished but ERRORS were found, please check the restore report file for details
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Updating AO/CO statistics on master
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-No AO/CO tables restored, skipping statistics update...
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Commencing analyze of restored tables in 'gpdb' database, please wait
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-'Analyze' of restored tables in 'gpdb' database completed without error
[gpadmin@greenplum01 ~]$ psql -d gpdb
psql (8.3.)
Type "help" for help. gpdb=# SELECT * from test1;
id | name
-----+-------
| linda
| lily
| tom
| jack
( rows)

03,恢复增量

gpdbrestore -t  -T public.test1 -v --truncate --noplan --redirect gpdb
 [gpadmin@greenplum01 ~]$ gpdbrestore -t  -T public.test1 -v --redirect gpdb --noplan --truncate
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Starting gpdbrestore with args: -t -T public.test1 -v --redirect gpdb --noplan --truncate
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='template1'
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Starting GpdbRestore
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Starting ValidateTimestamp
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Ending ValidateTimestamp
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Starting GetLocalDumpTablesOperation
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Ending GetLocalDumpTablesOperation
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-------------------------------------------
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Greenplum database restore parameters
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-------------------------------------------
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Restore type = Incremental Table Restore
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Database name = gpdb
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-------------------------------------------
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Table restore list
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-------------------------------------------
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Table = public.test1
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Redirect Restore database = gpdb
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Restore method = Specific table restore
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Restore timestamp =
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Restore compressed dump = On
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Restore global objects = Off
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Array fault tolerance = f
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:------------------------------------------- Continue with Greenplum restore Yy|Nn (default=N):
> y
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Starting RestoreDatabase
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Starting ValidateSegments
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Ending ValidateSegments
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='template1'
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Creating Database gpdb
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Created Database gpdb
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Adding cmd to work_queue: /bin/scp /tmp/table_list_FhYgsu greenplum02:/tmp/table_list_FhYgsu
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Adding cmd to work_queue: /bin/scp /tmp/table_list_FhYgsu greenplum03:/tmp/table_list_FhYgsu
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker0] got cmd: /bin/scp /tmp/table_list_FhYgsu greenplum02:/tmp/table_list_FhYgsu
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker1] got cmd: /bin/scp /tmp/table_list_FhYgsu greenplum03:/tmp/table_list_FhYgsu
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker0] finished cmd: Copying table_filter_file to greenplum02 cmdStr='/bin/scp /tmp/table_list_FhYgsu greenplum02:/tmp/table_list_FhYgsu' had result: cmd had rc= completed=True halted=False
stdout=''
stderr=''
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker1] finished cmd: Copying table_filter_file to greenplum03 cmdStr='/bin/scp /tmp/table_list_FhYgsu greenplum03:/tmp/table_list_FhYgsu' had result: cmd had rc= completed=True halted=False
stdout=''
stderr=''
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-WorkerPool haltWork()
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker0] haltWork
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker1] haltWork
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker0] got a halt cmd
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker1] got a halt cmd
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Adding cmd to work_queue: /bin/scp /tmp/table_list_TKsXql greenplum02:/tmp/table_list_TKsXql
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Adding cmd to work_queue: /bin/scp /tmp/table_list_TKsXql greenplum03:/tmp/table_list_TKsXql
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker0] got cmd: /bin/scp /tmp/table_list_TKsXql greenplum02:/tmp/table_list_TKsXql
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker1] got cmd: /bin/scp /tmp/table_list_TKsXql greenplum03:/tmp/table_list_TKsXql
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker0] finished cmd: Copying table_filter_file to greenplum02 cmdStr='/bin/scp /tmp/table_list_TKsXql greenplum02:/tmp/table_list_TKsXql' had result: cmd had rc= completed=True halted=False
stdout=''
stderr=''
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker1] finished cmd: Copying table_filter_file to greenplum03 cmdStr='/bin/scp /tmp/table_list_TKsXql greenplum03:/tmp/table_list_TKsXql' had result: cmd had rc= completed=True halted=False
stdout=''
stderr=''
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-WorkerPool haltWork()
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker0] haltWork
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker1] haltWork
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-gp_restore commandline: gp_restore -i -h greenplum01 -p -U gpadmin --gp-d=db_dumps/ --gp-i --gp-k= --gp-l=p --gp-f=/tmp/table_list_TKsXql --gp-c -d "gpdb" -a:
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker1] got a halt cmd
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker0] got a halt cmd
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-gpdbrestore finished successfully
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Updating AO/CO statistics on master
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-No AO/CO tables restored, skipping statistics update...
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Commencing analyze of restored tables in 'gpdb' database, please wait
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-'Analyze' of restored tables in 'gpdb' database completed without error
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Adding cmd to work_queue: rm -f /tmp/table_list_TKsXql
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Adding cmd to work_queue: rm -f /tmp/table_list_TKsXql
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker0] got cmd: rm -f /tmp/table_list_TKsXql
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker1] got cmd: rm -f /tmp/table_list_TKsXql
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker0] finished cmd: greenplum02 cmdStr='ssh -o StrictHostKeyChecking=no -o ServerAliveInterval=60 greenplum02 ". /usr/local/greenplum-db/./greenplum_path.sh; rm -f /tmp/table_list_TKsXql"' had result: cmdhad rc= completed=True halted=False
stdout=''
stderr=''
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker1] finished cmd: greenplum03 cmdStr='ssh -o StrictHostKeyChecking=no -o ServerAliveInterval=60 greenplum03 ". /usr/local/greenplum-db/./greenplum_path.sh; rm -f /tmp/table_list_TKsXql"' had result: cmdhad rc= completed=True halted=False
stdout=''
stderr=''
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-WorkerPool haltWork()
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker0] haltWork
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker1] haltWork
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Ending RestoreDatabase
[gpadmin@greenplum01 ~]$ psql -d gpdb
psql (8.3.)
Type "help" for help. gpdb=# SELECT * from test1;
id | name
-----+-------
| tom
| lily
| xixi
| linda
| jack
( rows)
gpdbrestore -t  -T public.test1 -v --truncate --noplan --redirect gpdb
 [gpadmin@greenplum01 ~]$ gpdbrestore -t  -T public.test1 -v --redirect gpdb --noplan --truncate
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Starting gpdbrestore with args: -t -T public.test1 -v --redirect gpdb --noplan --truncate
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='template1'
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Starting GpdbRestore
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Starting ValidateTimestamp
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Ending ValidateTimestamp
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Starting GetLocalDumpTablesOperation
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Ending GetLocalDumpTablesOperation
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-------------------------------------------
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Greenplum database restore parameters
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-------------------------------------------
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Restore type = Incremental Table Restore
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Database name = gpdb
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-------------------------------------------
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Table restore list
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-------------------------------------------
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Table = public.test1
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Redirect Restore database = gpdb
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Restore method = Specific table restore
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Restore timestamp =
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Restore compressed dump = On
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Restore global objects = Off
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Array fault tolerance = f
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:------------------------------------------- Continue with Greenplum restore Yy|Nn (default=N):
> y
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Starting RestoreDatabase
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Starting ValidateSegments
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Ending ValidateSegments
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='template1'
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Creating Database gpdb
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Created Database gpdb
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Adding cmd to work_queue: /bin/scp /tmp/table_list_WHMO0U greenplum02:/tmp/table_list_WHMO0U
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Adding cmd to work_queue: /bin/scp /tmp/table_list_WHMO0U greenplum03:/tmp/table_list_WHMO0U
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker0] got cmd: /bin/scp /tmp/table_list_WHMO0U greenplum02:/tmp/table_list_WHMO0U
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker1] got cmd: /bin/scp /tmp/table_list_WHMO0U greenplum03:/tmp/table_list_WHMO0U
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker0] finished cmd: Copying table_filter_file to greenplum02 cmdStr='/bin/scp /tmp/table_list_WHMO0U greenplum02:/tmp/table_list_WHMO0U' had result: cmd had rc= completed=True halted=False
stdout=''
stderr=''
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker1] finished cmd: Copying table_filter_file to greenplum03 cmdStr='/bin/scp /tmp/table_list_WHMO0U greenplum03:/tmp/table_list_WHMO0U' had result: cmd had rc= completed=True halted=False
stdout=''
stderr=''
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-WorkerPool haltWork()
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker0] haltWork
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker1] haltWork
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker1] got a halt cmd
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker0] got a halt cmd
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Adding cmd to work_queue: /bin/scp /tmp/table_list_Q5X_Q3 greenplum02:/tmp/table_list_Q5X_Q3
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Adding cmd to work_queue: /bin/scp /tmp/table_list_Q5X_Q3 greenplum03:/tmp/table_list_Q5X_Q3
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker0] got cmd: /bin/scp /tmp/table_list_Q5X_Q3 greenplum02:/tmp/table_list_Q5X_Q3
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker1] got cmd: /bin/scp /tmp/table_list_Q5X_Q3 greenplum03:/tmp/table_list_Q5X_Q3
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker0] finished cmd: Copying table_filter_file to greenplum02 cmdStr='/bin/scp /tmp/table_list_Q5X_Q3 greenplum02:/tmp/table_list_Q5X_Q3' had result: cmd had rc= completed=True halted=False
stdout=''
stderr=''
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker1] finished cmd: Copying table_filter_file to greenplum03 cmdStr='/bin/scp /tmp/table_list_Q5X_Q3 greenplum03:/tmp/table_list_Q5X_Q3' had result: cmd had rc= completed=True halted=False
stdout=''
stderr=''
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-WorkerPool haltWork()
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker0] haltWork
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker1] haltWork
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker0] got a halt cmd
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker1] got a halt cmd
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-gp_restore commandline: gp_restore -i -h greenplum01 -p -U gpadmin --gp-d=db_dumps/ --gp-i --gp-k= --gp-l=p --gp-f=/tmp/table_list_Q5X_Q3 --gp-c -d "gpdb" -a:
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-gpdbrestore finished successfully
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Updating AO/CO statistics on master
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-No AO/CO tables restored, skipping statistics update...
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-Commencing analyze of restored tables in 'gpdb' database, please wait
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Connecting to dbname='gpdb'
:::: gpdbrestore:greenplum01:gpadmin-[INFO]:-'Analyze' of restored tables in 'gpdb' database completed without error
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Adding cmd to work_queue: rm -f /tmp/table_list_Q5X_Q3
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Adding cmd to work_queue: rm -f /tmp/table_list_Q5X_Q3
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker0] got cmd: rm -f /tmp/table_list_Q5X_Q3
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker1] got cmd: rm -f /tmp/table_list_Q5X_Q3
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker0] finished cmd: greenplum02 cmdStr='ssh -o StrictHostKeyChecking=no -o ServerAliveInterval=60 greenplum02 ". /usr/local/greenplum-db/./greenplum_path.sh; rm -f /tmp/table_list_Q5X_Q3"' had result: cmdhad rc= completed=True halted=False
stdout=''
stderr=''
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker1] finished cmd: greenplum03 cmdStr='ssh -o StrictHostKeyChecking=no -o ServerAliveInterval=60 greenplum03 ". /usr/local/greenplum-db/./greenplum_path.sh; rm -f /tmp/table_list_Q5X_Q3"' had result: cmdhad rc= completed=True halted=False
stdout=''
stderr=''
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-WorkerPool haltWork()
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker0] haltWork
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-[worker1] haltWork
:::: gpdbrestore:greenplum01:gpadmin-[DEBUG]:-Ending RestoreDatabase
[gpadmin@greenplum01 ~]$ psql -d gpdb
psql (8.3.)
Type "help" for help. gpdb=# SELECT * from test1;
id | name
-----+-------
| jack
| lily
| xixi
| tom
| hhaa
| linda
( rows) gpdb=# exit

 

  

  

  

  

 
 
 
 
 
 
 
 
 

GreenPlum 大数据平台--备份-邮件配置-gpcrondump & gpdbrestore(五)的更多相关文章

  1. GreenPlum 大数据平台--非并行备份(六)

    一,非并行备份(pg_dump) 1) GP依然支持常规的PostgreSQL备份命令pg_dump和pg_dumpall 2) 备份将在Master主机上创建一个包含所有Segment数据的大的备份 ...

  2. GreenPlum 大数据平台--并行备份(四)

    01,并行备份(gp_dump) 1) GP同时备份Master和所有活动的Segment实例 2) 备份消耗的时间与系统中实例的数量没有关系 3) 在Master主机上备份所有DDL文件和GP相关的 ...

  3. GreenPlum 大数据平台--监控

    数据库状态监控活动 活动 过程 纠正措施 列出当前状态为down的Segment.如果有任何行被返回,就会生成一个警告或者告警. 推荐频率:每5到10分钟 重要度: IMPORTANT 在postgr ...

  4. GreenPlum 大数据平台--介绍

    一,GreenPlum 01,介绍: Greenplum是一种基于PostgreSQL的分布式数据库,其采用shared-nothing架构,主机.操作系统.内存.存储都是自我控制的,不存在共享. 官 ...

  5. GreenPlum 大数据平台--外部表(三)

    一,外部表介绍 Greenplum 在数据加载上有一个明显的优势,就是支持数据的并发加载,gpfdisk是并发加载的工具,数据库中对应的就是外部表 所谓外部表,就是在数据库中只有表定义.没有数据,数据 ...

  6. GreenPlum 大数据平台--运维(三)

    一,操作命令 01,启动gpstart 参数说明 COMMAND NAME: gpstart Starts a Greenplum Database system. ***************** ...

  7. GreenPlum 大数据平台--常用命令

    gpstate 命令 参数 作用 gpstate -b => 显示简要状态 gpstate -c => 显示主镜像映射 gpstart -d => 指定数据目录(默认值:$MASTE ...

  8. GreenPlum 大数据平台--安装

    1. 环境准备 01, 安装包准备: Greenplum :  >>>>链接地址 Pgadmin客户端 :  >>>链接地址 greenplum-cc-web ...

  9. GreenPlum 大数据平台--运维(二)

    .如何获取查询运行时和已用时间. 例子: Select tstart, tfinish, (tfinish-tstart) as total_time, trim(query_text) from q ...

随机推荐

  1. Zynq 在Ubuntu上搭建编译环境

    http://bbs.elecfans.com/jishu_487981_1_1.html 以下操作均在root用户下完成1,下载交叉编译器在ubuntu里下载arm-2010.09-62-arm-x ...

  2. (转)15个非常棒的jQuery无限滚动插件【瀑布流效果】

    原文地址:http://www.cnblogs.com/lyw0301/archive/2013/06/19/3145084.html 现在,最热门的网站分页趋势之一是jQuery的无限滚动(也即瀑布 ...

  3. .net Stream篇(六)

    BufferedStream 目录: 简单介绍一下BufferedStream 如何理解缓冲区? BufferedStream的优势 从BufferedStream 中学习装饰模式 如何理解装饰模式 ...

  4. Robot Framework 使用总结

    最近项目上使用了RF快速实现了一些验收测试的自动化case,感觉不错,很好用,下面就记录一下使用RF实现自动化的过程. 什么是RF? RF是一种测试框架,帮助测试人员在其框架下快速实现验收测试的自动化 ...

  5. 【大数据之数据仓库】GreenPlum优化器对比测试

    在< [大数据之数据仓库]选型流水记>一文中有提及,当时没有测试GreenPlum的quicklz压缩算法和ORCA查询优化器,考虑到quicklz压缩算法因为版权问题不会开源(详情请参阅 ...

  6. day1学python Hello Python

    Hello Python 本人使用的是Pycharm编译器 ----------------------------------------------- 1.输出 2.赋值 3.‘’‘/“”“ 多行 ...

  7. java处理中国气象数据,提取汇总陕西地区24小时各观测点的数据(csv格式)

    1.先贴一下气象数据的csv源格式,由于数据内容较多,就放一部分(china_sites_20150102.csv) date,hour,type,1001A,1002A,1003A,1004A,10 ...

  8. OOP1(定义基类和派生类)

    面向对象程序设计基于三个基本概念:数据抽象,继承和动态绑定 数据抽象是一种依赖于接口和实现分离的编程技术.继承和动态绑定对程序的编号有两方面的影响:一是我们可以更容易地定义与其它类相似但不完全相同的类 ...

  9. CBV请求流程源码分析

    一.CBV流程解析 urls.py urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^book/', views.BookView.as ...

  10. 【智能算法】超详细的遗传算法(Genetic Algorithm)解析和TSP求解代码详解

    喜欢的话可以扫码关注我们的公众号哦,更多精彩尽在微信公众号[程序猿声] 文章声明 此文章部分资料和代码整合自网上,来源太多已经无法查明出处,如侵犯您的权利,请联系我删除. 00 目录 遗传算法定义 生 ...