0

im working in a netbeans project and i need to save the data from a postgreSQL every day, so i can send it to a secure folder in the network.

Is there anyway to do that, save the data or the entire database (Script + Data).

Software: Netbeans JDK 6 , postgreSQL 9.4

5
  • 1
    postgresql.org/docs/current/static/app-pgdump.html Commented Apr 21, 2015 at 13:36
  • There is no api to do that ?? I need to exec a command ? Commented Apr 21, 2015 at 13:45
  • How is Netbeans specific to your question? What is the task? Do you want to backup your database during your development within Netbeans or do you want to backup your application database in your java application? Commented Apr 21, 2015 at 13:49
  • possible duplicate of How to do a backup from a Postgresql-DB via JDBC? Commented Apr 21, 2015 at 13:54
  • Nice solution too, i think both solutions can work. I will pick the one that fits thanks guys Commented Apr 21, 2015 at 14:02

1 Answer 1

0

I'd look into a scheduled backup for your db, and version control for your code

Sign up to request clarification or add additional context in comments.

2 Comments

Big thanks that´s what i needed. Didn´t know that PostgreSQL can make schedule backups.
@epicUT It is not PostgreSQL, but your OS which provides some kind of scheduler, e.g. cron (Linux) or task scheduler (Windows).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.