• Save
Backup And Restore NGL Database
Upcoming SlideShare
Loading in...5
×

Like this? Share it with your network

Share

Backup And Restore NGL Database

  • 3,198 views
Uploaded on

The slides presents the procedure of taking Backup and Restore the NewGenLib database.

The slides presents the procedure of taking Backup and Restore the NewGenLib database.

More in: Education , Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
3,198
On Slideshare
3,166
From Embeds
32
Number of Embeds
5

Actions

Shares
Downloads
0
Comments
0
Likes
1

Embeds 32

http://localhost 23
http://koshys-ngl 6
http://127.0.0.1 1
http://www.docshut.com 1
http://www.slidesearchengine.com 1

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. HOW TO TAKE A BACKUP & RESTORE THE NGL DATABASE By Ashok Kumar Satapathy, Asst. Librarian, Dept. Head, Bhubaneswar Institute of Technology, (BIT), Bhubaneswar, e-mail:ashoksatapathy@yahoo.com, designed on: 30.09.2009. Go to Start then Programs then PostgreSQL.8.1 and click on pgAdmin III. Close “tips of the day”. Double click on PostgreSQL Database Server 8.1 (localhost:5432). Connect to Server, window will appear, please enter the password “newgenlib” then click on OK Page 1 of 8
  • 2. There is a database named as newgenlib as shown below: Right click on the newgenlib database and refresh. Again right click on the newgenlib database and click on backup. Enter the file name (for example ngl30.12.2009). Then select the location to store (for that click on three dotted button “…”) and click on OK. Page 2 of 8
  • 3. The process of backup will take some time (it will depend on the database size) then click on Done. The process is end. Take a backup of C:/NewGenLibfiles directory. The literature said something different, but we can do the backup as well restoration of database as I have demonstrated. Page 3 of 8
  • 4. For restoration backup database: Go to Start then Programs then PostgreSQL.8.1 and click on pgAdmin III. Close tips of the day. Double click on PostgreSQL Database Server 8.1 (localhost:5432). Connect to Server window will appear, please enter the password “newgenlib” then click on OK Page 4 of 8
  • 5. There is a database named as “newgenlib” as shown below: Right click on the newgenlib database and refresh Then double click on Schemas, then on public & Tables. Then select all tables, right click and select Delete/drop or else Drop cascaded. By this process we delete all the tables from the database. Page 5 of 8
  • 6. It looks like the following picture: Then right click on the “newgenlib” database and click on restore Please use the “…” three dotted buttons to select the backup file. Here the backup file name is “ngl30.12.2009”. Page 6 of 8
  • 7. Then click on OK and close the window. The process is over. Start the NewGenLib server and Go to the Launch newgenlib interface and enter your password and see your database was restored as below: Page 7 of 8
  • 8. Supported Literature 1. How to take a backup of my database? 1. Click on Start -> Programs -> PostgreSQL 8.0 -> pgAdmin III. This will open pgAdmin III screen. 2. On the left hand side of the screen you will find a tree structure, in which you will find server Servers, under servers you'll find PostgresSQL Database server server 8.0, with a right cross mark. Double click on that. 3. The system will prompt for the password. Please enter password there. 4. Once the password is validated successfully, you'll find Databases, and under databases you'll find a database named newgenlib. If you are unable to find the database named newgenlib, please contact NewGenLib Customer Support. 5. Now select the database newgenlib, right click and click on refresh. Now again right click and click on Backup. 6. Now the system will ask for backup file name, enter the backup file name or use can use the three dotted button beside the file name to use the file dialog to assist you in creating the file name at the desired location. 7. Now click on Ok button. This operation will take some time. Time taken depends on the size of the database. Once the backup has been taken, please click on Done button. 8. Now you may verify whether the backup file has been created at the desired location. 9. Please preserve this backup file. 10. Take a backup of C:/NewGenLibFiles directory. 11. Take a backup of all directories mentioned in your C:/NewGenLibFiles/SystemFiles/Env_var.txt file. 2. How to restore back database? 1. Click on Start -> Programs -> PostgreSQL 8.0 -> pgAdmin III. This will open pgAdmin III screen. 2. On the left hand side of the screen you will find a tree structure, in which you will find server Servers, under servers you'll find PostgresSQL Database server server 8.0, with a right cross mark. Double click on that. 3. The system will prompt for the password. Please enter password there. 4. Once the password is validated successfully, you'll find Databases. Right click on databases and click on New database. In New database dialog please enter these parameters mentioned below. Parameters other than mentioned below, should be left as they are. Name: newgenlib Owner: postgres Tablespace: pg_default And click on the Ok button 5. Now select the database newgenlib, right click and click on refresh. Now go to newgenlib->Schemas->public->Tables. You can see there are 4 tables, select each table right click and select Delete/drop. All the 4 tables should be Deleted. 6. Select newgenlib, right click and click on Restore. 7. Now the system will ask for restore file name, enter the restore file name or use can use the three dotted button beside the file name to use the file dialog to assist you in selecting the file name at the desired location. Now click on Ok button. 8. This operation will take some time. Time taken depends on the size of the database. Once the database restores, please click on Done button. Page 8 of 8