Skip to content

Instantly share code, notes, and snippets.

@choyer
Created June 30, 2014 20:21
Show Gist options
  • Save choyer/48e245e14600e40ad546 to your computer and use it in GitHub Desktop.
Save choyer/48e245e14600e40ad546 to your computer and use it in GitHub Desktop.
Backup 4.x Config File (Gitlab Backup)
# encoding: utf-8
##
# Backup v4.x Configuration
#
# Documentation: http://meskyanichi.github.io/backup
# Issue Tracker: https://github.com/meskyanichi/backup/issues
##
# Config Options
#
# The options here may be overridden on the command line, but the result
# will depend on the use of --root-path on the command line.
#
# If --root-path is used on the command line, then all paths set here
# will be overridden. If a path (like --tmp-path) is not given along with
# --root-path, that path will use it's default location _relative to --root-path_.
#
# If --root-path is not used on the command line, a path option (like --tmp-path)
# given on the command line will override the tmp_path set here, but all other
# paths set here will be used.
#
# Note that relative paths given on the command line without --root-path
# are relative to the current directory. The root_path set here only applies
# to relative paths set here.
#
# ---
#
# Sets the root path for all relative paths, including default paths.
# May be an absolute path, or relative to the current working directory.
#
# root_path 'my/root'
#
# Sets the path where backups are processed until they're stored.
# This must have enough free space to hold apx. 2 backups.
# May be an absolute path, or relative to the current directory or +root_path+.
#
# tmp_path 'my/tmp'
#
# Sets the path where backup stores persistent information.
# When Backup's Cycler is used, small YAML files are stored here.
# May be an absolute path, or relative to the current directory or +root_path+.
#
# data_path 'my/data'
##
# Logging
#
# Logging options may be set on the command line, but certain settings
# may only be configured here.
#
Backup::Logger.configure do
logfile.enabled = true
logfile.log_path = File.absolute_path("log").to_s
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment