Re: How I can automate postgres DB backing up?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2007-11-05 at 20:14 +0700, Strong wrote:
> I have several DBs in single claster. When I make
> 
> pg_dumpall -U postgres >file
> 
> it asks me for password exact times the number DBs I have. Even to do
> that manualy, it sucks. But I want to go even farther: how I can
> automate the process to put into cron?
----
man psql

When the defaults aren’t quite right, you can save yourself some typing
by setting the environment variables  PGDATABASE,  PGHOST, PGPORT
and/or  PGUSER to appropriate values. (For additional environment
variables, see the documentation.) It is also convenient to have a
~/.pgpass file to avoid regularly having to type in passwords. See the
documentation for more information.

If you don't know how to create bash script files and add scripts to
cron, download webmin as it can set this all up for you quite easily.

http://www.webmin.com

Craig

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux