We help IT Professionals succeed at work.

PostgreSQL database backup excluding one table

szczecin
szczecin asked
on
2,106 Views
Last Modified: 2010-05-18
Hi
I need to exclude one table from backup. Now i'm using pg_dump.exe to dump database. Command for doing this looks like that :

e:\PostgreSQL\8.1\bin\pg_dump.exe -i -h localhost -p 5432 -U postgres -F c -b -v  -f e:\postgres_backup\date\file_name.backup database_name

I was googling for this and i have found --exclude-table=TABLE_NAME command argument but pg_dump.exe claims  that --exclude-table=TABLE_NAME is not recognized. (i add it to the end of whole command ---> e:\PostgreSQL\8.1\bin\pg_dump.exe -i -h localhost -p 5432 -U postgres -F c -b -v  -f e:\postgres_backup\date\file_name.backup database_name --exclude-table=TABLE_NAME).

This table includes images and takes over 800MB disk space each backup - made every 4 hours - it takes 3GB every day. This is not so important data in this table that's why i want to backup it only once per week.

Postgres 8.1.11 on Windows Server 2003 R2 Standard x64 Edition SP2

Any sugestions would be appreciated.
Comment
Watch Question

Author

Commented:
Looking for manuals gave me 99,9% that this is not possible at 8.1 version - has to be updated at least up to  8.2 version but i'm still waiting maybe someone has other solution for this issue.
Top Expert 2015
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
I have found it too ... only problem is that this method cannot be used at 8.1 version ... I'm looking for similar resolution for -T option in v.8.3 but usable for v8.1

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.