Don't ignore client-config and server-config

This commit is contained in:
Janek Bevendorff 2014-10-05 16:11:50 +02:00
parent 2eae6e45de
commit cf078a123c
3 changed files with 73 additions and 2 deletions

2
.gitignore vendored
View File

@ -6,6 +6,4 @@ desktop.ini
Desktop.ini
.DS_Store
server/etc/rs-backup/server-config
client/etc/rs-backup/client-config
client/etc/rs-backup/include-files

View File

@ -0,0 +1,55 @@
##
# Global config file for rs-backup-run
# This is an example file. Copy it over without the .example extension
# and modify it to your needs.
# Most config options can also be passed directly as command line parameters.
##
# Remote host to push the files to
# The remote host must have a working rsync server running which allows
# passwordless (public key) login over SSH
REMOTE_HOST="host"
# The rsync module on the remote server
PUSH_MODULE="push"
# Username to use for logging into the remote server.
# You can use the variables %h which will be replaced with the hostname
# of this machine and %u which will be replaced with your local username.
# If a global system backup is performed, %u will be 'root' for the global
# backup and the corresponding user for the individual home directories
REMOTE_USER="%h-%u"
# Additional SSH options
#SSH_OPTIONS="-C -i .ssh/id_rsa"
# Additional options for rsync
#RSYNC_OPTIONS=""
# Global log file to use when running as root
LOG_FILE="/var/log/rs-backup.log"
# Log filename (only basename) of the log file to use when running as a
# normal user. The file will be placed inside the user's home directory.
# Leave empty if you don't want any per-user log file.
# The user log file will only be written when the user originally invoked
# the script, not if his home directory is backed up during a full system
# backup run by root
USER_LOG_FILE="rs-backup.user.log"
# Name of the file inside the users' home directories
# containing the patterns for matching files to include or exclude.
# The format is the same as the global 'include-files' config file
# and described in the FILTER RULES section of the rsync(1) man page.
# If no such file is found inside a home directory, it won't be backup up
INCLUSION_PATTERN_FILE=".rs-backup-include"
# Log verbosity
# (0 = quiet, 1 = errors only, 2 = errors and warnings, 3 = info, 4 = debug)
LOG_LEVEL=3
# Send error messages to STDERR
PRINT_ERRORS=true
# Send warnings to STDERR (implies PRINT_ERRORS=true)
PRINT_WARNINGS=true

View File

@ -0,0 +1,18 @@
# Base directory for all backups
BACKUP_ROOT="/bkp"
# Backup user group
USER_GROUP="backup"
# Directory containing the actual backup files (relative to BACKUP_ROOT/<user>)
FILES_DIR="files"
# Set quota for individual backup users
SET_QUOTA=false
# Quota limits (use 0 for no limit)
# Numbers may also end with k, M, G or T for magnitudes of 1024
QUOTA_SOFT_LIMIT="350G"
QUOTA_HARD_LIMIT="355G"
QUOTA_INODE_SOFT_LIMIT="3900k"
QUOTA_INODE_HARD_LIMIT="4000k"