<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>backup &#8211; Database Research &amp; Development</title>
	<atom:link href="https://www.dbrnd.com/tag/backup/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.dbrnd.com</link>
	<description>BIGData &#124; NoSQL &#124; MSSQL &#124; MySQL &#124; PostgreSQL</description>
	<lastBuildDate>Mon, 21 Jan 2019 07:17:50 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.6</generator>
	<item>
		<title>PostgreSQL: Don&#8217;t take backup until your Database is changed</title>
		<link>https://www.dbrnd.com/2019/02/postgresql-dont-take-backup-until-your-database-is-changed-check-pg_stat_database-tuple/</link>
					<comments>https://www.dbrnd.com/2019/02/postgresql-dont-take-backup-until-your-database-is-changed-check-pg_stat_database-tuple/#respond</comments>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Mon, 25 Feb 2019 16:16:38 +0000</pubDate>
				<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[pg_stat_database]]></category>
		<category><![CDATA[pg_stat_reset]]></category>
		<category><![CDATA[plpgsql]]></category>
		<category><![CDATA[Postgres Query]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[PostgreSQL Administrator]]></category>
		<category><![CDATA[PostgreSQL Error]]></category>
		<category><![CDATA[PostgreSQL Monitoring]]></category>
		<category><![CDATA[PostgreSQL Performance Tuning]]></category>
		<category><![CDATA[PostgreSQL Programming]]></category>
		<category><![CDATA[PostgreSQL Tips and Tricks]]></category>
		<category><![CDATA[tup_inserted]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=4442</guid>

					<description><![CDATA[In this post, I am sharing an important tip for PostgreSQL DBAs. I recently started work with a new PostgreSQL Client. They have total 326 databases in their PostgreSQL Server. They are taking full backup for all the database and this process is taking around total 7 hours. When I looked this, my first step [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2019%2F02%2Fpostgresql-dont-take-backup-until-your-database-is-changed-check-pg_stat_database-tuple%2F&amp;linkname=PostgreSQL%3A%20Don%E2%80%99t%20take%20backup%20until%20your%20Database%20is%20changed" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2019%2F02%2Fpostgresql-dont-take-backup-until-your-database-is-changed-check-pg_stat_database-tuple%2F&amp;linkname=PostgreSQL%3A%20Don%E2%80%99t%20take%20backup%20until%20your%20Database%20is%20changed" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2019%2F02%2Fpostgresql-dont-take-backup-until-your-database-is-changed-check-pg_stat_database-tuple%2F&amp;linkname=PostgreSQL%3A%20Don%E2%80%99t%20take%20backup%20until%20your%20Database%20is%20changed" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2019%2F02%2Fpostgresql-dont-take-backup-until-your-database-is-changed-check-pg_stat_database-tuple%2F&amp;linkname=PostgreSQL%3A%20Don%E2%80%99t%20take%20backup%20until%20your%20Database%20is%20changed" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2019%2F02%2Fpostgresql-dont-take-backup-until-your-database-is-changed-check-pg_stat_database-tuple%2F&amp;linkname=PostgreSQL%3A%20Don%E2%80%99t%20take%20backup%20until%20your%20Database%20is%20changed" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2019%2F02%2Fpostgresql-dont-take-backup-until-your-database-is-changed-check-pg_stat_database-tuple%2F&amp;linkname=PostgreSQL%3A%20Don%E2%80%99t%20take%20backup%20until%20your%20Database%20is%20changed" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2019%2F02%2Fpostgresql-dont-take-backup-until-your-database-is-changed-check-pg_stat_database-tuple%2F&#038;title=PostgreSQL%3A%20Don%E2%80%99t%20take%20backup%20until%20your%20Database%20is%20changed" data-a2a-url="https://www.dbrnd.com/2019/02/postgresql-dont-take-backup-until-your-database-is-changed-check-pg_stat_database-tuple/" data-a2a-title="PostgreSQL: Don’t take backup until your Database is changed"></a></p><p>In this post, I am sharing an important tip for PostgreSQL DBAs. </p>
<p>I recently started work with a new PostgreSQL Client. They have total 326 databases in their PostgreSQL Server. They are taking full backup for all the database and this process is taking around total 7 hours. </p>
<p>When I looked this, my first step was to find database statistics. I have found 25% of databases are not being updated frequently. </p>
<blockquote><p>I added one additional check in a backup process like &#8220;skip the backup for those databases which have not been changed for any operations (DDL or DML operation)&#8221;.<br />
After this check, the backup process is taking around total 5 hours to complete the job.</p></blockquote>
<blockquote><p>Using pg_stat_database, you can check the stats of database and can compare the value for tuple columns with the old value. If you found any changes, your database has been changed.</p></blockquote>
<p>If any of your DBA reset the PostgreSQL database statistics using something like pg_stat_reset, you have to add some more extra logic to understand the difference between statistics. </p>
<p>Below is a sample demonstration:<br />
<strong>Create a backup table to store DatabaseStats:</strong></p>
<pre class="crayon-plain-tag">CREATE TABLE public.tbl_DatabaseStats AS
SELECT 
	datname
	,tup_inserted
	,tup_updated
	,tup_deleted	
FROM pg_stat_database;</pre> </p>
<p><strong>Perform few DDLs and DMLs actions:</strong></p>
<pre class="crayon-plain-tag">CREATE TABLE public.tbl_Students(rno int, name character varying);
INSERT INTO public.tbl_Students VALUES(1,'Anvesh');
CREATE TABLE public.tbl_Test88(id int);</pre> </p>
<p><strong>Compare the result of below two queries:</strong><br />
If you find differences on any of the columns of your Database, your database stats has been changed and you should take the backup of your database.</p>
<pre class="crayon-plain-tag">SELECT 
	datname
	,tup_inserted
	,tup_updated
	,tup_deleted	
FROM pg_stat_database;

SELECT *FROM public.tbl_DatabaseStats;</pre> </p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dbrnd.com/2019/02/postgresql-dont-take-backup-until-your-database-is-changed-check-pg_stat_database-tuple/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>SQL Server: Script to take full backup for all the Databases</title>
		<link>https://www.dbrnd.com/2019/01/sql-server-script-to-take-full-backup-for-all-the-databases-ad-hoc-full-database-backup/</link>
					<comments>https://www.dbrnd.com/2019/01/sql-server-script-to-take-full-backup-for-all-the-databases-ad-hoc-full-database-backup/#respond</comments>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Mon, 14 Jan 2019 07:03:32 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server DBA Script]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[auto backup]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database backup script]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[full backup]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server Administrator]]></category>
		<category><![CDATA[SQL Server Monitoring]]></category>
		<category><![CDATA[SQL Server Performance Tunning]]></category>
		<category><![CDATA[SQL Server Tips and Tricks]]></category>
		<category><![CDATA[TSQL]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=4041</guid>

					<description><![CDATA[In this post, I am sharing one T-SQL Script to take full backup for all the databases of SQL Server. There are different types of backups and techniques available in the SQL Server, but I always believe in DBA Scripts which you can modify as per your requirements. Apart from scheduled backups, sometimes DBA requires [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2019%2F01%2Fsql-server-script-to-take-full-backup-for-all-the-databases-ad-hoc-full-database-backup%2F&amp;linkname=SQL%20Server%3A%20Script%20to%20take%20full%20backup%20for%20all%20the%20Databases" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2019%2F01%2Fsql-server-script-to-take-full-backup-for-all-the-databases-ad-hoc-full-database-backup%2F&amp;linkname=SQL%20Server%3A%20Script%20to%20take%20full%20backup%20for%20all%20the%20Databases" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2019%2F01%2Fsql-server-script-to-take-full-backup-for-all-the-databases-ad-hoc-full-database-backup%2F&amp;linkname=SQL%20Server%3A%20Script%20to%20take%20full%20backup%20for%20all%20the%20Databases" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2019%2F01%2Fsql-server-script-to-take-full-backup-for-all-the-databases-ad-hoc-full-database-backup%2F&amp;linkname=SQL%20Server%3A%20Script%20to%20take%20full%20backup%20for%20all%20the%20Databases" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2019%2F01%2Fsql-server-script-to-take-full-backup-for-all-the-databases-ad-hoc-full-database-backup%2F&amp;linkname=SQL%20Server%3A%20Script%20to%20take%20full%20backup%20for%20all%20the%20Databases" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2019%2F01%2Fsql-server-script-to-take-full-backup-for-all-the-databases-ad-hoc-full-database-backup%2F&amp;linkname=SQL%20Server%3A%20Script%20to%20take%20full%20backup%20for%20all%20the%20Databases" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2019%2F01%2Fsql-server-script-to-take-full-backup-for-all-the-databases-ad-hoc-full-database-backup%2F&#038;title=SQL%20Server%3A%20Script%20to%20take%20full%20backup%20for%20all%20the%20Databases" data-a2a-url="https://www.dbrnd.com/2019/01/sql-server-script-to-take-full-backup-for-all-the-databases-ad-hoc-full-database-backup/" data-a2a-title="SQL Server: Script to take full backup for all the Databases"></a></p><p>In this post, I am sharing one T-SQL Script to take full backup for all the databases of SQL Server. </p>
<blockquote><p>There are different types of backups and techniques available in the SQL Server, but I always believe in DBA Scripts which you can modify as per your requirements.
</p></blockquote>
<blockquote><p>Apart from scheduled backups, sometimes DBA requires ad-hoc full backups of databases which they can do using this script.</p></blockquote>
<p><strong>Script to take full backup of databases:</strong><br />
You can change the path name (&#8216;C:\TempBackup\&#8217;) and replace with your path name. </p>
<pre class="crayon-plain-tag">DECLARE @dbName	NVARCHAR (255); 
DECLARE @SQL NVARCHAR(4000); 
 
DECLARE DBBackupCur 
CURSOR FOR 
    SELECT name FROM sys.databases WITH (NOLOCK) 
    WHERE name NOT IN ('master','model','msdb','tempdb')  
    OPTION (RECOMPILE); 
 
OPEN DBBackupCur;     
FETCH NEXT FROM DBBackupCur INTO @dbName 
WHILE (@@fetch_status &lt;&gt; -1) 
BEGIN 
    IF (@@fetch_status &lt;&gt; -2) 
    BEGIN 
        SET @SQL = N'BACKUP DATABASE [' + @dbName + N'] TO DISK = ''C:\TempBackup\' + @dbName + N'.bak'''; 
        EXECUTE sp_executesql @SQL 
        PRINT N'Backup completed: ' + @dbName 
    END; 
    FETCH NEXT FROM DBBackupCur INTO @dbName; 
END; 
CLOSE DBBackupCur; 
DEALLOCATE DBBackupCur; 
GO</pre> </p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dbrnd.com/2019/01/sql-server-script-to-take-full-backup-for-all-the-databases-ad-hoc-full-database-backup/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Greenplum: How to Troubleshoot running Database Backup Process</title>
		<link>https://www.dbrnd.com/2018/02/greenplum-how-to-troubleshoot-running-database-backup-process-starting-dump-process-releasing-pg_class-lock/</link>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Sat, 03 Feb 2018 16:16:57 +0000</pubDate>
				<category><![CDATA[Greenplum]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[gpcrondump]]></category>
		<category><![CDATA[Greenplum Administrator]]></category>
		<category><![CDATA[Greenplum Error]]></category>
		<category><![CDATA[Greenplum Monitoring]]></category>
		<category><![CDATA[Greenplum Performance Tuning]]></category>
		<category><![CDATA[Greenplum Programming]]></category>
		<category><![CDATA[Greenplum Query]]></category>
		<category><![CDATA[Greenplum Tips and Tricks]]></category>
		<category><![CDATA[parallel backup]]></category>
		<category><![CDATA[PostgreSQL 8.2]]></category>
		<category><![CDATA[Releasing pg_class lock]]></category>
		<category><![CDATA[Starting Dump process]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=4412</guid>

					<description><![CDATA[<div><img width="454" height="200" src="https://www.dbrnd.com/wp-content/uploads/2018/01/Database-Backup.png" class="attachment-post-image size-post-image wp-post-image" alt="Database Backup" decoding="async" fetchpriority="high" /></div>Greenplum is based on MPP (massively parallel processing) architecture. It built on shared nothing mode parallel processing in which all child segments own separate resources. Database Theory: What is Parallel Query Processing (Parallel Database System)? When you are taking database backup in Greenplum, it executes a backup process in different stages and executes in parallel. [&#8230;]]]></description>
										<content:encoded><![CDATA[<div><img width="454" height="200" src="https://www.dbrnd.com/wp-content/uploads/2018/01/Database-Backup.png" class="attachment-post-image size-post-image wp-post-image" alt="Database Backup" decoding="async" /></div><p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F02%2Fgreenplum-how-to-troubleshoot-running-database-backup-process-starting-dump-process-releasing-pg_class-lock%2F&amp;linkname=Greenplum%3A%20How%20to%20Troubleshoot%20running%20Database%20Backup%20Process" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F02%2Fgreenplum-how-to-troubleshoot-running-database-backup-process-starting-dump-process-releasing-pg_class-lock%2F&amp;linkname=Greenplum%3A%20How%20to%20Troubleshoot%20running%20Database%20Backup%20Process" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F02%2Fgreenplum-how-to-troubleshoot-running-database-backup-process-starting-dump-process-releasing-pg_class-lock%2F&amp;linkname=Greenplum%3A%20How%20to%20Troubleshoot%20running%20Database%20Backup%20Process" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F02%2Fgreenplum-how-to-troubleshoot-running-database-backup-process-starting-dump-process-releasing-pg_class-lock%2F&amp;linkname=Greenplum%3A%20How%20to%20Troubleshoot%20running%20Database%20Backup%20Process" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F02%2Fgreenplum-how-to-troubleshoot-running-database-backup-process-starting-dump-process-releasing-pg_class-lock%2F&amp;linkname=Greenplum%3A%20How%20to%20Troubleshoot%20running%20Database%20Backup%20Process" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F02%2Fgreenplum-how-to-troubleshoot-running-database-backup-process-starting-dump-process-releasing-pg_class-lock%2F&amp;linkname=Greenplum%3A%20How%20to%20Troubleshoot%20running%20Database%20Backup%20Process" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F02%2Fgreenplum-how-to-troubleshoot-running-database-backup-process-starting-dump-process-releasing-pg_class-lock%2F&#038;title=Greenplum%3A%20How%20to%20Troubleshoot%20running%20Database%20Backup%20Process" data-a2a-url="https://www.dbrnd.com/2018/02/greenplum-how-to-troubleshoot-running-database-backup-process-starting-dump-process-releasing-pg_class-lock/" data-a2a-title="Greenplum: How to Troubleshoot running Database Backup Process"></a></p><p>Greenplum is based on MPP (massively parallel processing) architecture. It built on shared nothing mode parallel processing in which all child segments own separate resources. </p>
<blockquote class="wp-embedded-content" data-secret="8v1oAOBKRV"><p><a href="https://www.dbrnd.com/2016/11/database-theory-what-is-parallel-query-processing-parallel-database-system/">Database Theory: What is Parallel Query Processing (Parallel Database System)?</a></p></blockquote>
<p><iframe class="wp-embedded-content" sandbox="allow-scripts" security="restricted"  src="https://www.dbrnd.com/2016/11/database-theory-what-is-parallel-query-processing-parallel-database-system/embed/#?secret=8v1oAOBKRV" data-secret="8v1oAOBKRV" width="600" height="338" title="&#8220;Database Theory: What is Parallel Query Processing (Parallel Database System)?&#8221; &#8212; Database Research &amp; Development" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe></p>
<p>When you are taking database backup in Greenplum, it executes a backup process in different stages and executes in parallel. </p>
<blockquote><p>For GP DBA, this is very important for knowing that in which machine or segment backup process is running. They may have few other questions like Is backup process completed for a master segment?, If it is completed for a master segment, in which child segment it is running currently.</p></blockquote>
<p>You can access this article for troubleshooting Greenplum running database backup process.</p>
<p><strong>You can start Greenplum full database backup using below command:</strong></p>
<pre class="crayon-plain-tag">gpcrondump -x database_name -u /home/gpadmin/dbrnd_backup/</pre> </p>
<p>It first takes a backup of the master node (all metadata or pg_catalog), while during this time you cannot perform any DDL or any other operation on Greenplum database server like CREATE TABLE, DROP TABLE, TRUNCATE TABLE.<br />
It takes only a few minutes to complete the backup of a master node.</p>
<p><strong>How can you check that, Is Greenplum database backup process running on master node?</strong></p>
<blockquote><p>The first step is to check if the message <strong>&#8220;Starting Dump process&#8221;</strong> is on the screen<br />
After this message, you can find a subsequent message <strong>&#8220;Releasing pg_class lock&#8221;</strong> that means backup process completed for master segment (meta data backup).</p></blockquote>
<blockquote><p>You can measure the time difference between &#8220;Starting Dump process&#8221; and &#8220;Releasing pg_class lock&#8221; that is the total time taken for master segment backup. </p></blockquote>
<blockquote><p>
If you are unable to find &#8220;Releasing pg_class lock&#8221; on the screen and find only &#8220;Starting Dump process&#8221; for a long time, there is 99% problem with a master segment and problem like database lock, network issue, disk failure. </p></blockquote>
<p><strong>How can we check that, Is Greenplum database backup process running on child nodes?</strong></p>
<blockquote><p>After taken a master node back up, a gp_dump command will be sent to all the segments to start a copy of the data using COPY command.</p></blockquote>
<blockquote><p>We can check the running processes in child nodes and can find COPY command and db_dumps directory in the process list. You can get the list of Linux running processes using a command: ps -ef.<br />
Below is a sample process message:</p>
<pre class="crayon-plain-tag">postgres: port 40002, gpadmin database_name [local] con808 [local] cmd880 COPY</pre>
</p></blockquote>
<p><strong>Important Note: </strong></p>
<blockquote><p>Please do not kill long running Greenplum backup from only master node because it may continue the backup process on child segments. Your one wrong kill command can fail your whole Greenplum cluster. </p></blockquote>
<p><em><br />
If you guys know how to kill long running backup in Greenplum, please share full detail with me because I am also looking for the solution for killing backup process at all child segments. </em></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>MySQL: Copy Database From One Server to Another Server (Using mysqldump)</title>
		<link>https://www.dbrnd.com/2017/11/mysql-copy-database-from-one-server-to-another-server-using-mysqldump/</link>
					<comments>https://www.dbrnd.com/2017/11/mysql-copy-database-from-one-server-to-another-server-using-mysqldump/#comments</comments>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Thu, 09 Nov 2017 16:16:45 +0000</pubDate>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[MySQL Command]]></category>
		<category><![CDATA[MySQL Database Administrator]]></category>
		<category><![CDATA[MySQL Database Designing]]></category>
		<category><![CDATA[MySQL Database Programming]]></category>
		<category><![CDATA[MySQL Error]]></category>
		<category><![CDATA[MySQL Performance Tuning]]></category>
		<category><![CDATA[MySQL Query]]></category>
		<category><![CDATA[MySQL Tips and Tricks]]></category>
		<category><![CDATA[mysqldump]]></category>
		<category><![CDATA[restore]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=6097</guid>

					<description><![CDATA[In this post, I am sharing different types of options to copy your MySQL Database from one server to another server. The migration of data, objects or database is a ubiquitous task for any DBA so as a blogger I can&#8217;t skip this kind of topics. Common and General option: Server 1: Take the backup [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F11%2Fmysql-copy-database-from-one-server-to-another-server-using-mysqldump%2F&amp;linkname=MySQL%3A%20Copy%20Database%20From%20One%20Server%20to%20Another%20Server%20%28Using%20mysqldump%29" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F11%2Fmysql-copy-database-from-one-server-to-another-server-using-mysqldump%2F&amp;linkname=MySQL%3A%20Copy%20Database%20From%20One%20Server%20to%20Another%20Server%20%28Using%20mysqldump%29" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F11%2Fmysql-copy-database-from-one-server-to-another-server-using-mysqldump%2F&amp;linkname=MySQL%3A%20Copy%20Database%20From%20One%20Server%20to%20Another%20Server%20%28Using%20mysqldump%29" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F11%2Fmysql-copy-database-from-one-server-to-another-server-using-mysqldump%2F&amp;linkname=MySQL%3A%20Copy%20Database%20From%20One%20Server%20to%20Another%20Server%20%28Using%20mysqldump%29" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F11%2Fmysql-copy-database-from-one-server-to-another-server-using-mysqldump%2F&amp;linkname=MySQL%3A%20Copy%20Database%20From%20One%20Server%20to%20Another%20Server%20%28Using%20mysqldump%29" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F11%2Fmysql-copy-database-from-one-server-to-another-server-using-mysqldump%2F&amp;linkname=MySQL%3A%20Copy%20Database%20From%20One%20Server%20to%20Another%20Server%20%28Using%20mysqldump%29" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F11%2Fmysql-copy-database-from-one-server-to-another-server-using-mysqldump%2F&#038;title=MySQL%3A%20Copy%20Database%20From%20One%20Server%20to%20Another%20Server%20%28Using%20mysqldump%29" data-a2a-url="https://www.dbrnd.com/2017/11/mysql-copy-database-from-one-server-to-another-server-using-mysqldump/" data-a2a-title="MySQL: Copy Database From One Server to Another Server (Using mysqldump)"></a></p><p>In this post, I am sharing different types of options to copy your MySQL Database from one server to another server.</p>
<p>The migration of data, objects or database is a ubiquitous task for any DBA so as a blogger I can&#8217;t skip this kind of topics. </p>
<p><strong>Common and General option:</strong></p>
<blockquote><p><strong>Server 1: Take the backup in .sql file</strong><br />
&#8211; -databases option adds the CREATE DATABASE in dump file, so that you can restore same backup in any other server without creating a blank database.</p>
<pre class="crayon-plain-tag">my-shell&gt; mysqldump --databases db_name &gt; mydump.sql</pre> </p>
<p><strong>Next, copy mydump.sql file from Server 1 to Server 2.</strong></p>
<p><strong>Server 2: Restore the backup</strong></p>
<pre class="crayon-plain-tag">my-shell&gt; mysql &lt; mydump.sql</pre>
</p></blockquote>
<p><strong>My favourite option:</strong></p>
<blockquote><p>Use pipe and copy the database from one server to another, without taking or moving the physical file. </p>
<pre class="crayon-plain-tag">mysqldump -uuser -ppassword db_name | mysql -hremoteserver -uremoteuser -premoteserverpassword</pre> </p>
<p><strong>For all database:</strong></p>
<pre class="crayon-plain-tag">mysqldump --all-databases -uuser -ppassword | mysql -hremoteserver -uremoteuser -premoteserverpassword</pre> </p>
</blockquote>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dbrnd.com/2017/11/mysql-copy-database-from-one-server-to-another-server-using-mysqldump/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>SQL Server: What is a Log Sequence Number (LSN)?</title>
		<link>https://www.dbrnd.com/2017/03/sql-server-what-is-a-log-sequence-number-lsn/</link>
					<comments>https://www.dbrnd.com/2017/03/sql-server-what-is-a-log-sequence-number-lsn/#comments</comments>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Thu, 30 Mar 2017 16:16:47 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[CheckpointLSN]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[FirstLSN]]></category>
		<category><![CDATA[LastLSN]]></category>
		<category><![CDATA[Log Sequence Number]]></category>
		<category><![CDATA[LSN]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server Administrator]]></category>
		<category><![CDATA[SQL Server Monitoring]]></category>
		<category><![CDATA[SQL Server Performance Tunning]]></category>
		<category><![CDATA[SQL Server Tips and Tricks]]></category>
		<category><![CDATA[TSQL]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=2603</guid>

					<description><![CDATA[I know this is not a new topic, but many SQL Database Administrator doesn&#8217;t know about the importance of LSNs, so I am sharing one of the important discussion about the SQL Server LSNs which are very necessary for Database backup and restore activities. What is LSN? Every record in the SQL Server transaction log [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F03%2Fsql-server-what-is-a-log-sequence-number-lsn%2F&amp;linkname=SQL%20Server%3A%20What%20is%20a%20Log%20Sequence%20Number%20%28LSN%29%3F" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F03%2Fsql-server-what-is-a-log-sequence-number-lsn%2F&amp;linkname=SQL%20Server%3A%20What%20is%20a%20Log%20Sequence%20Number%20%28LSN%29%3F" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F03%2Fsql-server-what-is-a-log-sequence-number-lsn%2F&amp;linkname=SQL%20Server%3A%20What%20is%20a%20Log%20Sequence%20Number%20%28LSN%29%3F" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F03%2Fsql-server-what-is-a-log-sequence-number-lsn%2F&amp;linkname=SQL%20Server%3A%20What%20is%20a%20Log%20Sequence%20Number%20%28LSN%29%3F" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F03%2Fsql-server-what-is-a-log-sequence-number-lsn%2F&amp;linkname=SQL%20Server%3A%20What%20is%20a%20Log%20Sequence%20Number%20%28LSN%29%3F" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F03%2Fsql-server-what-is-a-log-sequence-number-lsn%2F&amp;linkname=SQL%20Server%3A%20What%20is%20a%20Log%20Sequence%20Number%20%28LSN%29%3F" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F03%2Fsql-server-what-is-a-log-sequence-number-lsn%2F&#038;title=SQL%20Server%3A%20What%20is%20a%20Log%20Sequence%20Number%20%28LSN%29%3F" data-a2a-url="https://www.dbrnd.com/2017/03/sql-server-what-is-a-log-sequence-number-lsn/" data-a2a-title="SQL Server: What is a Log Sequence Number (LSN)?"></a></p><p><em>I know this is not a new topic, but many SQL Database Administrator doesn&#8217;t know about the importance of LSNs, so I am sharing one of the important discussion about the SQL Server LSNs which are very necessary for Database backup and restore activities.</em></p>
<p><strong>What is LSN?</strong></p>
<blockquote><p>Every record in the SQL Server transaction log is uniquely identified by a Log Sequence Number (LSN).<br />
The LSNs are sequential, and in the particular ordered, new LSN is always higher than the old LSN.<br />
The LSN is a type of Numeric(25,0), so we can compare different LSNs using equality operators.
</p></blockquote>
<p><strong>The importance of LSN:</strong></p>
<blockquote><p>Generally, when we are restoring database, we are restoring in this sequence: Full Database backup -> Differential backup -> Transaction Log backup. </p></blockquote>
<blockquote><p>We cannot restore the Differential backup before the Full database backup because LSN is sequentially starting from the full database backup. </p></blockquote>
<blockquote><p>Before restoring of the Differential backup and Transaction Log backup, it checks FirstLSN, LastLSN, CheckpointLSN, DatabaseBackupLSN columns.</p>
<p>If LastLSN of the first file and FirstLSN of the second file doesn&#8217;t match, it fails to restore Differential backup and Transaction log backup.</p></blockquote>
<p><em>The sequence of LSNs is critical to restoring your database because all different database backup files virtually connected with each other. </em></p>
<blockquote><p>The first full database backup will always have a DatabaseBackupLSN of zero and FirstLSN is same as CheckpointLSN.</p>
<p>The Full database backup CheckpointLSN is a<br />
DatabaseBackupLSN for all differential databases. </p>
<p>The LastLSN of Differential backup will be between FirstLSN and LastLSN of the Transaction Log backup.
</p></blockquote>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dbrnd.com/2017/03/sql-server-what-is-a-log-sequence-number-lsn/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>SQL Server: Have a large Database, use Striped Database Backup &#038; Restore</title>
		<link>https://www.dbrnd.com/2016/12/sql-server-improve-performance-large-database-use-striped-database-backup-restore-multiple-drive/</link>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Wed, 14 Dec 2016 19:14:27 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[restore]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server Administrator]]></category>
		<category><![CDATA[SQL Server Monitoring]]></category>
		<category><![CDATA[SQL Server Performance Tunning]]></category>
		<category><![CDATA[SQL Server Tips and Tricks]]></category>
		<category><![CDATA[striping backup and restore]]></category>
		<category><![CDATA[TSQL]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=2823</guid>

					<description><![CDATA[I have published my first guest post on www.sqlmvp.org. I have written about SQL Server Strip Database Backup and Restore for the large size of the Database. Here, You can visit this article. SQL Server: Have a large Database, use Striped Database Backup &#38; Restore &#160; &#160;]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F12%2Fsql-server-improve-performance-large-database-use-striped-database-backup-restore-multiple-drive%2F&amp;linkname=SQL%20Server%3A%20Have%20a%20large%20Database%2C%20use%20Striped%20Database%20Backup%20%26%20Restore" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F12%2Fsql-server-improve-performance-large-database-use-striped-database-backup-restore-multiple-drive%2F&amp;linkname=SQL%20Server%3A%20Have%20a%20large%20Database%2C%20use%20Striped%20Database%20Backup%20%26%20Restore" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F12%2Fsql-server-improve-performance-large-database-use-striped-database-backup-restore-multiple-drive%2F&amp;linkname=SQL%20Server%3A%20Have%20a%20large%20Database%2C%20use%20Striped%20Database%20Backup%20%26%20Restore" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F12%2Fsql-server-improve-performance-large-database-use-striped-database-backup-restore-multiple-drive%2F&amp;linkname=SQL%20Server%3A%20Have%20a%20large%20Database%2C%20use%20Striped%20Database%20Backup%20%26%20Restore" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F12%2Fsql-server-improve-performance-large-database-use-striped-database-backup-restore-multiple-drive%2F&amp;linkname=SQL%20Server%3A%20Have%20a%20large%20Database%2C%20use%20Striped%20Database%20Backup%20%26%20Restore" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F12%2Fsql-server-improve-performance-large-database-use-striped-database-backup-restore-multiple-drive%2F&amp;linkname=SQL%20Server%3A%20Have%20a%20large%20Database%2C%20use%20Striped%20Database%20Backup%20%26%20Restore" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F12%2Fsql-server-improve-performance-large-database-use-striped-database-backup-restore-multiple-drive%2F&#038;title=SQL%20Server%3A%20Have%20a%20large%20Database%2C%20use%20Striped%20Database%20Backup%20%26%20Restore" data-a2a-url="https://www.dbrnd.com/2016/12/sql-server-improve-performance-large-database-use-striped-database-backup-restore-multiple-drive/" data-a2a-title="SQL Server: Have a large Database, use Striped Database Backup &amp; Restore"></a></p><p>I have published my first guest post on www.sqlmvp.org.<br />
I have written about SQL Server Strip Database Backup and Restore for the large size of the Database.</p>
<p>Here, You can visit this article.</p>
<p><a href="http://www.sqlmvp.org/sql-server-have-a-large-database-use-striped-database-backup-restore/" target="_blank"> SQL Server: Have a large Database, use Striped Database Backup &amp; Restore </a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>PostgreSQL: Copy Database to another Server in Windows (pg_dump &#8211; backup &#038; restore)</title>
		<link>https://www.dbrnd.com/2016/11/postgresql-copy-database-from-one-server-to-another-server-in-windows-pg_dump-utility-backup-restore-psql-tool/</link>
					<comments>https://www.dbrnd.com/2016/11/postgresql-copy-database-from-one-server-to-another-server-in-windows-pg_dump-utility-backup-restore-psql-tool/#comments</comments>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Thu, 24 Nov 2016 19:58:35 +0000</pubDate>
				<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[PostgreSQL DBA Script]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[copy database]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[pg_dump]]></category>
		<category><![CDATA[plpgsql]]></category>
		<category><![CDATA[Postgres Query]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[PostgreSQL Administrator]]></category>
		<category><![CDATA[PostgreSQL Error]]></category>
		<category><![CDATA[PostgreSQL Programming]]></category>
		<category><![CDATA[PostgreSQL Tips and Tricks]]></category>
		<category><![CDATA[psql]]></category>
		<category><![CDATA[restore]]></category>
		<category><![CDATA[server]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=3907</guid>

					<description><![CDATA[In our organization, junior database developers are learning PostgreSQL, and they require a sample database from our Validation Database Server. In this scenario, Database Administrator takes PostgreSQL backup using pg_dump utility and restore that dump into the development environment. A pg_dump is a PostgreSQL utility which is used for PostgreSQL database backup and restore. Another [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F11%2Fpostgresql-copy-database-from-one-server-to-another-server-in-windows-pg_dump-utility-backup-restore-psql-tool%2F&amp;linkname=PostgreSQL%3A%20Copy%20Database%20to%20another%20Server%20in%20Windows%20%28pg_dump%20%E2%80%93%20backup%20%26%20restore%29" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F11%2Fpostgresql-copy-database-from-one-server-to-another-server-in-windows-pg_dump-utility-backup-restore-psql-tool%2F&amp;linkname=PostgreSQL%3A%20Copy%20Database%20to%20another%20Server%20in%20Windows%20%28pg_dump%20%E2%80%93%20backup%20%26%20restore%29" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F11%2Fpostgresql-copy-database-from-one-server-to-another-server-in-windows-pg_dump-utility-backup-restore-psql-tool%2F&amp;linkname=PostgreSQL%3A%20Copy%20Database%20to%20another%20Server%20in%20Windows%20%28pg_dump%20%E2%80%93%20backup%20%26%20restore%29" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F11%2Fpostgresql-copy-database-from-one-server-to-another-server-in-windows-pg_dump-utility-backup-restore-psql-tool%2F&amp;linkname=PostgreSQL%3A%20Copy%20Database%20to%20another%20Server%20in%20Windows%20%28pg_dump%20%E2%80%93%20backup%20%26%20restore%29" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F11%2Fpostgresql-copy-database-from-one-server-to-another-server-in-windows-pg_dump-utility-backup-restore-psql-tool%2F&amp;linkname=PostgreSQL%3A%20Copy%20Database%20to%20another%20Server%20in%20Windows%20%28pg_dump%20%E2%80%93%20backup%20%26%20restore%29" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F11%2Fpostgresql-copy-database-from-one-server-to-another-server-in-windows-pg_dump-utility-backup-restore-psql-tool%2F&amp;linkname=PostgreSQL%3A%20Copy%20Database%20to%20another%20Server%20in%20Windows%20%28pg_dump%20%E2%80%93%20backup%20%26%20restore%29" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F11%2Fpostgresql-copy-database-from-one-server-to-another-server-in-windows-pg_dump-utility-backup-restore-psql-tool%2F&#038;title=PostgreSQL%3A%20Copy%20Database%20to%20another%20Server%20in%20Windows%20%28pg_dump%20%E2%80%93%20backup%20%26%20restore%29" data-a2a-url="https://www.dbrnd.com/2016/11/postgresql-copy-database-from-one-server-to-another-server-in-windows-pg_dump-utility-backup-restore-psql-tool/" data-a2a-title="PostgreSQL: Copy Database to another Server in Windows (pg_dump – backup &amp; restore)"></a></p><p>In our organization, junior database developers are learning PostgreSQL, and they require a sample database from our Validation Database Server. </p>
<p>In this scenario, Database Administrator takes PostgreSQL backup using pg_dump utility and restore that dump into the development environment.</p>
<blockquote><p>A pg_dump is a PostgreSQL utility which is used for PostgreSQL database backup and restore. </p></blockquote>
<blockquote><p>Another option is, directly copy the database from one server to another server using pg_dump + psql. In this scenario, Database Administrator does not require any intermediate database backup file. </p></blockquote>
<p><em>Open your windows command prompt and go to \PostgreSQL\bin directory where you can execute and test below two different commands.<br />
</em></p>
<p><strong>Copy database from one server to another server (using, pg_dump | psql):</strong></p>
<pre class="crayon-plain-tag">pg_dump -h host1 dbname | psql -h host2 dbname</pre> </p>
<p><strong>Copy database, Using pg_dump utility for backup and restore:</strong></p>
<p><strong>Take full database backup:</strong></p>
<pre class="crayon-plain-tag">pg_dump -U username database_name &gt; filepath\backup.sql</pre> </p>
<p><strong>Restore database backup:</strong></p>
<pre class="crayon-plain-tag">pg_dump -U username database_name &lt; filepath\backup.sql</pre> </p>
<blockquote data-secret="89S6qFpLwG" class="wp-embedded-content"><p><a href="https://www.dbrnd.com/2016/09/postgresql-file-system-level-backup-to-just-copy-data-directory-fast-postgres-cluster-backup-restore/">PostgreSQL: File System Level Backup to just Copy DATA Directory</a></p></blockquote>
<p><iframe loading="lazy" class="wp-embedded-content" sandbox="allow-scripts" security="restricted"  src="https://www.dbrnd.com/2016/09/postgresql-file-system-level-backup-to-just-copy-data-directory-fast-postgres-cluster-backup-restore/embed/#?secret=89S6qFpLwG" data-secret="89S6qFpLwG" width="600" height="338" title="&#8220;PostgreSQL: File System Level Backup to just Copy DATA Directory&#8221; &#8212; Database Research &amp; Development" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dbrnd.com/2016/11/postgresql-copy-database-from-one-server-to-another-server-in-windows-pg_dump-utility-backup-restore-psql-tool/feed/</wfw:commentRss>
			<slash:comments>25</slash:comments>
		
		
			</item>
		<item>
		<title>SQL Server: Script to find all Backup History Information</title>
		<link>https://www.dbrnd.com/2016/10/sql-server-script-to-find-all-backup-history-information-to-sync-problem/</link>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Sat, 22 Oct 2016 16:16:32 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server DBA Script]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[backup history]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server Administrator]]></category>
		<category><![CDATA[SQL Server Monitoring]]></category>
		<category><![CDATA[SQL Server Performance Tunning]]></category>
		<category><![CDATA[SQL Server Tips and Tricks]]></category>
		<category><![CDATA[TSQL]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=3672</guid>

					<description><![CDATA[In this post, I am sharing a T-SQL script to find all Backups related history information of SQL Server. A Database Administrator can use this script for different types of monitoring. This script prepared such a way that, you guys can also find information about LSN (Log Sequence Number) information which helps you to identify [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F10%2Fsql-server-script-to-find-all-backup-history-information-to-sync-problem%2F&amp;linkname=SQL%20Server%3A%20Script%20to%20find%20all%20Backup%20History%20Information" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F10%2Fsql-server-script-to-find-all-backup-history-information-to-sync-problem%2F&amp;linkname=SQL%20Server%3A%20Script%20to%20find%20all%20Backup%20History%20Information" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F10%2Fsql-server-script-to-find-all-backup-history-information-to-sync-problem%2F&amp;linkname=SQL%20Server%3A%20Script%20to%20find%20all%20Backup%20History%20Information" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F10%2Fsql-server-script-to-find-all-backup-history-information-to-sync-problem%2F&amp;linkname=SQL%20Server%3A%20Script%20to%20find%20all%20Backup%20History%20Information" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F10%2Fsql-server-script-to-find-all-backup-history-information-to-sync-problem%2F&amp;linkname=SQL%20Server%3A%20Script%20to%20find%20all%20Backup%20History%20Information" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F10%2Fsql-server-script-to-find-all-backup-history-information-to-sync-problem%2F&amp;linkname=SQL%20Server%3A%20Script%20to%20find%20all%20Backup%20History%20Information" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F10%2Fsql-server-script-to-find-all-backup-history-information-to-sync-problem%2F&#038;title=SQL%20Server%3A%20Script%20to%20find%20all%20Backup%20History%20Information" data-a2a-url="https://www.dbrnd.com/2016/10/sql-server-script-to-find-all-backup-history-information-to-sync-problem/" data-a2a-title="SQL Server: Script to find all Backup History Information"></a></p><p>In this post, I am sharing a T-SQL script to find all Backups related history information of SQL Server. </p>
<blockquote><p>A Database Administrator can use this script for different types of monitoring. </p></blockquote>
<blockquote><p>This script prepared such a way that, you guys can also find information about LSN (Log Sequence Number) information which helps you to identify broken chain.</p></blockquote>
<blockquote><p>I was facing a very common issue like Database out of Sync in Log Shipping Setup. I used this script to find out backup related all history and their LSN information.  </p></blockquote>
<p>Using this script, you can find different types of information like Backup media, Type of Backup, Taken Duration.</p>
<p><strong>T-SQL Script, It returns all Backups history information:</strong></p>
<pre class="crayon-plain-tag">SELECT 
	bs.database_name AS DatabaseName
	,CASE bs.type
		WHEN 'D' THEN 'Full'
		WHEN 'I' THEN 'Differential'
		WHEN 'L' THEN 'Transaction Log'
	END AS BackupType
	,CAST(DATEDIFF
		(SECOND,bs.backup_start_date,bs.backup_finish_date) 
		AS VARCHAR(4)) + ' ' + 'Seconds' AS TotalTimeTaken
	,bs.backup_start_date AS BackupStartDate
	,CAST(bs.first_lsn AS VARCHAR(50)) AS FirstLSN
	,CAST(bs.last_lsn AS VARCHAR(50)) AS LastLSN
	,bmf.physical_device_name AS PhysicalDeviceName
	,CAST(CAST(bs.backup_size / 1000000 AS INT) AS VARCHAR(14)) 
		+ ' ' + 'MB' AS BackupSize
	,bs.server_name AS ServerName
	,bs.recovery_model AS RecoveryModel
FROM msdb.dbo.backupset AS bs
INNER JOIN msdb.dbo.backupmediafamily AS bmf
	ON bs.media_set_id = bmf.media_set_id
WHERE bs.database_name = 'Your_Database_Name'
ORDER BY 
	backup_start_date DESC
	,backup_finish_date</pre> </p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>SQL Server 2012: All Database and Log backups using PowerShell</title>
		<link>https://www.dbrnd.com/2016/09/sql-server-2012-all-database-and-log-backups-using-powershell/</link>
					<comments>https://www.dbrnd.com/2016/09/sql-server-2012-all-database-and-log-backups-using-powershell/#comments</comments>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Sun, 18 Sep 2016 16:16:51 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server DBA Script]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[Backup-SqlDatabase]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server Administrator]]></category>
		<category><![CDATA[SQL Server Monitoring]]></category>
		<category><![CDATA[SQL Server Performance Tunning]]></category>
		<category><![CDATA[SQL Server Tips and Tricks]]></category>
		<category><![CDATA[TSQL]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=2566</guid>

					<description><![CDATA[In this post, I am going share scripts to take all database and log backups using SQL Server PowerShell. Using T-SQL, we can also take all databases backup using one single script, but some of the Database Administrators like to perform this kind of task using PowerShell because sometimes it is much faster and it [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F09%2Fsql-server-2012-all-database-and-log-backups-using-powershell%2F&amp;linkname=SQL%20Server%202012%3A%20All%20Database%20and%20Log%20backups%20using%20PowerShell" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F09%2Fsql-server-2012-all-database-and-log-backups-using-powershell%2F&amp;linkname=SQL%20Server%202012%3A%20All%20Database%20and%20Log%20backups%20using%20PowerShell" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F09%2Fsql-server-2012-all-database-and-log-backups-using-powershell%2F&amp;linkname=SQL%20Server%202012%3A%20All%20Database%20and%20Log%20backups%20using%20PowerShell" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F09%2Fsql-server-2012-all-database-and-log-backups-using-powershell%2F&amp;linkname=SQL%20Server%202012%3A%20All%20Database%20and%20Log%20backups%20using%20PowerShell" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F09%2Fsql-server-2012-all-database-and-log-backups-using-powershell%2F&amp;linkname=SQL%20Server%202012%3A%20All%20Database%20and%20Log%20backups%20using%20PowerShell" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F09%2Fsql-server-2012-all-database-and-log-backups-using-powershell%2F&amp;linkname=SQL%20Server%202012%3A%20All%20Database%20and%20Log%20backups%20using%20PowerShell" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F09%2Fsql-server-2012-all-database-and-log-backups-using-powershell%2F&#038;title=SQL%20Server%202012%3A%20All%20Database%20and%20Log%20backups%20using%20PowerShell" data-a2a-url="https://www.dbrnd.com/2016/09/sql-server-2012-all-database-and-log-backups-using-powershell/" data-a2a-title="SQL Server 2012: All Database and Log backups using PowerShell"></a></p><p>In this post, I am going share scripts to take all database and log backups using SQL Server PowerShell.</p>
<p>Using T-SQL, we can also take all databases backup using one single script, but some of the Database Administrators like to perform this kind of task using PowerShell because sometimes it is much faster and it is executing from outside of the SQL Server.</p>
<blockquote><p>SQL Server 2012 cmdlet introduced a new command to take database backups and the command name is &#8220;Backup-SqlDatabase&#8221;.</p></blockquote>
<p><strong>Execute below command in PowerShell to get the help of &#8220;Backup-SqlDatabase&#8221;:</strong></p><pre class="crayon-plain-tag">help Backup-SqlDatabase -full</pre><p>
<strong>PowerShell script to take all database backups:</strong><br />
Generating file name with the date.</p><pre class="crayon-plain-tag">$BackupDate = Get-Date -Format MMddyy
foreach($database in (Get-ChildItem)) { 
$dbName = $database.Name
$bakFilePath = "C:\temp\" + $dbName + "_" + $BackupDate + ".bak"
Backup-SqlDatabase -Database $dbName -BackupFile $bakFilePath -Initialize }</pre><p>
<strong>PowerShell script to take all database log backups:</strong><br />
Generating file name with the date.</p><pre class="crayon-plain-tag">$BackupDate = Get-Date -Format MMddyy_hhmm
foreach($database in (Get-ChildItem)) {
$dbName = $database.Name
$trnFilePath = "C:\temp\" + $dbName + "_" + $BackupDate + ".trn"
Backup-SqlDatabase -Database $dbName -BackupAction Log -BackupFile $trnFilePath -Initialize}</pre><p>
<a href="https://www.dbrnd.com/wp-content/uploads/2016/04/SQLServerPowerShellDatabaseBackup.png" rel="attachment wp-att-2573"><img loading="lazy" decoding="async" class="alignnone wp-image-2573 size-full" title="SQL Server PowerShell Database Backup" src="https://www.dbrnd.com/wp-content/uploads/2016/04/SQLServerPowerShellDatabaseBackup.png" alt="SQL Server PowerShell Database Backup" width="667" height="205" srcset="https://www.dbrnd.com/wp-content/uploads/2016/04/SQLServerPowerShellDatabaseBackup.png 667w, https://www.dbrnd.com/wp-content/uploads/2016/04/SQLServerPowerShellDatabaseBackup-300x92.png 300w, https://www.dbrnd.com/wp-content/uploads/2016/04/SQLServerPowerShellDatabaseBackup-150x46.png 150w" sizes="auto, (max-width: 667px) 100vw, 667px" /></a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dbrnd.com/2016/09/sql-server-2012-all-database-and-log-backups-using-powershell/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>PostgreSQL: Generate full Database Script using PGAdmin Tool</title>
		<link>https://www.dbrnd.com/2016/09/postgresql-generate-full-database-script-using-pgadmin-tool-schema-data-script-plain-text-backup-option/</link>
					<comments>https://www.dbrnd.com/2016/09/postgresql-generate-full-database-script-using-pgadmin-tool-schema-data-script-plain-text-backup-option/#comments</comments>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Mon, 05 Sep 2016 19:18:19 +0000</pubDate>
				<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[Database Full Script]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[migration]]></category>
		<category><![CDATA[PLAIN Text Backup]]></category>
		<category><![CDATA[plpgsql]]></category>
		<category><![CDATA[Postgres Query]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[PostgreSQL Administrator]]></category>
		<category><![CDATA[PostgreSQL Error]]></category>
		<category><![CDATA[PostgreSQL Programming]]></category>
		<category><![CDATA[PostgreSQL Tips and Tricks]]></category>
		<category><![CDATA[SQL Script]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=3590</guid>

					<description><![CDATA[Before few days back, One of the SQL Server Developer asked me this question. How to generate full database schema script or data script in PostgreSQL? In PostgreSQL, We can also generate Database full script using Backup Option of PGAdmin tool. When we require to create a fresh database without data, mostly we require to [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F09%2Fpostgresql-generate-full-database-script-using-pgadmin-tool-schema-data-script-plain-text-backup-option%2F&amp;linkname=PostgreSQL%3A%20Generate%20full%20Database%20Script%20using%20PGAdmin%20Tool" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F09%2Fpostgresql-generate-full-database-script-using-pgadmin-tool-schema-data-script-plain-text-backup-option%2F&amp;linkname=PostgreSQL%3A%20Generate%20full%20Database%20Script%20using%20PGAdmin%20Tool" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F09%2Fpostgresql-generate-full-database-script-using-pgadmin-tool-schema-data-script-plain-text-backup-option%2F&amp;linkname=PostgreSQL%3A%20Generate%20full%20Database%20Script%20using%20PGAdmin%20Tool" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F09%2Fpostgresql-generate-full-database-script-using-pgadmin-tool-schema-data-script-plain-text-backup-option%2F&amp;linkname=PostgreSQL%3A%20Generate%20full%20Database%20Script%20using%20PGAdmin%20Tool" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F09%2Fpostgresql-generate-full-database-script-using-pgadmin-tool-schema-data-script-plain-text-backup-option%2F&amp;linkname=PostgreSQL%3A%20Generate%20full%20Database%20Script%20using%20PGAdmin%20Tool" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F09%2Fpostgresql-generate-full-database-script-using-pgadmin-tool-schema-data-script-plain-text-backup-option%2F&amp;linkname=PostgreSQL%3A%20Generate%20full%20Database%20Script%20using%20PGAdmin%20Tool" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F09%2Fpostgresql-generate-full-database-script-using-pgadmin-tool-schema-data-script-plain-text-backup-option%2F&#038;title=PostgreSQL%3A%20Generate%20full%20Database%20Script%20using%20PGAdmin%20Tool" data-a2a-url="https://www.dbrnd.com/2016/09/postgresql-generate-full-database-script-using-pgadmin-tool-schema-data-script-plain-text-backup-option/" data-a2a-title="PostgreSQL: Generate full Database Script using PGAdmin Tool"></a></p><p>Before few days back, One of the SQL Server Developer asked me this question.<br />
How to generate full database schema script or data script in PostgreSQL?</p>
<blockquote><p>In PostgreSQL, We can also generate Database full script using Backup Option of PGAdmin tool.<br />
When we require to create a fresh database without data, mostly we require to generate Database Schema Script.<br />
We have one PLAIN text database backup type in PostgreSQL, which creates .sql file including Schema + Data.</p></blockquote>
<p><strong>Below are screenshots to generate Database Script using PGAdmin Tool:</strong></p>
<p><strong>Step 1:</strong><br />
Right click on the database and select backup option.<br />
In backup dialog box, select PLAIN backup type and give a file name.</p>
<p><img loading="lazy" decoding="async" class="wp-image-3595 size-full aligncenter" title="Postgresql Plain Text Backup" src="https://www.dbrnd.com/wp-content/uploads/2016/09/PostgresqlPlainTextBackup.png" alt="Postgresql Plain Text Backup" width="437" height="426" srcset="https://www.dbrnd.com/wp-content/uploads/2016/09/PostgresqlPlainTextBackup.png 437w, https://www.dbrnd.com/wp-content/uploads/2016/09/PostgresqlPlainTextBackup-300x292.png 300w, https://www.dbrnd.com/wp-content/uploads/2016/09/PostgresqlPlainTextBackup-150x146.png 150w" sizes="auto, (max-width: 437px) 100vw, 437px" /></p>
<p><strong>Step 2: </strong><br />
Default PLAIN text backup included both Database Schema + Data script.<br />
In case of any changes, go to dump option tab and select data or schema only.</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-3596 size-full" title="Postgresql Plain Data Schema Option" src="https://www.dbrnd.com/wp-content/uploads/2016/09/PostgresqlPlainDataSchemaOption.png" alt="Postgresql Plain Data Schema Option" width="435" height="423" srcset="https://www.dbrnd.com/wp-content/uploads/2016/09/PostgresqlPlainDataSchemaOption.png 435w, https://www.dbrnd.com/wp-content/uploads/2016/09/PostgresqlPlainDataSchemaOption-300x292.png 300w, https://www.dbrnd.com/wp-content/uploads/2016/09/PostgresqlPlainDataSchemaOption-150x146.png 150w" sizes="auto, (max-width: 435px) 100vw, 435px" /></p>
<p><strong>Step 3: </strong><br />
If you want to filter your objects, go to object tab and check or unchecked objects from the list.</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-3597 size-full" title="Postgresql Plain Backup Object Selection" src="https://www.dbrnd.com/wp-content/uploads/2016/09/PostgresqlPlainBackupObjectSelection.png" alt="Postgresql Plain Backup Object Selection" width="436" height="429" srcset="https://www.dbrnd.com/wp-content/uploads/2016/09/PostgresqlPlainBackupObjectSelection.png 436w, https://www.dbrnd.com/wp-content/uploads/2016/09/PostgresqlPlainBackupObjectSelection-300x295.png 300w, https://www.dbrnd.com/wp-content/uploads/2016/09/PostgresqlPlainBackupObjectSelection-150x148.png 150w" sizes="auto, (max-width: 436px) 100vw, 436px" /></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dbrnd.com/2016/09/postgresql-generate-full-database-script-using-pgadmin-tool-schema-data-script-plain-text-backup-option/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
			</item>
	</channel>
</rss>
