base dir

PostgreSQL is the database server used to store information. Do you have a question or are you having problem with PostgreSQL? If so, post them here.

Moderator: Moderators

base dir

Postby pr1mo » Fri Nov 27, 2009 10:27 pm

if i have some old db's that are taking up for example 100GB each. i hardly ever use them but i want to still access them possibly in the future. if my hd is running out of space and i want to put more db's into it still can I move out the files inside the numbered db folder inside postgres\data\base onto a dif drive and when i want to access db then i move back into the dir and load up pt db?

so basically question is if i move files out and then at a later date move them back in do i damage db at all?
pr1mo
 
Posts: 192
Joined: Tue Apr 29, 2008 10:22 pm

Re: base dir

Postby kraada » Sat Nov 28, 2009 10:05 am

Moving files manually out of your PostgreSQL base directory will not work well. The best thing to do is to upgrade to Beta 29.1 and use the Backup function there. Backup the database you want to get rid of, then delete it. You can zip up the backup file as that will save a lot of space (it should shrink by 90%+), and then restore the file later if you so desire.
kraada
Moderator
 
Posts: 54431
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: base dir

Postby pr1mo » Mon Nov 30, 2009 6:49 pm

ran a backup with 29.1 and tried saving file on 2 dif hard drives. one had 260gigs free and other had 560gigs free and the db was definitely not bigger than that. got an error both times saying: pg_dump: [tar archiver] archive member too large for tar format
pr1mo
 
Posts: 192
Joined: Tue Apr 29, 2008 10:22 pm

Re: base dir

Postby pr1mo » Mon Nov 30, 2009 7:14 pm

just tried a lot smaller db and got same thing too
pr1mo
 
Posts: 192
Joined: Tue Apr 29, 2008 10:22 pm

Re: base dir

Postby WhiteRider » Tue Dec 01, 2009 5:16 am

PT3's built-in backup doesn't compress the backups (although it may use tar internally I guess).
Please enable logging, restart PT3 and run the backup again and report your problem so that we can investigate.
The backup process is being re-worked for the next release, though, to make things easier so it will hopefully avoid any of these kind of issues.
You could backup your databases with PGAdmin instead - click here for directions.
WhiteRider
Moderator
 
Posts: 54018
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: base dir

Postby pr1mo » Tue Dec 01, 2009 4:18 pm

tried it again after a restart and got same pop up. created ticket. ticket_id=75688
pr1mo
 
Posts: 192
Joined: Tue Apr 29, 2008 10:22 pm

Re: base dir

Postby WhiteRider » Wed Dec 02, 2009 5:32 am

Thanks - we'll get back to you via your ticket.
WhiteRider
Moderator
 
Posts: 54018
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK


Return to PostgreSQL [Read Only]

Who is online

Users browsing this forum: No registered users and 30 guests

cron
highfalutin