init
This commit is contained in:
79
etc/baka/entries/entry.example
Normal file
79
etc/baka/entries/entry.example
Normal file
@ -0,0 +1,79 @@
|
||||
# This is an entry. This is part of the configuration of the "baka"
|
||||
# backup software. Here you can set the parameters for backuping the
|
||||
# requred data set. See examples below.
|
||||
#
|
||||
# See `man baka` for more info or visit http://nixhacks.net/baka
|
||||
|
||||
# Destination dir.
|
||||
#
|
||||
# This is this required parameter. It will be used if the `local`
|
||||
# parameter is not specified in main.conf. You can specify it only
|
||||
# once in an entry.
|
||||
#
|
||||
# This is the only required parameter. And the only one that can be
|
||||
# specified only once. In addition to the destination folder, at
|
||||
# least one variable with data must be specified. See below.
|
||||
dest = /home/user/backups
|
||||
|
||||
# Files or directories to backup.
|
||||
#
|
||||
# Syntax:
|
||||
# files = /path
|
||||
#
|
||||
# Also you can do this:
|
||||
# files = /path/1 path/2
|
||||
#
|
||||
# You can add the `files` variable as many times as you like.
|
||||
files = /var/www/html
|
||||
|
||||
# Exclusions.
|
||||
#
|
||||
# This parameter is in addition to the `files` parameter. With its
|
||||
# help you can specify which files or folders should be excluded
|
||||
# from the backup.
|
||||
#
|
||||
# Syntax:
|
||||
# List files and folders separated by commas without spaces on
|
||||
# one line:
|
||||
# exclude = env,logs,__pycache__
|
||||
#
|
||||
# Or split them into multiple lines:
|
||||
# exclude = env
|
||||
# exclude = logs
|
||||
# exclude = __pycache__
|
||||
exclude = env,logs,__pycache__
|
||||
|
||||
# Databases.
|
||||
#
|
||||
# baka can dump MariaDB/MySQL (shortcut 'mysql') and PostgreSQL
|
||||
# (shortcut 'postgres') databases.
|
||||
#
|
||||
# Syntax:
|
||||
# [dmbs] = host:port:database:user:password
|
||||
#
|
||||
# For example:
|
||||
# postgres = localhost:5432:mydb:user:password
|
||||
#
|
||||
# You can use shortened syntax too (use standart host and port):
|
||||
# [dmbs] = host:database:user:password
|
||||
# [dmbs] = database:user:password
|
||||
#
|
||||
# NOTE: that due to the nature of the parser, colons and hash
|
||||
# characters cannot be used in the database password.
|
||||
#mysql = localhost:port:database:user:password
|
||||
#postgres = localhost:port:database:user:password
|
||||
|
||||
# Commands.
|
||||
#
|
||||
# In addition to files and databases, baka can execute an
|
||||
# arbitrary Bash command for you.
|
||||
#
|
||||
# For example:
|
||||
# command = echo "Hello, World!"
|
||||
#
|
||||
# This feature is disabled by default and must be added in
|
||||
# the main config.
|
||||
# DON'T USE UNTRUSTED COMMANDS IN ENTRY!
|
||||
# This feature is pottentially dangerous. Make sure that access
|
||||
# to the entries is restricted.
|
||||
#command = echo "Are you sure you want to enable it?"
|
69
etc/baka/main.conf
Normal file
69
etc/baka/main.conf
Normal file
@ -0,0 +1,69 @@
|
||||
# Log file. Default: /var/log/baka
|
||||
log = /var/log/baka
|
||||
|
||||
# Datetime format in log file. See 'man date'.
|
||||
log_df = %d %b %Y %T %z
|
||||
|
||||
# Log format.
|
||||
#
|
||||
# Syntax:
|
||||
# %time
|
||||
# will be replaced with 'log_df' formatted datetime.
|
||||
# %log
|
||||
# will be replaced with log string.
|
||||
#
|
||||
# Result for this example:
|
||||
# [21 Jul 2021 22:53:56 +0300] Backup [Started]
|
||||
log_format = [%time] %log
|
||||
|
||||
# Datetime format. See 'man date'.
|
||||
# This datetime is used for filenames. Example:
|
||||
# backup_myfiles_20210722-2110.tar.gz
|
||||
df = %Y%m%d-%H%M
|
||||
|
||||
# Archive name format.
|
||||
#
|
||||
# Syntax:
|
||||
# %type
|
||||
# 'backup' for files or 'dump' for databases.
|
||||
# %name
|
||||
# directory or database name.
|
||||
# %time
|
||||
# datetime formatted by 'df' option.
|
||||
#
|
||||
# Examples:
|
||||
# backup_myfiles_20210722-2110.tar.gz
|
||||
# dump_mydb_20210722-2110.sql.gz
|
||||
nf = %type_%name_%time
|
||||
|
||||
# Allow comand executing.
|
||||
#
|
||||
# Default: false
|
||||
#
|
||||
# IT IS POTTENTIALLY DANGEROUS!
|
||||
allow_commands = false
|
||||
|
||||
# Remote storage configuration.
|
||||
#
|
||||
# Remote tranport. Can be 'rsync', 's3' or 'none'.
|
||||
remote = none
|
||||
|
||||
# URI for connection via rsync.
|
||||
#ssh_uri = user@server:/path
|
||||
|
||||
# SSH port on remote server. Default: 22
|
||||
#ssh_port = 22
|
||||
|
||||
# URI for S3 bucket. See 'man s3cmd' for more info.
|
||||
#s3_uri = s3://mybucket/backups
|
||||
|
||||
# Local storage configuration.
|
||||
#
|
||||
# If 'local' is set, the 'dest' options in entries will
|
||||
# be ignored. All backups will be saved into 'local' folder.
|
||||
#local = /path/to/backups_dir
|
||||
|
||||
# Backup live time.
|
||||
#
|
||||
# Used by 'baka remove' command.
|
||||
livetime = 30
|
Reference in New Issue
Block a user