From: <st...@us...> - 2007-01-12 11:45:51
|
Revision: 280 http://safekeep.svn.sourceforge.net/safekeep/?rev=280&view=rev Author: stelian Date: 2007-01-12 03:45:49 -0800 (Fri, 12 Jan 2007) Log Message: ----------- Add documentation and rework the sample configuration file. Modified Paths: -------------- safekeep/trunk/Makefile safekeep/trunk/debian/control safekeep/trunk/debian/rules safekeep/trunk/safekeep safekeep/trunk/safekeep.spec.in safekeep/trunk/sample.cfg Added Paths: ----------- safekeep/trunk/doc/ safekeep/trunk/doc/Makefile safekeep/trunk/doc/asciidoc.conf safekeep/trunk/doc/callouts.xsl safekeep/trunk/doc/safekeep.txt Modified: safekeep/trunk/Makefile =================================================================== --- safekeep/trunk/Makefile 2007-01-12 05:02:13 UTC (rev 279) +++ safekeep/trunk/Makefile 2007-01-12 11:45:49 UTC (rev 280) @@ -35,6 +35,7 @@ @echo "SVN Root = $(svnroot)" build: + $(MAKE) -C doc build release: check-info commit-release tag-release rpm-release @@ -95,5 +96,6 @@ safekeep-test --remote clean: + $(MAKE) -C doc clean rm -rf `find -name "*.py[co]" -o -name "*~"``` rm -f $(name).spec debian/changelog Modified: safekeep/trunk/debian/control =================================================================== --- safekeep/trunk/debian/control 2007-01-12 05:02:13 UTC (rev 279) +++ safekeep/trunk/debian/control 2007-01-12 11:45:49 UTC (rev 280) @@ -2,7 +2,7 @@ Section: Applications/System Priority: optional Maintainer: Lattica, Inc. -Build-Depends: debhelper (>= 4.0.0) +Build-Depends: debhelper (>= 4.0.0), xmlto, asciidoc > 6.0.3 Standards-Version: 3.6.2 Package: safekeep Modified: safekeep/trunk/debian/rules =================================================================== --- safekeep/trunk/debian/rules 2007-01-12 05:02:13 UTC (rev 279) +++ safekeep/trunk/debian/rules 2007-01-12 11:45:49 UTC (rev 280) @@ -12,10 +12,13 @@ dh_clean -k dh_installdirs + make build + mkdir -p $(CURDIR)/debian/safekeep/usr/bin mkdir -p $(CURDIR)/debian/safekeep/etc/safekeep.d install -m 755 safekeep $(CURDIR)/debian/safekeep/usr/bin + install -m 755 doc/safekeep.1 $(CURDIR)/debian/safekeep/usr/man/man1 binary-indep: install dh_testdir Added: safekeep/trunk/doc/Makefile =================================================================== --- safekeep/trunk/doc/Makefile (rev 0) +++ safekeep/trunk/doc/Makefile 2007-01-12 11:45:49 UTC (rev 280) @@ -0,0 +1,25 @@ +MAN_TXT := $(wildcard *.txt) +DOC_HTML := $(patsubst %.txt,%.html,$(MAN_TXT)) +DOC_MAN := $(patsubst %.txt,%.1,$(MAN_TXT)) + +all: html man + +build: all + +html: $(DOC_HTML) + +man: $(DOC_MAN) + +clean: + rm -f *.xml *.html *.1 + +$(DOC_HTML) $(DOC_MAN): asciidoc.conf + +%.html: %.txt + asciidoc -b xhtml11 -d manpage -f asciidoc.conf $< + +%.1: %.xml + xmlto -m callouts.xsl man $< + +%.xml: %.txt + asciidoc -b docbook -d manpage -f asciidoc.conf $< Added: safekeep/trunk/doc/asciidoc.conf =================================================================== --- safekeep/trunk/doc/asciidoc.conf (rev 0) +++ safekeep/trunk/doc/asciidoc.conf 2007-01-12 11:45:49 UTC (rev 280) @@ -0,0 +1,5 @@ +[attributes] +caret=^ +startsb=[ +endsb=] +tilde=~ Added: safekeep/trunk/doc/callouts.xsl =================================================================== --- safekeep/trunk/doc/callouts.xsl (rev 0) +++ safekeep/trunk/doc/callouts.xsl 2007-01-12 11:45:49 UTC (rev 280) @@ -0,0 +1,30 @@ +<!-- callout.xsl: converts asciidoc callouts to man page format --> +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> +<xsl:template match="co"> + <xsl:value-of select="concat('\fB(',substring-after(@id,'-'),')\fR')"/> +</xsl:template> +<xsl:template match="calloutlist"> + <xsl:text>.sp </xsl:text> + <xsl:apply-templates/> + <xsl:text> </xsl:text> +</xsl:template> +<xsl:template match="callout"> + <xsl:value-of select="concat('\fB',substring-after(@arearefs,'-'),'. \fR')"/> + <xsl:apply-templates/> + <xsl:text>.br </xsl:text> +</xsl:template> + +<!-- sorry, this is not about callouts, but attempts to work around + spurious .sp at the tail of the line docbook stylesheets seem to add --> +<xsl:template match="simpara"> + <xsl:variable name="content"> + <xsl:apply-templates/> + </xsl:variable> + <xsl:value-of select="normalize-space($content)"/> + <xsl:if test="not(ancestor::authorblurb) and + not(ancestor::personblurb)"> + <xsl:text> </xsl:text> + </xsl:if> +</xsl:template> + +</xsl:stylesheet> Added: safekeep/trunk/doc/safekeep.txt =================================================================== --- safekeep/trunk/doc/safekeep.txt (rev 0) +++ safekeep/trunk/doc/safekeep.txt 2007-01-12 11:45:49 UTC (rev 280) @@ -0,0 +1,171 @@ +safekeep(1) +========== + +NAME +---- +safekeep - Client/server backup script + +SYNOPSIS +-------- +'safekeep' [-s] [-q] [-v] [-C file] [-e <email>] [-m <smtp>] + +'safekeep' -c + +'safekeep' -k [-q] [-v] [--status|--print|--deploy] <clientid>* + +'safekeep' -h | -V + +DESCRIPTION +----------- +SafeKeep is a client/server backup script which enhances the +power of rdiff-backup with simple configuration and use. + +SafeKeep can work in server mode, client mode or SSH key management mode. + +In server mode, SafeKeep parses a set of configurations files which +defines a set of backup clients. For each backup client, SafeKeep +connects to the client host over SSH (using a public key authentification +system previously set up using `safekeep -k --deploy`), and launches +`safekeep --client` onto the client host. The client does the real backup +and sends the data over SSH to the SafeKeep server which stores it in +the specified location. + +In client mode, SafeKeep does a few setup steps, depending on the +client configuration (database dump, LVM device snapshot), then backups +the client data using `rdiff-backup`, and then cleanups the state +(removes the database dumps, deactivates the LVM snapshots) + +Note that the client mode of SafeKeep should never be invoked manually, +this mode is meant to be used only by the server mode of SafeKeep. + +The SSH key management mode is a helper mode for deploying or verifying +the setup of the SSH authentification keys. + +Each mode accepts a few options as described below. + +OPTIONS +------- +-s, --server:: + Selects the server mode (default) + +-c, --client:: + Selects the client mode. This should never be invoked manually, the + clients are started automatically by the server on the client machines + using SSH. + +-k, --keys:: + Selects the SSH key management mode + +-h, --help:: + Selects the help mode, in which safekeep prints out the + online help and exits. + +-V, --version:: + Selects the version mode, in which safekeep prints out the + version number and exits. + +-q, --quiet:: + Decreases the verbosity level. Can be specified more than + once. + +-v, --verbose:: + Increases the verbosity level. Can be specified more than + once. + +-C, --cfg=FILE|DIR:: + Specifies the configuration file location. + This can be a single file (for a single client configuration) + or a directory containing several configuration files (one per + backup client) + +-e, --email=EMAIL:: + In addition to writing the session logs + on the standard output, this parameter let the user specify + the mail address where the logs are to be send. Can be specified + more than once to send reports to multiple addresses. + +-m, --smtp=SMTP:: + Specifies the SMTP server used for sending + mails when `-e` is used. Defaults to `localhost`. + +--status:: + (key mode only) Display the key status for the clients. + +--print:: + (key mode only) Display the authorization keys for the clients. + +--deploy:: + (key mode only) Deploy the authorization keys on the clients. + +Configuration file +------------------ + +Each backup client is described by a configuration file in XML format of the +following form: + +------------------------------------------------------------------------ +<!-- the client backup id --> +<backup id="my.host.com primary backup"> + + <!-- the client backup host, the user under which the servers will connect, + the SSH keys used for launching "safekeep -c" and "rdiff-backup" --> + <host + name="localhost" user="guest" + key-ctrl="/home/dimi/.ssh/backup_id_dsa" + key-data="/home/dimi/.ssh/backup2_id_dsa" + /> + + <!-- location where the backuped data will be stored on the server + and for how long (s=sec, m=min, h=hours, D=days, W=weeks, M=months, or Y=years) --> + <repo + path="./tmp" + retention="10D" + /> + + <!-- settings for database dump and for volume snapshot --> + <setup> + + <!-- database type ("postgres" or "mysql"), user with backup rights, + location of the dump file on the client host, and flag to remove + or not the dump file after the backup is done --> + <dump + type="postgres" + db="dbname" + user="foobar" + file="/var/backup/dumps/mydata" + cleanup="true" + /> + + <!-- what volume is to be snapshoted (device location) and the size + of the snapshot (unallocated space must exist in the volume group) --> + <snapshot + device="/path/to/volume" + size="500M" + /> + + </setup> + + <!-- data to be backuped --> + <data> + <!-- each type of tag can be present more than one time --> + <!-- if a database dump was created, it must be added in this section --> + <include path="/home"/> + <exclude path="/home/guest"/> + + <include glob="**/important/"/> + <exclude glob="/home/*/tmp"/> + + <include regexp=".*\.ogg"/> + <exclude regexp=".*\.mp3"/> + </data> +</backup> +------------------------------------------------------------------------ + +See Also +-------- +rdiff-backup(1) + +Author +------ +Written by Dimi Paun <di...@la...> and Stelian Pop <st...@la...>. + Modified: safekeep/trunk/safekeep =================================================================== --- safekeep/trunk/safekeep 2007-01-12 05:02:13 UTC (rev 279) +++ safekeep/trunk/safekeep 2007-01-12 11:45:49 UTC (rev 280) @@ -721,7 +721,6 @@ print '-C, --cfg=FILE|DIR use the given configuration file/directory' print '-e, --email=EMAIL send results by email (can appear multiple times)' print '-m, --smtp=SMTP SMTP server to use when sending mails (default: built-in SMTP)' - print '--clientid=ID manage the keys of client identified by ID (keys mode only)' print '--status display the key status for the clients (keys mode only, default)' print '--print display the authorization keys (keys mode only)' print '--deploy deploy the authorization keys (keys mode only)' Modified: safekeep/trunk/safekeep.spec.in =================================================================== --- safekeep/trunk/safekeep.spec.in 2007-01-12 05:02:13 UTC (rev 279) +++ safekeep/trunk/safekeep.spec.in 2007-01-12 11:45:49 UTC (rev 280) @@ -16,6 +16,7 @@ BuildArch: noarch +BuildRequires: xmlto, asciidoc > 6.0.3 Requires: rdiff-backup Provides: safekeep @@ -27,9 +28,11 @@ %setup -q %build +make build %install install -m 755 safekeep "%{buildroot}%{_bindir}" +install -m 755 doc/safekeep.1 "%{buildroot}%{_mandir}/man1/" %clean rm -rf "%{buildroot}" @@ -37,6 +40,7 @@ %files %defattr(-,root,root,-) %{_bindir}/safekeep +%{_mandir}/man1/safekeep.1* %doc AUTHORS COPYING LICENSE README safekeep-test sample.cfg %changelog Modified: safekeep/trunk/sample.cfg =================================================================== --- safekeep/trunk/sample.cfg 2007-01-12 05:02:13 UTC (rev 279) +++ safekeep/trunk/sample.cfg 2007-01-12 11:45:49 UTC (rev 280) @@ -1,32 +1,48 @@ +<!-- the client backup id --> <backup id="my.host.com primary backup"> - <!-- the host from which the backup data will be copied, user under which "rdiff-backup --server" will run --> - <host name="localhost" user="guest" - <!-- key for SafeKeep --> - key-ctrl="/home/dimi/.ssh/backup_id_dsa" - <!-- key for rdiff-backup --> - key-data="/home/dimi/.ssh/backup2_id_dsa" /> - <!-- where the backuped data will be stored and how long--> - <!-- s=sec, m=min, h=hours, D=days, W=weeks, M=months, or Y=years, - <repo path="./tmp" retention="10D" /> + + <!-- the client backup host, the user under which the servers will connect, + the SSH keys used for launching "safekeep -c" and "rdiff-backup" --> + <host + name="localhost" user="guest" + key-ctrl="/home/dimi/.ssh/backup_id_dsa" + key-data="/home/dimi/.ssh/backup2_id_dsa" + /> + + <!-- location where the backuped data will be stored on the server + and for how long (s=sec, m=min, h=hours, D=days, W=weeks, M=months, or Y=years) --> + <repo + path="./tmp" + retention="10D" + /> + <!-- settings for database dump and for volume snapshot --> <setup> - <!-- type can be "postgres" or "mysql" --> - <dump type="postgres" - <!-- database name --> - db="dbname" - <!-- database user with backup rights --> - user="foobar" - <!-- location of the dump file on the original server --> - file="/var/backup/dumps/mydata" - <!-- cleanup flag --> - cleanup="true" /> - <!-- what volume is to be snapshoted (device location) --> - <!-- special care should be taken when size is decided. Unallocated space must exist on the physical drive --> - <snapshot device="/path/to/volume" size="500M"/> + + <!-- database type ("postgres" or "mysql"), user with backup rights, + location of the dump file on the client host, and flag to remove + or not the dump file after the backup is done --> + <dump + type="postgres" + db="dbname" + user="foobar" + file="/var/backup/dumps/mydata" + cleanup="true" + /> + + <!-- what volume is to be snapshoted (device location) and the size + of the snapshot (unallocated space must exist in the volume group) --> + <snapshot + device="/path/to/volume" + size="500M" + /> + </setup> + + <!-- data to be backuped --> <data> - <!-- each type of tag can be present more than one time --> - <!-- if a database dump was created, it must be added in this section --> + <!-- each type of tag can be present more than one time --> + <!-- if a database dump was created, it must be added in this section --> <include path="/home"/> <exclude path="/home/guest"/> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <di...@us...> - 2007-01-26 04:09:06
|
Revision: 296 http://safekeep.svn.sourceforge.net/safekeep/?rev=296&view=rev Author: dimi Date: 2007-01-25 20:09:05 -0800 (Thu, 25 Jan 2007) Log Message: ----------- Remove the short options for selecting the operation mode, since they were polluting the namespace and they weren't all that useful: - the server mode is the defalt mode, no switch is required - the client mode should never be invoked manually - the keys mode benefits slighly from the additional clarity. This should allow us in the future more freedom to add other options with those names. Modified Paths: -------------- safekeep/trunk/doc/safekeep.txt safekeep/trunk/safekeep Modified: safekeep/trunk/doc/safekeep.txt =================================================================== --- safekeep/trunk/doc/safekeep.txt 2007-01-26 03:56:40 UTC (rev 295) +++ safekeep/trunk/doc/safekeep.txt 2007-01-26 04:09:05 UTC (rev 296) @@ -7,11 +7,11 @@ SYNOPSIS -------- -'safekeep' [-s] [-q] [-v] [-C file] [-e <email>] [-m <smtp>] +'safekeep' [--server] [-q] [-v] [-C file] [-e <email>] [-m <smtp>] -'safekeep' -c +'safekeep' --client -'safekeep' -k [-q] [-v] [--status|--print|--deploy] <clientid>* +'safekeep' --keys [-q] [-v] [--status|--print|--deploy] <clientid>* 'safekeep' -h | -V @@ -45,15 +45,15 @@ OPTIONS ------- --s, --server:: +--server:: Selects the server mode (default) --c, --client:: +--client:: Selects the client mode. This should never be invoked manually, the clients are started automatically by the server on the client machines using SSH. --k, --keys:: +--keys:: Selects the SSH key management mode -h, --help:: Modified: safekeep/trunk/safekeep =================================================================== --- safekeep/trunk/safekeep 2007-01-26 03:56:40 UTC (rev 295) +++ safekeep/trunk/safekeep 2007-01-26 04:09:05 UTC (rev 296) @@ -735,14 +735,14 @@ ###################################################################### def usage(): - print 'usage: %s [-s|--server] [common options] [server options]' % (sys.argv[0]) - print ' %s [-c|--client] [common options]' % (sys.argv[0]) - print ' %s [-k|--keys] [common options] [keys options] [clientid1 [clientid2] ...]' % (sys.argv[0]) + print 'usage: %s [--server] [common options] [server options]' % (sys.argv[0]) + print ' %s --client [common options]' % (sys.argv[0]) + print ' %s --keys [common options] [keys options] [clientid1 [clientid2] ...]' % (sys.argv[0]) print print 'mode selection (pick one):' - print '-s, --server launch in server mode (default)' - print '-c, --client launch in client mode' - print '-k, --keys launch in keys management mode' + print '--server launch in server mode (default)' + print '--client launch in client mode' + print '--keys launch in keys management mode' print print 'common options:' print '-h, --help show this help message and exit' @@ -762,7 +762,7 @@ def main(): try: - opts, args = getopt.getopt(sys.argv[1:], 'C:e:hkm:scqvV', + opts, args = getopt.getopt(sys.argv[1:], 'C:e:hm:qvV', [ 'cfg=', 'client', 'clientid=', 'deploy', 'email=', 'help', 'keys', 'print', 'quiet', 'server', 'smtp=', 'status', @@ -787,11 +787,11 @@ sys.exit() elif o in ('-m', '--smtp'): smtp = a - elif o in ('-s', '--server'): + elif o in ('--server', ): mode = 'server' - elif o in ('-c', '--client'): + elif o in ('--client', ): mode = 'client' - elif o in ('-k', '--keys'): + elif o in ('--keys', ): mode = 'keys' elif o in ('--status', ): action = 'status' This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <di...@us...> - 2007-01-26 04:27:06
|
Revision: 297 http://safekeep.svn.sourceforge.net/safekeep/?rev=297&view=rev Author: dimi Date: 2007-01-25 20:27:04 -0800 (Thu, 25 Jan 2007) Log Message: ----------- Make the keys options more like options rather then mode selectors. This means that any combination of them is now valid as input on the command line. Addition documentation work to match these changes. Modified Paths: -------------- safekeep/trunk/doc/safekeep.txt safekeep/trunk/safekeep Modified: safekeep/trunk/doc/safekeep.txt =================================================================== --- safekeep/trunk/doc/safekeep.txt 2007-01-26 04:09:05 UTC (rev 296) +++ safekeep/trunk/doc/safekeep.txt 2007-01-26 04:27:04 UTC (rev 297) @@ -11,7 +11,7 @@ 'safekeep' --client -'safekeep' --keys [-q] [-v] [--status|--print|--deploy] <clientid>* +'safekeep' --keys [-q] [-v] [--status] [--print] [--deploy] <clientid>* 'safekeep' -h | -V @@ -43,8 +43,8 @@ Each mode accepts a few options as described below. -OPTIONS -------- +OPERATION MODE +-------------- --server:: Selects the server mode (default) @@ -56,6 +56,9 @@ --keys:: Selects the SSH key management mode + +GENERAL OPTIONS +--------------- -h, --help:: Selects the help mode, in which safekeep prints out the online help and exits. @@ -72,6 +75,8 @@ Increases the verbosity level. Can be specified more than once. +SERVER OPTIONS +-------------- -C, --cfg=FILE|DIR:: Specifies the configuration file location. This can be a single file (for a single client configuration) @@ -88,14 +93,20 @@ Specifies the SMTP server used for sending mails when `-e` is used. Defaults to `localhost`. +KEYS OPTIONS +------------ --status:: - (key mode only) Display the key status for the clients. + Display the key status for the clients. It is implied if no other + option is specified. In effect this option prints the steps that + will be taken when the keys are deployed to the client. --print:: - (key mode only) Display the authorization keys for the clients. + Display the authorization keys for the clients. This is useful in + case you want to manually copy it into the client's + `~/.ssh/authorized_keys` file. This option is seldom useful. --deploy:: - (key mode only) Deploy the authorization keys on the clients. + Deploy the authorization keys on the clients. Configuration file ------------------ Modified: safekeep/trunk/safekeep =================================================================== --- safekeep/trunk/safekeep 2007-01-26 04:09:05 UTC (rev 296) +++ safekeep/trunk/safekeep 2007-01-26 04:27:04 UTC (rev 297) @@ -588,7 +588,7 @@ debug('Server backup done') -def do_keys(cfgs, ids, action): +def do_keys(cfgs, ids, status, dump, deploy): matches = [] for cfg in cfgs: id = cfg['id'] @@ -608,13 +608,13 @@ if os.path.isfile(publickeyfile): error('%s: Public key exists %s, but private key is missing. Skipping client.' % (id, publickeyfile)) break - if action is 'print': - print '%s: Key do not exist: %s.' % (id, privatekeyfile) + if dump: + print '%s: Key does not exist: %s.' % (id, privatekeyfile) break - if action is 'status': - print '%s: Key do not exist: %s. Will be generated.' % (id, privatekeyfile) + if status: + print '%s: Key does not exist: %s. Will be generated.' % (id, privatekeyfile) break - elif action is 'deploy': + if deploy: info('%s: Key do not exist, generating it now: %s' % (id, privatekeyfile)) gencmd = 'ssh-keygen -q -b 1024 -t dsa -N "" -C "SafeKeep auto generated key at %s@%s" -f %s' % \ (os.environ['LOGNAME'], os.uname()[1], privatekeyfile) @@ -637,9 +637,9 @@ continue output = '\n'.join(lines) - if action is 'print': + if dump: print output - elif action in ('status', 'deploy'): + if status or deploy: cmd = 'ssh %s@%s "if test -f .ssh/authorized_keys; then cat .ssh/authorized_keys; fi"' % (cfg['user'], cfg['host']) debug(cmd) out = os.popen(cmd, 'r') @@ -655,21 +655,19 @@ else: new_keys.append(this_key) if not new_keys: - if action is 'status': + if status: print '%s: Client is up to date.' % id continue - if action is 'deploy': + if status: + print '%s: Keys will be deployed on the client.' % id + if deploy: cmd = 'ssh %s@%s "umask 077; test -d .ssh || mkdir .ssh; cat >> .ssh/authorized_keys"' % (cfg['user'], cfg['host']) debug(cmd) pipe = os.popen(cmd, 'w') pipe.write('\n'.join([key[4] for key in new_keys])) if pipe.close(): error('Failed to deliver the keys to the client') - elif action is 'status': - print '%s: Keys will be deployed on the client.' % id - else: - assert False, 'Unknown action: %s' % action for id in ids: if id not in matches: @@ -776,7 +774,9 @@ cfglocs = [] verbosity = 0 clientid = None - action = None + keys_status = None + keys_print = None + keys_deploy = None for o, a in opts: if o in ('-C', '--cfg'): cfglocs.append(a) @@ -794,11 +794,11 @@ elif o in ('--keys', ): mode = 'keys' elif o in ('--status', ): - action = 'status' + keys_status = True elif o in ('--print', ): - action = 'print' + keys_print = True elif o in ('--deploy', ): - action = 'deploy' + keys_deploy = True elif o in ('-q', '--quiet'): verbosity -= 1 elif o in ('-v', '--verbose'): @@ -824,8 +824,9 @@ elif mode == 'keys': is_client = False verbosity_level = 1 + verbosity - if not action: action = 'status' - do_keys(cfgs, args, action) + if not keys_status and not keys_print and not keys_deploy: + keys_status = True + do_keys(cfgs, args, keys_status, keys_print, keys_deploy) else: assert False, 'Unkown mode: ' + mode except Exception, ex: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <di...@us...> - 2007-01-26 21:13:30
|
Revision: 310 http://safekeep.svn.sourceforge.net/safekeep/?rev=310&view=rev Author: dimi Date: 2007-01-26 13:13:27 -0800 (Fri, 26 Jan 2007) Log Message: ----------- Merge the doc Makefile into the main Makefile. It makes it easier if everything is in one place. http://members.canb.auug.org.au/~millerp/rmch/recu-make-cons-harm.html Modified Paths: -------------- safekeep/trunk/Makefile Removed Paths: ------------- safekeep/trunk/doc/Makefile Modified: safekeep/trunk/Makefile =================================================================== --- safekeep/trunk/Makefile 2007-01-26 20:35:46 UTC (rev 309) +++ safekeep/trunk/Makefile 2007-01-26 21:13:27 UTC (rev 310) @@ -10,13 +10,18 @@ dirname := $(shell basename $(PWD)) rpmroot := $(shell grep '%_topdir' ~/.rpmmacros | sed 's/^[^ \t]*[ \t]*//') svnroot := $(shell LANG=C svn info |grep Root |cut -c 18-) +MAN_TXT := doc/safekeep.txt +DOC_HTML := $(patsubst %.txt,%.html,$(MAN_TXT)) +DOC_MAN := $(patsubst %.txt,%.1,$(MAN_TXT)) + all: help help: @echo "Targets:" @echo " help Displays this message" @echo " info Displays package information (version, tag, etc.)" + @echo " docs Builds all documentation formats" @echo " build Builds everything needed for an installation" @echo " deb Builds snapshot binary and source DEBs" @echo " rpm Buidls snapshot binary and source RPMs" @@ -34,9 +39,9 @@ @echo "RPM Root = $(rpmroot)" @echo "SVN Root = $(svnroot)" -build: - $(MAKE) -C doc build +build: docs + release: check-info commit-release tag-release rpm-release commit-release: @@ -49,6 +54,23 @@ @echo -n 'Is this information correct? (yes/No) ' @read x; if [ "$$x" != "yes" ]; then exit 1; fi +docs: html man + +html: $(DOC_HTML) + +man: $(DOC_MAN) + +%.html: %.txt + asciidoc -b xhtml11 -d manpage -f doc/asciidoc.conf $< + +%.1: %.xml + xmlto -o doc -m doc/callouts.xsl man $< + +%.xml: %.txt + asciidoc -b docbook -d manpage -f doc/asciidoc.conf $< + +$(DOC_HTML) $(DOC_MAN): doc/asciidoc.conf + tar: tar-snapshot tar-snapshot: @@ -96,6 +118,6 @@ safekeep-test --remote clean: - $(MAKE) -C doc clean - rm -rf `find -name "*.py[co]" -o -name "*~"``` + rm -f {.,doc,debian}/*~ *.py[co] rm -f $(name).spec debian/changelog + rm -f doc/*.xml doc/*.html doc/*.1 Deleted: safekeep/trunk/doc/Makefile =================================================================== --- safekeep/trunk/doc/Makefile 2007-01-26 20:35:46 UTC (rev 309) +++ safekeep/trunk/doc/Makefile 2007-01-26 21:13:27 UTC (rev 310) @@ -1,25 +0,0 @@ -MAN_TXT := $(wildcard *.txt) -DOC_HTML := $(patsubst %.txt,%.html,$(MAN_TXT)) -DOC_MAN := $(patsubst %.txt,%.1,$(MAN_TXT)) - -all: html man - -build: all - -html: $(DOC_HTML) - -man: $(DOC_MAN) - -clean: - rm -f *.xml *.html *.1 - -$(DOC_HTML) $(DOC_MAN): asciidoc.conf - -%.html: %.txt - asciidoc -b xhtml11 -d manpage -f asciidoc.conf $< - -%.1: %.xml - xmlto -m callouts.xsl man $< - -%.xml: %.txt - asciidoc -b docbook -d manpage -f asciidoc.conf $< This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <di...@us...> - 2007-01-26 21:46:42
|
Revision: 312 http://safekeep.svn.sourceforge.net/safekeep/?rev=312&view=rev Author: dimi Date: 2007-01-26 13:46:41 -0800 (Fri, 26 Jan 2007) Log Message: ----------- Rename the -C option to -c now that it is available. Modified Paths: -------------- safekeep/trunk/doc/safekeep.txt safekeep/trunk/safekeep safekeep/trunk/safekeep-test Modified: safekeep/trunk/doc/safekeep.txt =================================================================== --- safekeep/trunk/doc/safekeep.txt 2007-01-26 21:16:33 UTC (rev 311) +++ safekeep/trunk/doc/safekeep.txt 2007-01-26 21:46:41 UTC (rev 312) @@ -7,7 +7,7 @@ SYNOPSIS -------- -'safekeep' [--server] [-q] [-v] [-C file] [-e <email>] [-m <smtp>] <clientid>* +'safekeep' [--server] [-q] [-v] [-c file] [-e <email>] [-m <smtp>] <clientid>* 'safekeep' --client @@ -82,7 +82,7 @@ SERVER OPTIONS -------------- --C, --cfg=FILE|DIR:: +-c, --cfg=FILE|DIR:: Specifies the configuration file location. This can be a single file (for a single client configuration) or a directory containing several configuration files (one per Modified: safekeep/trunk/safekeep =================================================================== --- safekeep/trunk/safekeep 2007-01-26 21:16:33 UTC (rev 311) +++ safekeep/trunk/safekeep 2007-01-26 21:46:41 UTC (rev 312) @@ -759,14 +759,14 @@ print '--deploy deploy the authorization keys' print print 'server options:' - print '-C, --cfg=FILE|DIR use the given configuration file/directory' + print '-c, --cfg=FILE|DIR use the given configuration file/directory' print '-e, --email=EMAIL send results by email (can appear multiple times)' print '-m, --smtp=SMTP SMTP server to use when sending mails (default: built-in SMTP)' if exitcode is not None: sys.exit(exitcode) def main(): try: - opts, args = getopt.getopt(sys.argv[1:], 'C:e:hm:qvV', + opts, args = getopt.getopt(sys.argv[1:], 'c:e:hm:qvV', [ 'cfg=', 'client', 'clientid=', 'deploy', 'email=', 'help', 'keys', 'print', 'quiet', 'server', 'smtp=', 'status', @@ -784,7 +784,7 @@ keys_print = None keys_deploy = None for o, a in opts: - if o in ('-C', '--cfg'): + if o in ('-c', '--cfg'): cfglocs.append(a) elif o in ('-e', '--email'): email.append(a) @@ -836,7 +836,7 @@ if arg in cfgs: continue error('Unknown client ID: %s' % arg) if os.path.isfile(arg): - error('It appears to be a file, configuration files are passed via the -C/--cfg switch.') + error('It appears to be a file, configuration files are passed via the -c/--cfg switch.') ok = False if not ok: sys.exit(2) Modified: safekeep/trunk/safekeep-test =================================================================== --- safekeep/trunk/safekeep-test 2007-01-26 21:16:33 UTC (rev 311) +++ safekeep/trunk/safekeep-test 2007-01-26 21:46:41 UTC (rev 312) @@ -211,7 +211,7 @@ def createKey(user, host, keyname, comment): key = '/home/%s/.ssh/%s' % (user, keyname) - cmd = 'test -f %s || ssh-keygen -q -b 1024 -t dsa -N \'\' -C \'%s\' -f %s' % (key, comment, key) + cmd = 'test -f %s || ssh-keygen -q -b 1024 -t dsa -N \'\' -c \'%s\' -f %s' % (key, comment, key) rcmd(cmd, user, host, 'create %s on server' % keyname) return key This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <di...@us...> - 2007-01-26 22:03:00
|
Revision: 313 http://safekeep.svn.sourceforge.net/safekeep/?rev=313&view=rev Author: dimi Date: 2007-01-26 14:02:56 -0800 (Fri, 26 Jan 2007) Log Message: ----------- Rename the .cfg extension to .conf, and the --cfg option to --conf Modified Paths: -------------- safekeep/trunk/debian/docs safekeep/trunk/doc/safekeep.txt safekeep/trunk/safekeep safekeep/trunk/safekeep-test safekeep/trunk/safekeep.spec.in Added Paths: ----------- safekeep/trunk/sample.conf Removed Paths: ------------- safekeep/trunk/sample.cfg Modified: safekeep/trunk/debian/docs =================================================================== --- safekeep/trunk/debian/docs 2007-01-26 21:46:41 UTC (rev 312) +++ safekeep/trunk/debian/docs 2007-01-26 22:02:56 UTC (rev 313) @@ -3,4 +3,4 @@ LICENSE README safekeep-test -sample.cfg +sample.conf Modified: safekeep/trunk/doc/safekeep.txt =================================================================== --- safekeep/trunk/doc/safekeep.txt 2007-01-26 21:46:41 UTC (rev 312) +++ safekeep/trunk/doc/safekeep.txt 2007-01-26 22:02:56 UTC (rev 313) @@ -82,7 +82,7 @@ SERVER OPTIONS -------------- --c, --cfg=FILE|DIR:: +-c, --conf=FILE|DIR:: Specifies the configuration file location. This can be a single file (for a single client configuration) or a directory containing several configuration files (one per Modified: safekeep/trunk/safekeep =================================================================== --- safekeep/trunk/safekeep 2007-01-26 21:46:41 UTC (rev 312) +++ safekeep/trunk/safekeep 2007-01-26 22:02:56 UTC (rev 313) @@ -6,7 +6,7 @@ import socket, smtplib config_dir = '/etc/safekeep.d' -config_ext = '.cfg' +config_ext = '.conf' logbuf = [] is_client = False verbosity_level = 1 @@ -759,7 +759,7 @@ print '--deploy deploy the authorization keys' print print 'server options:' - print '-c, --cfg=FILE|DIR use the given configuration file/directory' + print '-c, --conf=FILE|DIR use the given configuration file/directory' print '-e, --email=EMAIL send results by email (can appear multiple times)' print '-m, --smtp=SMTP SMTP server to use when sending mails (default: built-in SMTP)' if exitcode is not None: sys.exit(exitcode) @@ -767,7 +767,7 @@ def main(): try: opts, args = getopt.getopt(sys.argv[1:], 'c:e:hm:qvV', - [ 'cfg=', 'client', 'clientid=', 'deploy', + [ 'conf=', 'client', 'clientid=', 'deploy', 'email=', 'help', 'keys', 'print', 'quiet', 'server', 'smtp=', 'status', 'verbose', 'version']) @@ -784,7 +784,7 @@ keys_print = None keys_deploy = None for o, a in opts: - if o in ('-c', '--cfg'): + if o in ('-c', '--conf'): cfglocs.append(a) elif o in ('-e', '--email'): email.append(a) @@ -836,7 +836,7 @@ if arg in cfgs: continue error('Unknown client ID: %s' % arg) if os.path.isfile(arg): - error('It appears to be a file, configuration files are passed via the -c/--cfg switch.') + error('It appears to be a file, configuration files are passed via the -c/--conf switch.') ok = False if not ok: sys.exit(2) Modified: safekeep/trunk/safekeep-test =================================================================== --- safekeep/trunk/safekeep-test 2007-01-26 21:46:41 UTC (rev 312) +++ safekeep/trunk/safekeep-test 2007-01-26 22:02:56 UTC (rev 313) @@ -133,7 +133,7 @@ </data> </backup> """ - writefile(os.path.join(tmproot, 'test.cfg'), CONFIG % params) + writefile(os.path.join(tmproot, 'test.conf'), CONFIG % params) for i in xrange(test_reps): FILES = ( 'data/fileA.out', @@ -149,7 +149,7 @@ cmd = "cd %(tmproot)s/client; find -type f -a \! -name '*.nobackup' | sort | xargs md5sum > %(tmproot)s/md5sums.client" if os.system(cmd % params): raise TestFailure("Can't compute the source MD5 sums") - cmd = "safekeep %(args)s --cfg '%(tmproot)s/test.cfg'" + cmd = "safekeep %(args)s --conf '%(tmproot)s/test.conf'" if os.system(cmd % params): raise TestFailure("Can't backup files") os.mkdir(os.path.join(tmproot, 'restore')) @@ -314,10 +314,10 @@ 'mv -f .ssh/known_hosts.new .ssh/known_hosts' rcmdin(cmd, fingerprint, 'backup-op', server, 'deploy client fingerprint on server') - snap_cfg = '' + snap_conf = '' if perform_snapshots: - snap_cfg = '<snapshot device="/dev/mapper/VolGroup00-LogVol00" size="50M"/>' - cfg = """ + snap_conf = '<snapshot device="/dev/mapper/VolGroup00-LogVol00" size="50M"/>' + conf = """ <backup id="test-client"> <host name="%s" key-data="%s" /> <repo path="/home/backup-op/client/data" retention="5h"/> @@ -333,9 +333,9 @@ <include path="/srv" /> </data> </backup> - """ % (client, key_data, snap_cfg) + """ % (client, key_data, snap_conf) - writefile('/etc/safekeep.d/test-client.cfg', cfg, '664', 'w', 'root', server) + writefile('/etc/safekeep.d/test-client.conf', conf, '664', 'w', 'root', server) cmd = 'rm -rf client; mkdir -p client/data' rcmd(cmd, 'backup-op', server, 'create data repo') Modified: safekeep/trunk/safekeep.spec.in =================================================================== --- safekeep/trunk/safekeep.spec.in 2007-01-26 21:46:41 UTC (rev 312) +++ safekeep/trunk/safekeep.spec.in 2007-01-26 22:02:56 UTC (rev 313) @@ -45,7 +45,7 @@ %dir %{_sysconfdir}/safekeep.d %{_bindir}/safekeep %{_mandir}/man1/safekeep.1* -%doc AUTHORS COPYING LICENSE README safekeep-test sample.cfg +%doc AUTHORS COPYING LICENSE README safekeep-test sample.conf %changelog Deleted: safekeep/trunk/sample.cfg =================================================================== --- safekeep/trunk/sample.cfg 2007-01-26 21:46:41 UTC (rev 312) +++ safekeep/trunk/sample.cfg 2007-01-26 22:02:56 UTC (rev 313) @@ -1,55 +0,0 @@ -<!-- the client backup id --> -<backup id="my.host.com primary backup"> - - <!-- the client backup host, the user under which the servers will connect, - the SSH keys used for launching "safekeep -c" and "rdiff-backup" --> - <host - name="localhost" user="guest" - key-ctrl="/home/dimi/.ssh/backup_id_dsa" - key-data="/home/dimi/.ssh/backup2_id_dsa" - /> - - <!-- location where the backuped data will be stored on the server - and for how long (s=sec, m=min, h=hours, D=days, W=weeks, M=months, or Y=years) --> - <repo - path="./tmp" - retention="10D" - /> - - <!-- settings for database dump and for volume snapshot --> - <setup> - - <!-- database type ("postgres" or "mysql"), user with backup rights, - location of the dump file on the client host, and flag to remove - or not the dump file after the backup is done --> - <dump - type="postgres" - db="dbname" - user="foobar" - file="/var/backup/dumps/mydata" - cleanup="true" - /> - - <!-- what volume is to be snapshoted (device location) and the size - of the snapshot (unallocated space must exist in the volume group) --> - <snapshot - device="/path/to/volume" - size="500M" - /> - - </setup> - - <!-- data to be backuped --> - <data> - <!-- each type of tag can be present more than one time --> - <!-- if a database dump was created, it must be added in this section --> - <include path="/home"/> - <exclude path="/home/guest"/> - - <include glob="**/important/"/> - <exclude glob="/home/*/tmp"/> - - <include regexp=".*\.ogg"/> - <exclude regexp=".*\.mp3"/> - </data> -</backup> Copied: safekeep/trunk/sample.conf (from rev 301, safekeep/trunk/sample.cfg) =================================================================== --- safekeep/trunk/sample.conf (rev 0) +++ safekeep/trunk/sample.conf 2007-01-26 22:02:56 UTC (rev 313) @@ -0,0 +1,55 @@ +<!-- the client backup id --> +<backup id="my.host.com primary backup"> + + <!-- the client backup host, the user under which the servers will connect, + the SSH keys used for launching "safekeep -c" and "rdiff-backup" --> + <host + name="localhost" user="guest" + key-ctrl="/home/dimi/.ssh/backup_id_dsa" + key-data="/home/dimi/.ssh/backup2_id_dsa" + /> + + <!-- location where the backuped data will be stored on the server + and for how long (s=sec, m=min, h=hours, D=days, W=weeks, M=months, or Y=years) --> + <repo + path="./tmp" + retention="10D" + /> + + <!-- settings for database dump and for volume snapshot --> + <setup> + + <!-- database type ("postgres" or "mysql"), user with backup rights, + location of the dump file on the client host, and flag to remove + or not the dump file after the backup is done --> + <dump + type="postgres" + db="dbname" + user="foobar" + file="/var/backup/dumps/mydata" + cleanup="true" + /> + + <!-- what volume is to be snapshoted (device location) and the size + of the snapshot (unallocated space must exist in the volume group) --> + <snapshot + device="/path/to/volume" + size="500M" + /> + + </setup> + + <!-- data to be backuped --> + <data> + <!-- each type of tag can be present more than one time --> + <!-- if a database dump was created, it must be added in this section --> + <include path="/home"/> + <exclude path="/home/guest"/> + + <include glob="**/important/"/> + <exclude glob="/home/*/tmp"/> + + <include regexp=".*\.ogg"/> + <exclude regexp=".*\.mp3"/> + </data> +</backup> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <di...@us...> - 2007-01-27 17:10:04
|
Revision: 318 http://safekeep.svn.sourceforge.net/safekeep/?rev=318&view=rev Author: dimi Date: 2007-01-27 09:09:58 -0800 (Sat, 27 Jan 2007) Log Message: ----------- Use sendmail is no SMTP server is specified. Modified Paths: -------------- safekeep/trunk/doc/safekeep.txt safekeep/trunk/safekeep Modified: safekeep/trunk/doc/safekeep.txt =================================================================== --- safekeep/trunk/doc/safekeep.txt 2007-01-26 23:25:37 UTC (rev 317) +++ safekeep/trunk/doc/safekeep.txt 2007-01-27 17:09:58 UTC (rev 318) @@ -99,7 +99,7 @@ -m, --smtp=SMTP:: Specifies the SMTP server used for sending - mails when `-e` is used. Defaults to `localhost`. + mails when `-e` is used. Defaults to using `/usr/sbin/sendmail`. KEYS OPTIONS ------------ Modified: safekeep/trunk/safekeep =================================================================== --- safekeep/trunk/safekeep 2007-01-26 23:25:37 UTC (rev 317) +++ safekeep/trunk/safekeep 2007-01-27 17:09:58 UTC (rev 318) @@ -84,11 +84,19 @@ hostname = socket.gethostname() msg = 'From: SafeKeep@' + hostname + \ '\r\nTo: ' + ', '.join(email) + \ - '\r\nSubject: SafeKeep results on ' + hostname + \ - '\r\n\r\n' + '\n'.join(logbuf) - server = smtplib.SMTP(smtp) - server.sendmail('SafeKeep@' + hostname, email, msg) - server.quit() + '\r\nSubject: SafeKeep results for ' + hostname + \ + '\r\n\r\n' + '\r\n'.join(logbuf) + if smtp: + server = smtplib.SMTP(smtp) + server.sendmail('SafeKeep@' + hostname, email, msg) + server.quit() + else: + cmd = '/usr/sbin/sendmail -t' + pin = os.popen(cmd, 'w') + try: + pin.write(msg) + finally: + pin.close() def is_temp_root(dir): return dir != '/' @@ -758,7 +766,7 @@ print 'server options:' print '-c, --conf=FILE|DIR use the given configuration file/directory' print '-e, --email=EMAIL send results by email (can appear multiple times)' - print '-m, --smtp=SMTP SMTP server to use when sending mails (default: built-in SMTP)' + print '-m, --smtp=SMTP SMTP server to use when sending mails (default: sendmail)' if exitcode is not None: sys.exit(exitcode) def main(): This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <di...@us...> - 2007-01-27 17:11:52
|
Revision: 319 http://safekeep.svn.sourceforge.net/safekeep/?rev=319&view=rev Author: dimi Date: 2007-01-27 09:11:50 -0800 (Sat, 27 Jan 2007) Log Message: ----------- Rename the -m option to -s, now that it's available. Modified Paths: -------------- safekeep/trunk/doc/safekeep.txt safekeep/trunk/safekeep Modified: safekeep/trunk/doc/safekeep.txt =================================================================== --- safekeep/trunk/doc/safekeep.txt 2007-01-27 17:09:58 UTC (rev 318) +++ safekeep/trunk/doc/safekeep.txt 2007-01-27 17:11:50 UTC (rev 319) @@ -7,7 +7,7 @@ SYNOPSIS -------- -'safekeep' [--server] [-q] [-v] [-c file] [-e <email>] [-m <smtp>] <clientid>* +'safekeep' [--server] [-q] [-v] [-c file] [-e <email>] [-s <smtp>] <clientid>* 'safekeep' --client @@ -97,9 +97,9 @@ the mail address where the logs are to be send. Can be specified more than once to send reports to multiple addresses. --m, --smtp=SMTP:: - Specifies the SMTP server used for sending - mails when `-e` is used. Defaults to using `/usr/sbin/sendmail`. +-s, --smtp=SMTP:: + Specifies the SMTP server used for sending mails when `-e` is used. + Defaults to using `/usr/sbin/sendmail`. KEYS OPTIONS ------------ Modified: safekeep/trunk/safekeep =================================================================== --- safekeep/trunk/safekeep 2007-01-27 17:09:58 UTC (rev 318) +++ safekeep/trunk/safekeep 2007-01-27 17:11:50 UTC (rev 319) @@ -766,12 +766,12 @@ print 'server options:' print '-c, --conf=FILE|DIR use the given configuration file/directory' print '-e, --email=EMAIL send results by email (can appear multiple times)' - print '-m, --smtp=SMTP SMTP server to use when sending mails (default: sendmail)' + print '-s, --smtp=SMTP SMTP server to use when sending mails (default: sendmail)' if exitcode is not None: sys.exit(exitcode) def main(): try: - opts, args = getopt.getopt(sys.argv[1:], 'c:e:hm:qvV', + opts, args = getopt.getopt(sys.argv[1:], 'c:e:hs:qvV', [ 'conf=', 'client', 'clientid=', 'deploy', 'email=', 'help', 'keys', 'print', 'quiet', 'server', 'smtp=', 'status', @@ -795,7 +795,7 @@ email.append(a) elif o in ('-h', '--help'): usage(0) - elif o in ('-m', '--smtp'): + elif o in ('-s', '--smtp'): smtp = a elif o in ('--server', ): if mode: usage(2) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <di...@us...> - 2007-01-27 18:10:39
|
Revision: 320 http://safekeep.svn.sourceforge.net/safekeep/?rev=320&view=rev Author: dimi Date: 2007-01-27 10:10:33 -0800 (Sat, 27 Jan 2007) Log Message: ----------- We need to support the -c/--conf in --keys mode too Modified Paths: -------------- safekeep/trunk/doc/safekeep.txt safekeep/trunk/safekeep Modified: safekeep/trunk/doc/safekeep.txt =================================================================== --- safekeep/trunk/doc/safekeep.txt 2007-01-27 17:11:50 UTC (rev 319) +++ safekeep/trunk/doc/safekeep.txt 2007-01-27 18:10:33 UTC (rev 320) @@ -11,7 +11,7 @@ 'safekeep' --client -'safekeep' --keys [-q] [-v] [--status] [--print] [--deploy] <clientid>* +'safekeep' --keys [-q] [-v] [-c file] [--status] [--print] [--deploy] <clientid>* 'safekeep' -h | -V Modified: safekeep/trunk/safekeep =================================================================== --- safekeep/trunk/safekeep 2007-01-27 17:11:50 UTC (rev 319) +++ safekeep/trunk/safekeep 2007-01-27 18:10:33 UTC (rev 320) @@ -759,6 +759,7 @@ print '-V, --version show the version number and exit' print print 'keys options:' + print '-c, --conf=FILE|DIR use the given configuration file/directory' print '--status display the key status for the clients (default)' print '--print display the authorization keys' print '--deploy deploy the authorization keys' @@ -826,9 +827,12 @@ if mode is not 'keys' and (keys_status or keys_print or keys_deploy): usage(2) - if mode is not 'server' and (cfglocs or email or smtp): + if mode is not 'server' and (email or smtp): usage(2) + if mode is 'client' and cfglocs: + usage(2) + if len(cfglocs) == 0: cfglocs.append(config_dir) cfgs = parse_locs(cfglocs) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <di...@us...> - 2007-01-27 18:13:41
|
Revision: 321 http://safekeep.svn.sourceforge.net/safekeep/?rev=321&view=rev Author: dimi Date: 2007-01-27 10:13:37 -0800 (Sat, 27 Jan 2007) Log Message: ----------- Remove the --client mode from the online help screen, this is an internal-only mode, and it just makes the output more confusing and difficult to read. Modified Paths: -------------- safekeep/trunk/doc/safekeep.txt safekeep/trunk/safekeep Modified: safekeep/trunk/doc/safekeep.txt =================================================================== --- safekeep/trunk/doc/safekeep.txt 2007-01-27 18:10:33 UTC (rev 320) +++ safekeep/trunk/doc/safekeep.txt 2007-01-27 18:13:37 UTC (rev 321) @@ -9,10 +9,10 @@ -------- 'safekeep' [--server] [-q] [-v] [-c file] [-e <email>] [-s <smtp>] <clientid>* +'safekeep' --keys [-q] [-v] [-c file] [--status] [--print] [--deploy] <clientid>* + 'safekeep' --client -'safekeep' --keys [-q] [-v] [-c file] [--status] [--print] [--deploy] <clientid>* - 'safekeep' -h | -V DESCRIPTION Modified: safekeep/trunk/safekeep =================================================================== --- safekeep/trunk/safekeep 2007-01-27 18:10:33 UTC (rev 320) +++ safekeep/trunk/safekeep 2007-01-27 18:13:37 UTC (rev 321) @@ -744,28 +744,25 @@ def usage(exitcode=None): print 'usage: %s [--server] [common options] [server options] <client-id>*' % (sys.argv[0]) - print ' %s --client [common options]' % (sys.argv[0]) print ' %s --keys [common options] [keys options] <client-id>*' % (sys.argv[0]) print print 'mode selection (pick one):' print '--server launch in server mode (default)' - print '--client launch in client mode' print '--keys launch in keys management mode' print print 'common options:' + print '-c, --conf=FILE|DIR use the given configuration file/directory' print '-h, --help show this help message and exit' print '-q, --quiet decreases the verbosity level' print '-v, --verbose increases the verbosity level' print '-V, --version show the version number and exit' print print 'keys options:' - print '-c, --conf=FILE|DIR use the given configuration file/directory' print '--status display the key status for the clients (default)' print '--print display the authorization keys' print '--deploy deploy the authorization keys' print print 'server options:' - print '-c, --conf=FILE|DIR use the given configuration file/directory' print '-e, --email=EMAIL send results by email (can appear multiple times)' print '-s, --smtp=SMTP SMTP server to use when sending mails (default: sendmail)' if exitcode is not None: sys.exit(exitcode) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <di...@us...> - 2007-01-31 15:24:09
|
Revision: 341 http://safekeep.svn.sourceforge.net/safekeep/?rev=341&view=rev Author: dimi Date: 2007-01-31 07:21:00 -0800 (Wed, 31 Jan 2007) Log Message: ----------- Install a daily cron task for safekeep Modified Paths: -------------- safekeep/trunk/safekeep.spec.in Added Paths: ----------- safekeep/trunk/safekeep.cron Added: safekeep/trunk/safekeep.cron =================================================================== --- safekeep/trunk/safekeep.cron (rev 0) +++ safekeep/trunk/safekeep.cron 2007-01-31 15:21:00 UTC (rev 341) @@ -0,0 +1,6 @@ +#!/bin/sh + +PATH=/sbin:/bin:/usr/sbin:/usr/bin + +sudo -H -u safekeep safekeep --server + Property changes on: safekeep/trunk/safekeep.cron ___________________________________________________________________ Name: svn:executable + * Modified: safekeep/trunk/safekeep.spec.in =================================================================== --- safekeep/trunk/safekeep.spec.in 2007-01-30 19:31:43 UTC (rev 340) +++ safekeep/trunk/safekeep.spec.in 2007-01-31 15:21:00 UTC (rev 341) @@ -67,6 +67,8 @@ %install install -d -m 755 "%{buildroot}%{_sysconfdir}/safekeep.d" +install -d -m 755 "%{buildroot}%{_sysconfdir}/cron.daily" +install -m 755 safekeep.cron "%{buildroot}%{_sysconfdir}/cron.daily" install -d -m 755 "%{buildroot}%{_bindir}/" install -m 755 safekeep "%{buildroot}%{_bindir}/" install -d -m 755 "%{buildroot}%{_mandir}/man1/" @@ -98,6 +100,7 @@ %attr(750,%{name},%{name}) %dir %{homedir} %attr(700,%{name},%{name}) %dir %{homedir}/.ssh %dir %{_sysconfdir}/safekeep.d +%config %{_sysconfdir}/cron.daily/safekeep.cron %doc safekeep-test sample.conf %doc AUTHORS COPYING LICENSE This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <di...@us...> - 2007-01-31 16:26:14
|
Revision: 343 http://safekeep.svn.sourceforge.net/safekeep/?rev=343&view=rev Author: dimi Date: 2007-01-31 08:19:54 -0800 (Wed, 31 Jan 2007) Log Message: ----------- Add ChangeLog generation support Modified Paths: -------------- safekeep/trunk/Makefile Added Paths: ----------- safekeep/trunk/doc/users Modified: safekeep/trunk/Makefile =================================================================== --- safekeep/trunk/Makefile 2007-01-31 15:55:06 UTC (rev 342) +++ safekeep/trunk/Makefile 2007-01-31 16:19:54 UTC (rev 343) @@ -71,6 +71,9 @@ $(DOC_HTML) $(DOC_MAN): doc/asciidoc.conf +changelog: + svn log -v --xml | svn2log.py -D 0 -u doc/users + tar: tar-snapshot tar-snapshot: Added: safekeep/trunk/doc/users =================================================================== --- safekeep/trunk/doc/users (rev 0) +++ safekeep/trunk/doc/users 2007-01-31 16:19:54 UTC (rev 343) @@ -0,0 +1,7 @@ +# mapping used by svn2log from logins to names + +anonymous Dimi Paun <di...@la...> +dimi Dimi Paun <di...@la...> +ed Eduard Malinschi <ed...@la...> +mihai Mihai Popa <mi...@la...> +stelian Stelian Pop <st...@la...> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <di...@us...> - 2007-01-31 19:25:05
|
Revision: 345 http://safekeep.svn.sourceforge.net/safekeep/?rev=345&view=rev Author: dimi Date: 2007-01-31 11:25:01 -0800 (Wed, 31 Jan 2007) Log Message: ----------- Add a TODO file with ideas for the future Modified Paths: -------------- safekeep/trunk/safekeep.spec.in Added Paths: ----------- safekeep/trunk/TODO Added: safekeep/trunk/TODO =================================================================== --- safekeep/trunk/TODO (rev 0) +++ safekeep/trunk/TODO 2007-01-31 19:25:01 UTC (rev 345) @@ -0,0 +1,15 @@ +These are ideas that we need to look at post 1.0. + + +Future: + * Find a way to show man page on website with header and footer + * decide how big the snapshot size should be automagically + * fully automatic shapshotting mode + * configuration inheritance + * transactional store of ops on server side, and automagic recovery from errors + * Windows support for the client + * Write SE Linux rules to limit access rights (akin to the httpd ones) + * Add tests db dumps + * Run the server in a chroot-jail + * Compare mirroring with a straight `rsync` + Modified: safekeep/trunk/safekeep.spec.in =================================================================== --- safekeep/trunk/safekeep.spec.in 2007-01-31 16:20:33 UTC (rev 344) +++ safekeep/trunk/safekeep.spec.in 2007-01-31 19:25:01 UTC (rev 345) @@ -91,7 +91,7 @@ %defattr(-,root,root,-) %{_bindir}/safekeep %{_mandir}/man1/safekeep.1* -%doc AUTHORS COPYING LICENSE README +%doc AUTHORS COPYING LICENSE README TODO %files client %doc AUTHORS COPYING LICENSE This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <di...@us...> - 2007-01-31 20:06:29
|
Revision: 346 http://safekeep.svn.sourceforge.net/safekeep/?rev=346&view=rev Author: dimi Date: 2007-01-31 12:06:22 -0800 (Wed, 31 Jan 2007) Log Message: ----------- Add skeletal man page for the configuration file. Modified Paths: -------------- safekeep/trunk/Makefile safekeep/trunk/safekeep.spec.in Added Paths: ----------- safekeep/trunk/doc/safekeep.conf.txt Modified: safekeep/trunk/Makefile =================================================================== --- safekeep/trunk/Makefile 2007-01-31 19:25:01 UTC (rev 345) +++ safekeep/trunk/Makefile 2007-01-31 20:06:22 UTC (rev 346) @@ -10,9 +10,9 @@ dirname := $(shell basename $(PWD)) rpmroot := $(shell grep '%_topdir' ~/.rpmmacros | sed 's/^[^ \t]*[ \t]*//') svnroot := $(shell LANG=C svn info |grep Root |cut -c 18-) -MAN_TXT := doc/safekeep.txt +MAN_TXT := doc/safekeep.txt doc/safekeep.conf.txt +DOC_MAN := doc/safekeep.1 doc/safekeep.conf.5 DOC_HTML := $(patsubst %.txt,%.html,$(MAN_TXT)) -DOC_MAN := $(patsubst %.txt,%.1,$(MAN_TXT)) all: help @@ -63,7 +63,7 @@ %.html: %.txt asciidoc -b xhtml11 -d manpage -f doc/asciidoc.conf $< -%.1: %.xml +%.1 %.5: %.xml xmlto -o doc -m doc/callouts.xsl man $< %.xml: %.txt @@ -123,4 +123,4 @@ clean: rm -f {.,doc,debian}/*~ *.py[co] rm -f $(name).spec debian/changelog - rm -f doc/*.xml doc/*.html doc/*.1 + rm -f doc/*.xml doc/*.html doc/*.[15] Added: safekeep/trunk/doc/safekeep.conf.txt =================================================================== --- safekeep/trunk/doc/safekeep.conf.txt (rev 0) +++ safekeep/trunk/doc/safekeep.conf.txt 2007-01-31 20:06:22 UTC (rev 346) @@ -0,0 +1,27 @@ +safekeep.conf(5) +================ + +NAME +---- +safekeep.conf - Configuration file for 'safekeep(1)' + +SYNOPSIS +-------- +TODO + +DESCRIPTION +----------- +TODO + +PARAMETERS +---------- +TODO + +FILES +----- + /etc/safekeep.d/ + +SEE ALSO +-------- +safekeep(1), rdiff-backup(1) + Modified: safekeep/trunk/safekeep.spec.in =================================================================== --- safekeep/trunk/safekeep.spec.in 2007-01-31 19:25:01 UTC (rev 345) +++ safekeep/trunk/safekeep.spec.in 2007-01-31 20:06:22 UTC (rev 346) @@ -73,6 +73,8 @@ install -m 755 safekeep "%{buildroot}%{_bindir}/" install -d -m 755 "%{buildroot}%{_mandir}/man1/" install -m 755 doc/safekeep.1 "%{buildroot}%{_mandir}/man1/" +install -d -m 755 "%{buildroot}%{_mandir}/man5/" +install -m 755 doc/safekeep.conf.5 "%{buildroot}%{_mandir}/man5/" install -d -m 750 "%{buildroot}%{homedir}" install -d -m 700 "%{buildroot}%{homedir}/.ssh" @@ -91,6 +93,7 @@ %defattr(-,root,root,-) %{_bindir}/safekeep %{_mandir}/man1/safekeep.1* +%{_mandir}/man5/safekeep.5* %doc AUTHORS COPYING LICENSE README TODO %files client This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <di...@us...> - 2007-02-01 15:32:11
|
Revision: 353 http://safekeep.svn.sourceforge.net/safekeep/?rev=353&view=rev Author: dimi Date: 2007-02-01 07:32:01 -0800 (Thu, 01 Feb 2007) Log Message: ----------- Install the daily cron task as 'safekeep', not 'safekeep.cron' to follow the common practice. Modified Paths: -------------- safekeep/trunk/debian/rules safekeep/trunk/safekeep.spec.in Modified: safekeep/trunk/debian/rules =================================================================== --- safekeep/trunk/debian/rules 2007-02-01 04:13:14 UTC (rev 352) +++ safekeep/trunk/debian/rules 2007-02-01 15:32:01 UTC (rev 353) @@ -22,7 +22,7 @@ install -d -m 755 $(CURDIR)/debian/safekeep-server/etc/safekeep.d install -d -m 755 $(CURDIR)/debian/safekeep-server/etc/cron.daily - install -m 755 safekeep.cron $(CURDIR)/debian/safekeep-server/etc/cron.daily + install -m 755 safekeep.cron $(CURDIR)/debian/safekeep-server/etc/cron.daily/safekeep binary-indep: install dh_testdir Modified: safekeep/trunk/safekeep.spec.in =================================================================== --- safekeep/trunk/safekeep.spec.in 2007-02-01 04:13:14 UTC (rev 352) +++ safekeep/trunk/safekeep.spec.in 2007-02-01 15:32:01 UTC (rev 353) @@ -75,7 +75,7 @@ %install install -d -m 755 "%{buildroot}%{_sysconfdir}/safekeep.d" install -d -m 755 "%{buildroot}%{_sysconfdir}/cron.daily" -install -m 755 safekeep.cron "%{buildroot}%{_sysconfdir}/cron.daily" +install -m 755 safekeep.cron "%{buildroot}%{_sysconfdir}/cron.daily/safekeep" install -d -m 755 "%{buildroot}%{_bindir}/" install -m 755 safekeep "%{buildroot}%{_bindir}/" install -d -m 755 "%{buildroot}%{_mandir}/man1/" @@ -110,7 +110,7 @@ %attr(750,%{name},%{name}) %dir %{homedir} %attr(700,%{name},%{name}) %dir %{homedir}/.ssh %dir %{_sysconfdir}/safekeep.d -%config %{_sysconfdir}/cron.daily/safekeep.cron +%config %{_sysconfdir}/cron.daily/safekeep %doc safekeep-test sample.conf %doc AUTHORS COPYING LICENSE This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <di...@us...> - 2007-02-05 18:29:13
|
Revision: 394 http://safekeep.svn.sourceforge.net/safekeep/?rev=394&view=rev Author: dimi Date: 2007-02-05 10:28:58 -0800 (Mon, 05 Feb 2007) Log Message: ----------- Avoid scanning /etc/safekeep.d in non-client mode. Modified Paths: -------------- safekeep/trunk/doc/safekeep.txt safekeep/trunk/safekeep Modified: safekeep/trunk/doc/safekeep.txt =================================================================== --- safekeep/trunk/doc/safekeep.txt 2007-02-05 15:23:26 UTC (rev 393) +++ safekeep/trunk/doc/safekeep.txt 2007-02-05 18:28:58 UTC (rev 394) @@ -87,8 +87,8 @@ This can be a single file (for a single client configuration) or a directory containing several configuration files (one per backup client). Can be specified multiple times. - If not specified at all, SafeKeep will default to searching - `/etc/safekeep.d/` for configuration files. + If not specified at all, SafeKeep will default in non-client mode + to searching `/etc/safekeep.d/` for configuration files. Simply using this default is the recommended usage. -e, --email=EMAIL:: Modified: safekeep/trunk/safekeep =================================================================== --- safekeep/trunk/safekeep 2007-02-05 15:23:26 UTC (rev 393) +++ safekeep/trunk/safekeep 2007-02-05 18:28:58 UTC (rev 394) @@ -822,7 +822,7 @@ if mode is 'client' and cfglocs: usage(2) - if len(cfglocs) == 0: + if mode is not 'client' and len(cfglocs) == 0: cfglocs.append(config_dir) cfgs = parse_locs(cfglocs) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <di...@us...> - 2007-02-07 01:42:58
|
Revision: 402 http://safekeep.svn.sourceforge.net/safekeep/?rev=402&view=rev Author: dimi Date: 2007-02-06 17:42:55 -0800 (Tue, 06 Feb 2007) Log Message: ----------- Add some documentation about data restoration Modified Paths: -------------- safekeep/trunk/TODO safekeep/trunk/doc/safekeep.txt Modified: safekeep/trunk/TODO =================================================================== --- safekeep/trunk/TODO 2007-02-06 19:16:13 UTC (rev 401) +++ safekeep/trunk/TODO 2007-02-07 01:42:55 UTC (rev 402) @@ -1,6 +1,5 @@ Next release: * Support more of rdiff-backup special file selectors - * Document data restore in man page * Add tests db dumps Future (post 1.0): Modified: safekeep/trunk/doc/safekeep.txt =================================================================== --- safekeep/trunk/doc/safekeep.txt 2007-02-06 19:16:13 UTC (rev 401) +++ safekeep/trunk/doc/safekeep.txt 2007-02-07 01:42:55 UTC (rev 402) @@ -198,6 +198,26 @@ # sudo -H -u safekeep safekeep --keys --deploy ------------------------------------------------------------------------ +RESTORING +--------- +Since `safekeep(1)` is built around `rdiff-backup(1)`, it doesn't have any +built-in restore capabilities. It simply relies on `rdiff-backup` to perform +this task. + +To do so, you just need to know the directory where the data is actually +stored. In a typical installation, for a box configured via the file +`/etc/safekeep.d/mybox.conf`, the data will be stored under +`/var/lib/safekeep/mybox/`. Please refer to `safekeep.conf(5)` for more +information on this matter. + +Once you have determined where the data will be stored (we'll continue +the example above), all you have to do is run `rdiff-backup`: +------------------------------------------------------------------------ + # rdiff-backup /var/lib/safekeep/mybox my-restore-dir +------------------------------------------------------------------------ +You will be able to find more information on the restore procedure in +the `rdiff-backup(1)` man page. + SEE ALSO -------- rdiff-backup(1), safekeep.conf(5) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <di...@us...> - 2007-02-11 01:03:32
|
Revision: 410 http://safekeep.svn.sourceforge.net/safekeep/?rev=410&view=rev Author: dimi Date: 2007-02-10 17:03:31 -0800 (Sat, 10 Feb 2007) Log Message: ----------- Python 2.2 is good enough Modified Paths: -------------- safekeep/trunk/TODO safekeep/trunk/safekeep.spec.in Modified: safekeep/trunk/TODO =================================================================== --- safekeep/trunk/TODO 2007-02-10 17:00:13 UTC (rev 409) +++ safekeep/trunk/TODO 2007-02-11 01:03:31 UTC (rev 410) @@ -3,7 +3,6 @@ * Add an ANNOUNCE file * Add an INSTALL file * Add reference to SF - * Relax the Python requirements * Add note on include/excludes * Support more of rdiff-backup special file selectors * Add tests db dumps Modified: safekeep/trunk/safekeep.spec.in =================================================================== --- safekeep/trunk/safekeep.spec.in 2007-02-10 17:00:13 UTC (rev 409) +++ safekeep/trunk/safekeep.spec.in 2007-02-11 01:03:31 UTC (rev 410) @@ -28,7 +28,7 @@ Group: Applications/System Obsoletes: safekeep Requires: rdiff-backup -Requires(pre): python >= 2.3 +Requires(pre): python >= 2.2 %description common SafeKeep is a client/server backup system which enhances the This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <di...@us...> - 2007-02-11 01:17:07
|
Revision: 412 http://safekeep.svn.sourceforge.net/safekeep/?rev=412&view=rev Author: dimi Date: 2007-02-10 17:17:04 -0800 (Sat, 10 Feb 2007) Log Message: ----------- More on include/exclude directives Modified Paths: -------------- safekeep/trunk/TODO safekeep/trunk/doc/safekeep.txt Modified: safekeep/trunk/TODO =================================================================== --- safekeep/trunk/TODO 2007-02-11 01:07:56 UTC (rev 411) +++ safekeep/trunk/TODO 2007-02-11 01:17:04 UTC (rev 412) @@ -3,7 +3,6 @@ * Add an ANNOUNCE file * Add an INSTALL file * Add reference to SF - * Add note on include/excludes * Support more of rdiff-backup special file selectors * Add tests db dumps Modified: safekeep/trunk/doc/safekeep.txt =================================================================== --- safekeep/trunk/doc/safekeep.txt 2007-02-11 01:07:56 UTC (rev 411) +++ safekeep/trunk/doc/safekeep.txt 2007-02-11 01:17:04 UTC (rev 412) @@ -218,6 +218,32 @@ You will be able to find more information on the restore procedure in the `rdiff-backup(1)` man page. +FILE SELECTION +-------------- +It is important to note that the `include`/`exclude` directives that +control file selection are matched in the order they appear in the +configuration file, and the first one that matches dictates whether +the file will be included or excluded. As a result, you have to +add the more specific ones first, or the more generic specifications +will always win. For example: +------------------------------------------------------------------------ +... + <include path="/home"/> + <exclude path="/home/joe"/> +... +------------------------------------------------------------------------ +will NOT do what you expect, because the `/home` will match before +`/home/joe`, and thus all files under `/home` will be included. +The correct way is to flip the two around +------------------------------------------------------------------------ +... + <exclude path="/home/joe"/> + <include path="/home"/> +... +------------------------------------------------------------------------ + +Please see safekeep.conf(5) for more information on file selection. + SEE ALSO -------- rdiff-backup(1), safekeep.conf(5) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <di...@us...> - 2007-02-12 04:30:38
|
Revision: 414 http://safekeep.svn.sourceforge.net/safekeep/?rev=414&view=rev Author: dimi Date: 2007-02-11 20:30:36 -0800 (Sun, 11 Feb 2007) Log Message: ----------- Add a way to install SafeKeep from source. Modified Paths: -------------- safekeep/trunk/Makefile safekeep/trunk/README safekeep/trunk/TODO Modified: safekeep/trunk/Makefile =================================================================== --- safekeep/trunk/Makefile 2007-02-12 00:40:46 UTC (rev 413) +++ safekeep/trunk/Makefile 2007-02-12 04:30:36 UTC (rev 414) @@ -21,6 +21,7 @@ @echo "Targets:" @echo " help Displays this message" @echo " info Displays package information (version, tag, etc.)" + @echo " install Installs safekeep and the online documentation" @echo " docs Builds all documentation formats" @echo " build Builds everything needed for an installation" @echo " deb Builds snapshot binary and source DEBs" @@ -74,6 +75,11 @@ changelog: svn log -v --xml | svn2log.py -D 0 -u doc/users +install: $(DOC_MAN) + install -m 755 safekeep "/usr/bin/" + install -m 755 doc/safekeep.1 "/usr/share/man/man1/" + install -m 755 doc/safekeep.conf.5 "/usr/share/man/man5/" + tar: tar-snapshot tar-snapshot: Modified: safekeep/trunk/README =================================================================== --- safekeep/trunk/README 2007-02-12 00:40:46 UTC (rev 413) +++ safekeep/trunk/README 2007-02-12 04:30:36 UTC (rev 414) @@ -7,6 +7,27 @@ * python * openssh +Install +~~~~~~~ +It is recommended that you install the packaged version of SafeKeep, +via the provided RPMs or DEBs. However, if you can not use those +packages, or want to install from source, you can do so by running +as root the command: + + $ make install + +NOTE: installing SafeKeep this way is not equivalent to a package +install. You will have to manually take care of a number of other +steps that are automatically taken care of by the packages such as +creating /etc/safekeep.d, installing the cron job script, creating +the safekeep user, and so on. + +Please make sure you understand all the ramifications of doing a +source install before you chose this option. Feel free to ask +questions on the mailing list: + saf...@li... +if you run into any problems. + Full Test ~~~~~~~~~ To run the full test simply invoke the target: Modified: safekeep/trunk/TODO =================================================================== --- safekeep/trunk/TODO 2007-02-12 00:40:46 UTC (rev 413) +++ safekeep/trunk/TODO 2007-02-12 04:30:36 UTC (rev 414) @@ -1,5 +1,4 @@ Next release: - * Support installation from the Makefile * Add an ANNOUNCE file * Add an INSTALL file * Add reference to SF This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <di...@us...> - 2007-02-12 05:07:30
|
Revision: 416 http://safekeep.svn.sourceforge.net/safekeep/?rev=416&view=rev Author: dimi Date: 2007-02-11 21:07:28 -0800 (Sun, 11 Feb 2007) Log Message: ----------- dd an ANNOUNCE file for release 0.9.1 Modified Paths: -------------- safekeep/trunk/TODO Added Paths: ----------- safekeep/trunk/ANNOUNCE Added: safekeep/trunk/ANNOUNCE =================================================================== --- safekeep/trunk/ANNOUNCE (rev 0) +++ safekeep/trunk/ANNOUNCE 2007-02-12 05:07:28 UTC (rev 416) @@ -0,0 +1,42 @@ +This is release 0.9.1 of SafeKeep, a centralized and easy to use +backup application that combines the best features of a mirror +and an incremental backup. + +What's new in this release: + - Lots of documentation improvements; + - Prepare the RPMs for Fedora acceptance; + - Automatic creation of data store directory; + - A few bug fixes. + +Because of lags created by using mirrors, this message may reach you +before the release is available at the public sites. The sources will +be available from the following locations: + + - RedHat EL 3,4, CentOS 3,4, Fedora 4,5,6: + http://prdownloads.sourceforge.net/safekeep/safekeep-common-0.9.1-1.noarch.rpm + http://prdownloads.sourceforge.net/safekeep/safekeep-client-0.9.1-1.noarch.rpm + http://prdownloads.sourceforge.net/safekeep/safekeep-server-0.9.1-1.noarch.rpm + http://prdownloads.sourceforge.net/safekeep/safekeep-0.9.1-1.src.rpm + + - Ubuntu Edgy, Dapper, and Breezy: + http://prdownloads.sourceforge.net/safekeep/safekeep-common_0.9.1_all.deb + http://prdownloads.sourceforge.net/safekeep/safekeep-client_0.9.1_all.deb + http://prdownloads.sourceforge.net/safekeep/safekeep-server_0.9.1_all.deb + + - Source: + http://prdownloads.sourceforge.net/safekeep/safekeep-0.9.1.tar.gz + +To find out more about the project visit on our website: + http://safekeep.sourceforge.net + +You can also get the current source directly from the Subversion (SVN) +repositories: + http://safekeep.sourceforge.net/download.shtml#svn + +Patches should be submitted to "saf...@li...". +Please don't forget to include a ChangeLog entry. If you submitted a patch, +please check to make sure it has been included in the new release. + +-- +Dimi Paun <di...@la...> +Lattica, Inc. Modified: safekeep/trunk/TODO =================================================================== --- safekeep/trunk/TODO 2007-02-12 04:36:46 UTC (rev 415) +++ safekeep/trunk/TODO 2007-02-12 05:07:28 UTC (rev 416) @@ -1,5 +1,4 @@ Next release: - * Add an ANNOUNCE file * Add an INSTALL file * Add reference to SF * Support more of rdiff-backup special file selectors This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <di...@us...> - 2007-03-04 20:13:28
|
Revision: 428 http://safekeep.svn.sourceforge.net/safekeep/?rev=428&view=rev Author: dimi Date: 2007-03-04 12:13:27 -0800 (Sun, 04 Mar 2007) Log Message: ----------- Move the client configuration files in /etc/safekeep/clients.d Change the extension of client config files to .backup from .client. Provide automatic migration code for DEB and RPM packages. Modified Paths: -------------- safekeep/trunk/debian/rules safekeep/trunk/debian/safekeep-server.dirs safekeep/trunk/debian/safekeep-server.postinst safekeep/trunk/safekeep safekeep/trunk/safekeep.spec.in Modified: safekeep/trunk/debian/rules =================================================================== --- safekeep/trunk/debian/rules 2007-03-04 17:52:31 UTC (rev 427) +++ safekeep/trunk/debian/rules 2007-03-04 20:13:27 UTC (rev 428) @@ -20,7 +20,7 @@ install -m 755 doc/safekeep.1 $(CURDIR)/debian/safekeep-common/usr/share/man/man1 install -m 755 doc/safekeep.conf.5 $(CURDIR)/debian/safekeep-common/usr/share/man/man5 - install -d -m 755 $(CURDIR)/debian/safekeep-server/etc/safekeep.d + install -d -m 755 $(CURDIR)/debian/safekeep-server/etc/safekeep/clients.d install -d -m 755 $(CURDIR)/debian/safekeep-server/etc/cron.daily install -m 755 safekeep.cron $(CURDIR)/debian/safekeep-server/etc/cron.daily/safekeep Modified: safekeep/trunk/debian/safekeep-server.dirs =================================================================== --- safekeep/trunk/debian/safekeep-server.dirs 2007-03-04 17:52:31 UTC (rev 427) +++ safekeep/trunk/debian/safekeep-server.dirs 2007-03-04 20:13:27 UTC (rev 428) @@ -1,2 +1,2 @@ etc/cron.daily -etc/safekeep.d +etc/safekeep Modified: safekeep/trunk/debian/safekeep-server.postinst =================================================================== --- safekeep/trunk/debian/safekeep-server.postinst 2007-03-04 17:52:31 UTC (rev 427) +++ safekeep/trunk/debian/safekeep-server.postinst 2007-03-04 20:13:27 UTC (rev 428) @@ -6,6 +6,14 @@ configure) adduser --quiet --system --home /var/lib/safekeep safekeep install -d -m 700 -o safekeep -g nogroup /var/lib/safekeep/.ssh + if test -d /etc/safekeep.d; then + for file in /etc/safekeep.d/*.conf; do + if test -f "$file"; then + mv "$file" /etc/safekeep/clients.d/`basename "$file" .conf`.backup + fi + done + rmdir /etc/safekeep.d 2> /dev/null || true + fi ;; abort-upgrade|abort-remove|abort-deconfigure) Modified: safekeep/trunk/safekeep =================================================================== --- safekeep/trunk/safekeep 2007-03-04 17:52:31 UTC (rev 427) +++ safekeep/trunk/safekeep 2007-03-04 20:13:27 UTC (rev 428) @@ -5,8 +5,8 @@ import xml.dom.minidom import socket, smtplib -config_dir = '/etc/safekeep.d' -config_ext = '.conf' +config_dir = '/etc/safekeep/clients.d' +config_ext = '.backup' logbuf = [] is_client = False verbosity_level = 1 Modified: safekeep/trunk/safekeep.spec.in =================================================================== --- safekeep/trunk/safekeep.spec.in 2007-03-04 17:52:31 UTC (rev 427) +++ safekeep/trunk/safekeep.spec.in 2007-03-04 20:13:27 UTC (rev 428) @@ -71,7 +71,7 @@ make build %install -install -d -m 755 "%{buildroot}%{_sysconfdir}/safekeep.d" +install -d -m 755 "%{buildroot}%{_sysconfdir}/safekeep/clients.d" install -d -m 755 "%{buildroot}%{_sysconfdir}/cron.daily" install -m 755 safekeep.cron "%{buildroot}%{_sysconfdir}/cron.daily/safekeep" install -d -m 755 "%{buildroot}%{_bindir}/" @@ -89,6 +89,16 @@ %pre server %{_sbindir}/useradd -r -d %{homedir} -s /sbin/nologin -u 186 %{name} 2> /dev/null || : +%post server +if test -d /etc/safekeep.d; then + for file in /etc/safekeep.d/*.conf; do + if test -f "$file"; then + mv "$file" /etc/safekeep/clients.d/`basename "$file" .conf`.backup + fi + done + rmdir /etc/safekeep.d 2> /dev/null || : +fi + %preun server if [ "$1" = "0" ]; then %{_sbindir}/userdel %{name} >> /dev/null 2>&1 || : @@ -107,7 +117,7 @@ %files server %attr(750,%{name},%{name}) %dir %{homedir} %attr(700,%{name},%{name}) %dir %{homedir}/.ssh -%dir %{_sysconfdir}/safekeep.d +%dir %{_sysconfdir}/safekeep %config %{_sysconfdir}/cron.daily/safekeep %doc safekeep-test sample.conf %doc AUTHORS COPYING LICENSE This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <di...@us...> - 2007-03-07 15:23:11
|
Revision: 434 http://safekeep.svn.sourceforge.net/safekeep/?rev=434&view=rev Author: dimi Date: 2007-03-07 07:23:08 -0800 (Wed, 07 Mar 2007) Log Message: ----------- Complete the renaming of safekeep.conf.txt into safekeep.backup.txt Modified Paths: -------------- safekeep/trunk/Makefile safekeep/trunk/debian/rules safekeep/trunk/debian/safekeep-server.docs safekeep/trunk/doc/safekeep.backup.txt safekeep/trunk/safekeep.spec.in Added Paths: ----------- safekeep/trunk/sample.backup Removed Paths: ------------- safekeep/trunk/sample.conf Modified: safekeep/trunk/Makefile =================================================================== --- safekeep/trunk/Makefile 2007-03-06 21:15:27 UTC (rev 433) +++ safekeep/trunk/Makefile 2007-03-07 15:23:08 UTC (rev 434) @@ -10,8 +10,8 @@ dirname := $(shell basename $(PWD)) rpmroot := $(shell grep '%_topdir' ~/.rpmmacros | sed 's/^[^ \t]*[ \t]*//') svnroot := $(shell LANG=C svn info | grep Root | cut -c 18-) -MAN_TXT := doc/safekeep.txt doc/safekeep.conf.txt -DOC_MAN := doc/safekeep.1 doc/safekeep.conf.5 +MAN_TXT := doc/safekeep.txt doc/safekeep.backup.txt +DOC_MAN := doc/safekeep.1 doc/safekeep.backup.5 DOC_HTML := $(patsubst %.txt,%.html,$(MAN_TXT)) @@ -78,7 +78,7 @@ install: $(DOC_MAN) install -m 755 safekeep "/usr/bin/" install -m 755 doc/safekeep.1 "/usr/share/man/man1/" - install -m 755 doc/safekeep.conf.5 "/usr/share/man/man5/" + install -m 755 doc/safekeep.backup.5 "/usr/share/man/man5/" if test -d /etc/safekeep.d; then \ for file in /etc/safekeep.d/*.conf; do \ if test -f "$$file"; then \ Modified: safekeep/trunk/debian/rules =================================================================== --- safekeep/trunk/debian/rules 2007-03-06 21:15:27 UTC (rev 433) +++ safekeep/trunk/debian/rules 2007-03-07 15:23:08 UTC (rev 434) @@ -18,7 +18,7 @@ install -d -m 755 $(CURDIR)/debian/safekeep-common/usr/share/man/{man1,man5} install -m 755 safekeep $(CURDIR)/debian/safekeep-common/usr/bin install -m 755 doc/safekeep.1 $(CURDIR)/debian/safekeep-common/usr/share/man/man1 - install -m 755 doc/safekeep.conf.5 $(CURDIR)/debian/safekeep-common/usr/share/man/man5 + install -m 755 doc/safekeep.backup.5 $(CURDIR)/debian/safekeep-common/usr/share/man/man5 install -d -m 755 $(CURDIR)/debian/safekeep-server/etc/safekeep/clients.d install -d -m 755 $(CURDIR)/debian/safekeep-server/etc/cron.daily Modified: safekeep/trunk/debian/safekeep-server.docs =================================================================== --- safekeep/trunk/debian/safekeep-server.docs 2007-03-06 21:15:27 UTC (rev 433) +++ safekeep/trunk/debian/safekeep-server.docs 2007-03-07 15:23:08 UTC (rev 434) @@ -2,4 +2,4 @@ COPYING LICENSE safekeep-test -sample.conf +sample.backup Modified: safekeep/trunk/doc/safekeep.backup.txt =================================================================== --- safekeep/trunk/doc/safekeep.backup.txt 2007-03-06 21:15:27 UTC (rev 433) +++ safekeep/trunk/doc/safekeep.backup.txt 2007-03-07 15:23:08 UTC (rev 434) @@ -3,18 +3,18 @@ NAME ---- -safekeep.backup - Configuration file for 'safekeep(1)' +safekeep.backup - Configuration file for a 'safekeep(1)' client SYNOPSIS -------- These files are usually placed in `/etc/safekeep/clients.d/` to be picked -up automatically be 'safekeep(1)'. They must have a `.conf` extension. +up automatically by 'safekeep(1)'. They must have a `.backup` extension. DESCRIPTION ----------- Each configuration file controls the backup of a host. They are typically named after the hostname of the machine they control the backup for, and -have a '.conf' extension (e.g. `mailbox.conf`). These files are written +have a '.backup' extension (e.g. `mailbox.backup`). These files are written in XML. Virtually all elements and attributes are optional; if not present, `safekeep(1)` will provide reasonable, useful defaults. Modified: safekeep/trunk/safekeep.spec.in =================================================================== --- safekeep/trunk/safekeep.spec.in 2007-03-06 21:15:27 UTC (rev 433) +++ safekeep/trunk/safekeep.spec.in 2007-03-07 15:23:08 UTC (rev 434) @@ -79,7 +79,7 @@ install -d -m 755 "%{buildroot}%{_mandir}/man1/" install -m 755 doc/safekeep.1 "%{buildroot}%{_mandir}/man1/" install -d -m 755 "%{buildroot}%{_mandir}/man5/" -install -m 755 doc/safekeep.conf.5 "%{buildroot}%{_mandir}/man5/" +install -m 755 doc/safekeep.backup.5 "%{buildroot}%{_mandir}/man5/" install -d -m 750 "%{buildroot}%{homedir}" install -d -m 700 "%{buildroot}%{homedir}/.ssh" @@ -108,7 +108,7 @@ %defattr(-,root,root,-) %{_bindir}/safekeep %{_mandir}/man1/safekeep.1* -%{_mandir}/man5/safekeep.conf.5* +%{_mandir}/man5/safekeep.backup.5* %doc AUTHORS COPYING LICENSE README TODO %files client @@ -119,7 +119,7 @@ %attr(700,%{name},%{name}) %dir %{homedir}/.ssh %dir %{_sysconfdir}/safekeep %config %{_sysconfdir}/cron.daily/safekeep -%doc safekeep-test sample.conf +%doc safekeep-test sample.backup %doc AUTHORS COPYING LICENSE %changelog Copied: safekeep/trunk/sample.backup (from rev 425, safekeep/trunk/sample.conf) =================================================================== --- safekeep/trunk/sample.backup (rev 0) +++ safekeep/trunk/sample.backup 2007-03-07 15:23:08 UTC (rev 434) @@ -0,0 +1,55 @@ +<!-- the client backup id --> +<backup id="my_workstation"> + + <!-- the client backup host, the user under which the servers will connect, + the SSH keys used for launching "safekeep -c" and "rdiff-backup" --> + <host + name="my_box.corp.com" user="root" + key-ctrl="/home/jdoe/.ssh/backup_id_dsa" + key-data="/home/jdoe/.ssh/backup2_id_dsa" + /> + + <!-- location where the backuped data will be stored on the server + and for how long (s=sec, m=min, h=hours, D=days, W=weeks, M=months, or Y=years) --> + <repo + path="./data" + retention="10D" + /> + + <!-- settings for database dump and for volume snapshot --> + <setup> + + <!-- database type ("postgres" or "mysql"), user with backup rights, + location of the dump file on the client host, and flag to remove + or not the dump file after the backup is done --> + <dump + type="postgres" + db="dbname" + user="foobar" + file="/var/backup/dumps/mydata" + cleanup="true" + /> + + <!-- what volume is to be snapshoted (device location) and the size + of the snapshot (unallocated space must exist in the volume group) --> + <snapshot + device="/path/to/volume" + size="500M" + /> + + </setup> + + <!-- data to be backuped --> + <data> + <!-- each type of tag can be present more than one time --> + <!-- if a database dump was created, it must be added in this section --> + <include path="/home"/> + <exclude path="/home/guest"/> + + <include glob="**/important/"/> + <exclude glob="/home/*/tmp"/> + + <include regexp=".*\.ogg"/> + <exclude regexp=".*\.mp3"/> + </data> +</backup> Deleted: safekeep/trunk/sample.conf =================================================================== --- safekeep/trunk/sample.conf 2007-03-06 21:15:27 UTC (rev 433) +++ safekeep/trunk/sample.conf 2007-03-07 15:23:08 UTC (rev 434) @@ -1,55 +0,0 @@ -<!-- the client backup id --> -<backup id="my_workstation"> - - <!-- the client backup host, the user under which the servers will connect, - the SSH keys used for launching "safekeep -c" and "rdiff-backup" --> - <host - name="my_box.corp.com" user="root" - key-ctrl="/home/jdoe/.ssh/backup_id_dsa" - key-data="/home/jdoe/.ssh/backup2_id_dsa" - /> - - <!-- location where the backuped data will be stored on the server - and for how long (s=sec, m=min, h=hours, D=days, W=weeks, M=months, or Y=years) --> - <repo - path="./data" - retention="10D" - /> - - <!-- settings for database dump and for volume snapshot --> - <setup> - - <!-- database type ("postgres" or "mysql"), user with backup rights, - location of the dump file on the client host, and flag to remove - or not the dump file after the backup is done --> - <dump - type="postgres" - db="dbname" - user="foobar" - file="/var/backup/dumps/mydata" - cleanup="true" - /> - - <!-- what volume is to be snapshoted (device location) and the size - of the snapshot (unallocated space must exist in the volume group) --> - <snapshot - device="/path/to/volume" - size="500M" - /> - - </setup> - - <!-- data to be backuped --> - <data> - <!-- each type of tag can be present more than one time --> - <!-- if a database dump was created, it must be added in this section --> - <include path="/home"/> - <exclude path="/home/guest"/> - - <include glob="**/important/"/> - <exclude glob="/home/*/tmp"/> - - <include regexp=".*\.ogg"/> - <exclude regexp=".*\.mp3"/> - </data> -</backup> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <di...@us...> - 2007-03-07 16:28:17
|
Revision: 435 http://safekeep.svn.sourceforge.net/safekeep/?rev=435&view=rev Author: dimi Date: 2007-03-07 08:28:08 -0800 (Wed, 07 Mar 2007) Log Message: ----------- Add man page for safekeep.conf Modified Paths: -------------- safekeep/trunk/Makefile safekeep/trunk/debian/rules safekeep/trunk/debian/safekeep-server.docs safekeep/trunk/safekeep.spec.in Added Paths: ----------- safekeep/trunk/doc/safekeep.conf.txt safekeep/trunk/sample.conf Modified: safekeep/trunk/Makefile =================================================================== --- safekeep/trunk/Makefile 2007-03-07 15:23:08 UTC (rev 434) +++ safekeep/trunk/Makefile 2007-03-07 16:28:08 UTC (rev 435) @@ -10,8 +10,8 @@ dirname := $(shell basename $(PWD)) rpmroot := $(shell grep '%_topdir' ~/.rpmmacros | sed 's/^[^ \t]*[ \t]*//') svnroot := $(shell LANG=C svn info | grep Root | cut -c 18-) -MAN_TXT := doc/safekeep.txt doc/safekeep.backup.txt -DOC_MAN := doc/safekeep.1 doc/safekeep.backup.5 +MAN_TXT := doc/safekeep.txt doc/safekeep.conf.txt doc/safekeep.backup.txt +DOC_MAN := doc/safekeep.1 doc/safekeep.conf.5 doc/safekeep.backup.5 DOC_HTML := $(patsubst %.txt,%.html,$(MAN_TXT)) @@ -78,6 +78,7 @@ install: $(DOC_MAN) install -m 755 safekeep "/usr/bin/" install -m 755 doc/safekeep.1 "/usr/share/man/man1/" + install -m 755 doc/safekeep.conf.5 "/usr/share/man/man5/" install -m 755 doc/safekeep.backup.5 "/usr/share/man/man5/" if test -d /etc/safekeep.d; then \ for file in /etc/safekeep.d/*.conf; do \ Modified: safekeep/trunk/debian/rules =================================================================== --- safekeep/trunk/debian/rules 2007-03-07 15:23:08 UTC (rev 434) +++ safekeep/trunk/debian/rules 2007-03-07 16:28:08 UTC (rev 435) @@ -18,6 +18,7 @@ install -d -m 755 $(CURDIR)/debian/safekeep-common/usr/share/man/{man1,man5} install -m 755 safekeep $(CURDIR)/debian/safekeep-common/usr/bin install -m 755 doc/safekeep.1 $(CURDIR)/debian/safekeep-common/usr/share/man/man1 + install -m 755 doc/safekeep.conf.5 $(CURDIR)/debian/safekeep-common/usr/share/man/man5 install -m 755 doc/safekeep.backup.5 $(CURDIR)/debian/safekeep-common/usr/share/man/man5 install -d -m 755 $(CURDIR)/debian/safekeep-server/etc/safekeep/clients.d Modified: safekeep/trunk/debian/safekeep-server.docs =================================================================== --- safekeep/trunk/debian/safekeep-server.docs 2007-03-07 15:23:08 UTC (rev 434) +++ safekeep/trunk/debian/safekeep-server.docs 2007-03-07 16:28:08 UTC (rev 435) @@ -2,4 +2,5 @@ COPYING LICENSE safekeep-test +sample.conf sample.backup Added: safekeep/trunk/doc/safekeep.conf.txt =================================================================== --- safekeep/trunk/doc/safekeep.conf.txt (rev 0) +++ safekeep/trunk/doc/safekeep.conf.txt 2007-03-07 16:28:08 UTC (rev 435) @@ -0,0 +1,44 @@ +safekeep.conf(5) +================ + +NAME +---- +safekeep.conf - Configuration file for 'safekeep(1)' + +SYNOPSIS +-------- +This file resides in `/etc/safekeep/` from where it +will be automatically picked up by 'safekeep(1)'. + +DESCRIPTION +----------- +This configuration file holds safekeep global settings. +The format of the file is a simple key-value pair similar +to Java properties files: lines starting with '#' are ignored +as comments, keys are separated from values by '=', and +leading and trailing spaces are ignored. + +PARAMETERS +---------- +email.to:: + In addition to writing the session logs + on the standard output, `safekeep` can also send the + logs via email to a number of recipients. + This comma-separated list of emails designates + the recipients of the logs. If not specified, + `safekeep` will not attempt to email the logs. + +email.smtp.server:: + Specifies the SMTP server used for sending mails + if the `email.to` specifies any recipients. + If not specified, `safekeep` will just use + `/usr/sbin/sendmail` to deliver the mail. + +FILES +----- + /etc/safekeep/safekeep.conf + +SEE ALSO +-------- +safekeep(1), safekeep.backup(5), rdiff-backup(1), lvcreate(8) + Modified: safekeep/trunk/safekeep.spec.in =================================================================== --- safekeep/trunk/safekeep.spec.in 2007-03-07 15:23:08 UTC (rev 434) +++ safekeep/trunk/safekeep.spec.in 2007-03-07 16:28:08 UTC (rev 435) @@ -79,6 +79,7 @@ install -d -m 755 "%{buildroot}%{_mandir}/man1/" install -m 755 doc/safekeep.1 "%{buildroot}%{_mandir}/man1/" install -d -m 755 "%{buildroot}%{_mandir}/man5/" +install -m 755 doc/safekeep.conf.5 "%{buildroot}%{_mandir}/man5/" install -m 755 doc/safekeep.backup.5 "%{buildroot}%{_mandir}/man5/" install -d -m 750 "%{buildroot}%{homedir}" install -d -m 700 "%{buildroot}%{homedir}/.ssh" @@ -108,6 +109,7 @@ %defattr(-,root,root,-) %{_bindir}/safekeep %{_mandir}/man1/safekeep.1* +%{_mandir}/man5/safekeep.conf.5* %{_mandir}/man5/safekeep.backup.5* %doc AUTHORS COPYING LICENSE README TODO @@ -119,7 +121,7 @@ %attr(700,%{name},%{name}) %dir %{homedir}/.ssh %dir %{_sysconfdir}/safekeep %config %{_sysconfdir}/cron.daily/safekeep -%doc safekeep-test sample.backup +%doc safekeep-test sample.conf sample.backup %doc AUTHORS COPYING LICENSE %changelog Added: safekeep/trunk/sample.conf =================================================================== --- safekeep/trunk/sample.conf (rev 0) +++ safekeep/trunk/sample.conf 2007-03-07 16:28:08 UTC (rev 435) @@ -0,0 +1,11 @@ +# This is a sample file for safekeep(1) +# The format is similar to Java .properties files: +# - lines starting with '#' are ignored +# - keys are separated from values by '=' +# - leading and trailing blanks are ignored + +# a comma separated list of emails to receive the logs +# email.to=pe...@co...,ro...@co... + +# a SMTP server to use to deliver email if email.to is non-empty +# email.smtp.server=mail.company.com This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <di...@us...> - 2007-03-07 16:52:24
|
Revision: 436 http://safekeep.svn.sourceforge.net/safekeep/?rev=436&view=rev Author: dimi Date: 2007-03-07 08:52:20 -0800 (Wed, 07 Mar 2007) Log Message: ----------- Deprecate the email options Modified Paths: -------------- safekeep/trunk/doc/safekeep.txt safekeep/trunk/safekeep Modified: safekeep/trunk/doc/safekeep.txt =================================================================== --- safekeep/trunk/doc/safekeep.txt 2007-03-07 16:28:08 UTC (rev 435) +++ safekeep/trunk/doc/safekeep.txt 2007-03-07 16:52:20 UTC (rev 436) @@ -7,7 +7,7 @@ SYNOPSIS -------- -'safekeep' [--server] [-q] [-v] [-c file] [-e <email>] [-s <smtp>] <clientid>* +'safekeep' [--server] [-q] [-v] [-c file] <clientid>* 'safekeep' --keys [-q] [-v] [-c file] [--status] [--print] [--deploy] <clientid>* @@ -91,16 +91,6 @@ to searching `/etc/safekeep/clients.d/` for configuration files. Simply using this default is the recommended usage. --e, --email=EMAIL:: - In addition to writing the session logs - on the standard output, this parameter let the user specify - the mail address where the logs are to be send. Can be specified - more than once to send reports to multiple addresses. - --s, --smtp=SMTP:: - Specifies the SMTP server used for sending mails when `-e` is used. - Defaults to using `/usr/sbin/sendmail`. - KEYS OPTIONS ------------ --status:: Modified: safekeep/trunk/safekeep =================================================================== --- safekeep/trunk/safekeep 2007-03-07 16:28:08 UTC (rev 435) +++ safekeep/trunk/safekeep 2007-03-07 16:52:20 UTC (rev 436) @@ -776,10 +776,6 @@ print '-v, --verbose increases the verbosity level' print '-V, --version show the version number and exit' print - print 'server options:' - print '-e, --email=EMAIL send results by email (can appear multiple times)' - print '-s, --smtp=SMTP SMTP server to use when sending mails (default: sendmail)' - print print 'keys options:' print '--status display the key status for the clients (default)' print '--print display the authorization keys' @@ -816,10 +812,14 @@ error('A main configuration file can be specified only once!') sys.exit(2) elif o in ('-e', '--email'): + warn('The -e/--email options are deprecated and will be removed in the future') + warn('Please use the /etc/safekeep/safekeep.conf file instead') email.append(a) elif o in ('-h', '--help'): usage(0) elif o in ('-s', '--smtp'): + warn('The -s/--smtp options are deprecated and will be removed in the future') + warn('Please use the /etc/safekeep/safekeep.conf file instead') smtp = a elif o in ('--server', ): if mode: usage(2) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |