what does "barman cron" do?

3,799 views
Skip to first unread message

foobar...@googlemail.com

unread,
May 8, 2014, 8:27:54 AM5/8/14
to pgba...@googlegroups.com
root@srv-007:/home/users/tuser# barman cron
Processing xlog segments for btest
    no file found
root@srv-007:/home/users/tuser# barman -v 
1.3.2
root@srv-007:/home/users/tuser# barman -h
usage: barman [-h] [-v] [-c CONFIG] [-q] [-d] [-f {console}]
             
              {cron,list-server,show-server,status,check,diagnose,backup,list-backup,show-backup,list-files,recover,delete,rebuild-xlogdb}
              ...

positional arguments:
  {cron,list-server,show-server,status,check,diagnose,backup,list-backup,show-backup,list-files,recover,delete,rebuild-xlogdb}
    cron                Run maintenance tasks
    list-server         List available servers, with useful information
    show-server         Show all configuration parameters for the specified
                        servers
    status              Shows live information and status of the PostgreSQL
                        server
    check               Check if the server configuration is working. This
                        command returns success if every checks pass, or
                        failure if any of these fails
    diagnose            Diagnostic command (for support and problems detection
                        purpose)
    backup              Perform a full backup for the given server
    list-backup         List available backups for the given server (supports
                        'all')
    show-backup         This method shows a single backup information
    list-files          List all the files for a single backup
    recover             Recover a server at a given time or xid
    delete              Delete a backup
    rebuild-xlogdb      Rebuild the WAL file database guessing it from the
                        disk content.

optional arguments:
  -h, --help            show this help message and exit
  -v, --version         show program's version number and exit
  -c CONFIG, --config CONFIG
                        uses a configuration file (defaults: ~/.barman.conf,
                        /etc/barman.conf, /etc/barman/barman.conf)
  -q, --quiet           be quiet (default: False)
  -d, --debug           debug output (default: False)
  -f {console}, --format {console}
                        output format (default: console)
root@srv-007:/home/users/tuser#

The Ubuntu man page says only:

cron
           Perform maintenance tasks, such as moving incoming WAL files to the
           appropriate directory.
          
What is it for example?
Can that be useed to run backup once a Day/ week ? ....

Regards,
Basti

Giulio Calacoci

unread,
May 8, 2014, 9:29:18 AM5/8/14
to pgba...@googlegroups.com
Hi,

as stated into the man, cron perform maintenance operations, not backup.

Some operations performed by cron:
 * compressing WAL files
 * WAL files archiviation (from incoming directory to the archived directory)
 * execution of retention policies
 * execution of pre and post archive scripts

It's called cron because is something you should run periodically using a cron script.

what you are looking for is barman backup executed through a daily / weekly / monthly cron script.

I suggest you to look at the online documentation here: http://docs.pgbarman.org/

There you can also find some examples on how to configure and use barman.

Regards.

Giulio.
--
--
You received this message because you are subscribed to the "Barman for PostgreSQL" group.
To post to this group, send email to pgba...@googlegroups.com
To unsubscribe from this group, send email to
pgbarman+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/pgbarman?hl=en?hl=en-GB

---
You received this message because you are subscribed to the Google Groups "Barman, Backup and Recovery Manager for PostgreSQL" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pgbarman+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


-- 
 Giulio Calacoci - 2ndQuadrant Italia
 PostgreSQL Training, Services and Support
 giulio....@2ndQuadrant.it | www.2ndQuadrant.it 
Reply all
Reply to author
Forward
0 new messages