From fac1bdc05afbe78bffda2efd84fccc8161305ba8 Mon Sep 17 00:00:00 2001 From: frank Date: Sun, 29 Jan 2012 10:21:47 +0100 Subject: [PATCH] committing changes in /etc after emerge run Package changes: +app-backup/reoback-1.0_p3 --- .etckeeper | 4 +++ cron.daily/run_reoback.sh | 42 ++++++++++++++++++++++ reoback/files.conf | 75 +++++++++++++++++++++++++++++++++++++++ reoback/settings.conf | 73 +++++++++++++++++++++++++++++++++++++ 4 files changed, 194 insertions(+) create mode 100644 cron.daily/run_reoback.sh create mode 100644 reoback/files.conf create mode 100644 reoback/settings.conf diff --git a/.etckeeper b/.etckeeper index 342f0b1..1bcbdc7 100755 --- a/.etckeeper +++ b/.etckeeper @@ -289,6 +289,7 @@ maybe chmod 0755 './cron.daily/logrotate.cron' maybe chmod 0755 './cron.daily/makewhatis' maybe chmod 0755 './cron.daily/mlocate' maybe chmod 0755 './cron.daily/rkhunter' +maybe chmod 0644 './cron.daily/run_reoback.sh' maybe chmod 0755 './cron.daily/sysstat' maybe chmod 0644 './cron.deny' maybe chmod 0750 './cron.hourly' @@ -842,6 +843,9 @@ maybe chmod 0644 './protocols' maybe chmod 0644 './quotagrpadmins' maybe chmod 0644 './quotatab' maybe chmod 0644 './rc.conf' +maybe chmod 0755 './reoback' +maybe chmod 0644 './reoback/files.conf' +maybe chmod 0644 './reoback/settings.conf' maybe chmod 0644 './request-key.conf' maybe chmod 0644 './resolv.conf' maybe chmod 0755 './revdep-rebuild' diff --git a/cron.daily/run_reoback.sh b/cron.daily/run_reoback.sh new file mode 100644 index 0000000..8a297df --- /dev/null +++ b/cron.daily/run_reoback.sh @@ -0,0 +1,42 @@ +#!/bin/sh +############################################################################ +# REOBack - run_reoback.sh +# $Id: run_reoback.sh,v 1.4 2002/03/23 14:45:42 techno91 Exp $ +############################################################################ +# +# REOBack Simple Backup Solution +# http://sourceforge.net/projects/reoback/ +# +# Copyright (c) 2001 Randy Oyarzabal (techno91@users.sourceforge.net) +# +# Other developers and contributors: +# Richard Griswold +# Nate Steffenhagen (frankspikoli@users.sourceforge.net) +# +# This script is provided to conveniently run REOBack with one command +# or for use in a "crontab" when scheduling nightly backups. +# +# If you want to schedule this to run nightly via a cron job, do the +# following: +# +# 1. Edit your crontab by typing "crontab -e" (read the cron docs for +# for detailed instructions. +# +# 2. Add the following line if you want to run the backups every +# 1:45 AM. Change the time and path where necesary. +# 45 1 * * * root /usr/reoback/run_reoback.sh +# +# 3. Make sure the path definitions below are correct. +# +# 4. That's it! + +# Location of the configuration file. +config=/etc/reoback/settings.conf + +# Change to reflect where REOBack is installed +reoback=/usr/sbin/reoback.pl + +# Do not modify this line. +$reoback $config + + diff --git a/reoback/files.conf b/reoback/files.conf new file mode 100644 index 0000000..584c701 --- /dev/null +++ b/reoback/files.conf @@ -0,0 +1,75 @@ +############################################################################ +# REOBack - files.conf +# $Id: files.conf,v 1.9 2002/03/23 15:24:35 techno91 Exp $ +############################################################################ +# +# REOBack Simple Backup Solution +# http://sourceforge.net/projects/reoback/ +# +# Copyright (c) 2001 Randy Oyarzabal (techno91@users.sourceforge.net) +# +# Other developers and contributors: +# Richard Griswold +# Nate Steffenhagen (frankspikoli@users.sourceforge.net) +############################################################################ +# +# This is a list of random files or directories that need to be +# archived as one big tar file. These files will also be selectively +# picked depending on a FULL or incremental backup. + +# Comments must start with a "#" as shown +############################################################################ + +# The following is an example with comments, below it is again without + +# 'File:' followed by the name of the tar file that will be created +# Note that we don't include a path as that is added in the settings.conf +File: TestFile1 + +# Simply list all directories to be recursively backed up (1 per line) +/home/sforge + +# 'Skip:' followed by any subdirectories you want not to be included +# from the above backup directory +Skip: /home/sforge/backups +Skip: /home/sforge/reoback/data + +# Note: You can use Perl regular expressions (wild cards) for Skip: For +# example, to skip all files and directories in your home directory that +# start with a dot, you can use: +# +# Skip: /home/myself/\..* +# +# Wondering what '\..*' does? The leading backslash, '/', tells REOBack +# (actually Perl) to treat the next dot, '.', as a literal dot. The +# third dot tells Perl to match any character, and the asterisk, '*', +# tells Perl to perform the match zero or more times. + +# For files to be completely recursively backed up, don't use the 'Skip' +# option. Simple, huh? +/etc +/home/frank + +# Note we are starting a new backup file, but don't need to mark the close +# of the previous one +File: TestFile2 +/var/www/html + +# Note we can also include seperate files, not just directories +/var/www/docs/hugedoc.txt + +# Now, here is the full contents without the comments + +File: TestFile1 +/home/sforge +Skip: /home/sforge/backups +Skip: /home/sforge/reoback/data +/etc +/home/frank + +File: TestFile2 +/var/www/html +/var/www/docs/hugedoc.txt + +# That's it, no need to mark the close of the file either. +# Be sure to remove, or comment out all these sample lines before running diff --git a/reoback/settings.conf b/reoback/settings.conf new file mode 100644 index 0000000..20bb246 --- /dev/null +++ b/reoback/settings.conf @@ -0,0 +1,73 @@ +############################################################################ +# REOBack - settings.conf +# $Id: settings.conf,v 1.8 2002/03/23 21:49:50 techno91 Exp $ +############################################################################ +# +# REOBack Simple Backup Solution +# http://sourceforge.net/projects/reoback/ +# +# Copyright (c) 2001 Randy Oyarzabal (techno91@users.sourceforge.net) +# +# Other developers and contributors: +# Richard Griswold +# Nate Steffenhagen (frankspikoli@users.sourceforge.net) +# +############################################################################ +# +# This is the configuration file for REOBack. Note that the default +# configuration file is "settings.cfg". However, you can create your own +# configuration file and pass it as a parameter to the backup program. +# i.e. "./reoback.pl " + +# Used only as an identifier for this backup. Normally the hostname. +host = UNKNOWN + +# This is the number of days you want to keep backups. Note that the +# actual number of archives kept is "backupdays" times 2. That way, when +# it comes time for auto deletion, you always have a history of +# "backupdays" worth of information. +backupdays = 7 + +# Definitions of files/directories to backup. See README for format of +# this file. +files = /etc/reoback/files.conf + +# Directory to store temporary files generated by REOBack. +tmpdir = /var/lib/reoback/tmp/ + +# Directory to store data files generated by REOBack. Files created +# here are files used to keep track of FULL/INCREMENTAL backups. +datadir = /var/lib/reoback/data/ + +# Location of where to keep local backups. Also use as a temporary +# storage of archives for transfer. Keep trailing slash! +localbackup = /var/lib/reoback/backups/ + +# 1 = Keep local backups, 0 = Do not keep local backups +keeplocalcopy = 1 + +# 1 = Transfer to remote location, 0 = Do not transfer +remotebackup = 0 + +# Type of remote backup. FTP or NFS +rbackuptype = FTP + +# Only needed if above is set to NFS. Keep trailing slash! +localmount = /mnt/server/ + +# Required if "remotebackup" is set. +remotehost = HOSTNAMEHERE + +# Path to keep backups on remote host. Keep trailing slash! +remotepath = /path here/ + +####################################################### +# REQUIRED IF TYPE OR REMOTE BACKUP IS FTP. +####### + +# Remote user on remote host. +ftpuser = userhere + +# Password for remote user. +ftppasswd = passwordhere +###################################################### -- 2.39.5