Skip to content

Commit

Permalink
Merge pull request #13 from lucascbeyeler/patch-01
Browse files Browse the repository at this point in the history
Patch to modify the documentation
  • Loading branch information
lucascbeyeler authored Mar 14, 2017
2 parents 67951b3 + 0065a98 commit 3f85f2f
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 5 deletions.
32 changes: 30 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ Requirements
* GNU Parallel - a shell tool for executing jobs in parallel using one or more CPU;
* cURL - a command line tool and library for transferring data with URL syntax;
* GNU grep - a command-line utility for searching plain-text data sets for lines matching a regular expression;
* date - command used to print out, or change the value of, the system's time and date information.
* date - command used to print out, or change the value of, the system's time and date information;
* cron - a time-based job scheduler in Unix-like computer operating systems.

Instalation
------------
Expand All @@ -34,9 +35,36 @@ Enter inside the folder zmbackup and execute the script install.sh. Follow the i

```
$ zmbackup -v
zmbackup version: 1.0.0 Release Candidate 2
zmbackup version: 1.0.1
```

Open the folder /etc/cron.d/zmbackup.cron and adjust the time of each job scheduled to the time you want the execution. If you configured zmbkpose or any old release before, please undo and use this file for backup scheduling
````
$ vim /etc/cron.d/zmbackup.cron
###############################################################################
# ZMBACKUP CRON FILE #
###############################################################################
# This file is used to manage the time and day each backup activity will be
# executed. Please modify this file rather than create a new one.
# Default values for each activity:
# Full Backup: Every Sunday at 1 AM
# Incremental Backup: From Monday to Saturday at 1 AM
# Alias: Every day at 1 AM
# Distribution List: Every day at 1 AM
# Backup Rotation: Every day at Midnight
###############################################################################
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin
MAILTO=root
0 1 * * 0 zimbra zmbackup -f
0 1 * * 1-6 zimbra zmbackup -i
0 1 * * * zimbra zmbackup -f -dl
0 1 * * * zimbra zmbackup -f -al
0 0 * * * zimbra zmhousekeep
````

Keep in mind that the script zmhousekeep is the one who is going to rotate your backups inside the folder, and do the cleaning inside each folder. Configure him to execute before the zmbackup proccess, because release the space for the next proccess, and is more quickly than the others.

Documentation
------------

Expand Down
4 changes: 2 additions & 2 deletions src/zmbackup
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
################################################################################
# zmbackup:
#
# 29/01/2017 - Version 1.0 - By Lucas Costa Beyeler
# 13/03/2017 - Version 1.0.1 - By Lucas Costa Beyeler
# <[email protected]>
# <[email protected]>
################################################################################
Expand Down Expand Up @@ -528,7 +528,7 @@ case "$1" in
show_help
;;
"-v"|"--version" )
echo "zmbackup version: 1.0.0"
echo "zmbackup version: 1.0.1"
;;
* )
show_help
Expand Down
2 changes: 1 addition & 1 deletion src/zmbackup-share/zmbackup-validate-config-file
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
################################################################################
# zmbackup-validate-config-file:
#
# 29/01/2017 - Version 1.0 - By Lucas Costa Beyeler
# 13/03/2017 - Version 1.0.1 - By Lucas Costa Beyeler
# <[email protected]>
# <[email protected]>
################################################################################
Expand Down

0 comments on commit 3f85f2f

Please sign in to comment.