|
From: <di...@us...> - 2009-03-15 14:50:53
|
Revision: 635
http://safekeep.svn.sourceforge.net/safekeep/?rev=635&view=rev
Author: dimi
Date: 2009-03-15 14:50:38 +0000 (Sun, 15 Mar 2009)
Log Message:
-----------
Move the samples to a separate directory.
Modified Paths:
--------------
safekeep/trunk/safekeep.spec.in
Added Paths:
-----------
safekeep/trunk/samples/
safekeep/trunk/samples/client-script-sample.sh
safekeep/trunk/samples/sample.backup
Removed Paths:
-------------
safekeep/trunk/doc/client-script-sample.sh
safekeep/trunk/sample.backup
Deleted: safekeep/trunk/doc/client-script-sample.sh
===================================================================
--- safekeep/trunk/doc/client-script-sample.sh 2009-03-14 21:17:23 UTC (rev 634)
+++ safekeep/trunk/doc/client-script-sample.sh 2009-03-15 14:50:38 UTC (rev 635)
@@ -1,19 +0,0 @@
-#! /bin/sh
-#
-# Safekeep client script
-# API: $1 = Step, $2 = Safekeep ID, $3 = Backup Root Directory
-#
-# Sample script, please configure as appropriate for your site.
-#
-# Note: output from this script is normally only seen in debug mode.
-#
-
-case $1 in
-'STARTUP') mail -s "Safekeep Backup: Started $2" root < /dev/null ;;
-'PRE-SETUP') ;;
-'POST-SETUP') /etc/init.d/autofs condrestart 2>&1 | mail -s "Safekeep Backup: $1 $2" root ;;
-'POST-BACKUP') /etc/init.d/autofs condrestart 2>&1 | mail -s "Safekeep Backup: $1 $2" root ;;
-'POST-SCRUB') ;;
-esac
-
-exit 0
Modified: safekeep/trunk/safekeep.spec.in
===================================================================
--- safekeep/trunk/safekeep.spec.in 2009-03-14 21:17:23 UTC (rev 634)
+++ safekeep/trunk/safekeep.spec.in 2009-03-15 14:50:38 UTC (rev 635)
@@ -98,7 +98,7 @@
%defattr(-,root,root,-)
%{_bindir}/safekeep
%{_mandir}/man1/safekeep.1*
-%doc AUTHORS COPYING LICENSE README TODO client-script-sample.sh
+%doc AUTHORS COPYING LICENSE README TODO samples/client-script-sample.sh
%files client
%defattr(-,root,root,-)
@@ -113,9 +113,10 @@
%{_sysconfdir}/cron.daily/safekeep
%{_mandir}/man5/safekeep.conf.5*
%{_mandir}/man5/safekeep.backup.5*
-%doc sample.backup
+%doc samples/sample.backup
%changelog
+ - Move the samples to a separate directory
- Add a few trigger points where external scripts can be executed
- Less verbosity from external helpers when invoked with -v
- Avoid errors when dealing with mounts containing spaces.
Deleted: safekeep/trunk/sample.backup
===================================================================
--- safekeep/trunk/sample.backup 2009-03-14 21:17:23 UTC (rev 634)
+++ safekeep/trunk/sample.backup 2009-03-15 14:50:38 UTC (rev 635)
@@ -1,61 +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"
- />
-
- <!-- location of a script to be executed on the client at different
- stages of the run. It is called with three arguments:
- the step of the backup, backup id and the backup root directory -->
- <script
- path="/path/to/script"
- />
- </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/samples/client-script-sample.sh (from rev 633, safekeep/trunk/doc/client-script-sample.sh)
===================================================================
--- safekeep/trunk/samples/client-script-sample.sh (rev 0)
+++ safekeep/trunk/samples/client-script-sample.sh 2009-03-15 14:50:38 UTC (rev 635)
@@ -0,0 +1,19 @@
+#! /bin/sh
+#
+# Safekeep client script
+# API: $1 = Step, $2 = Safekeep ID, $3 = Backup Root Directory
+#
+# Sample script, please configure as appropriate for your site.
+#
+# Note: output from this script is normally only seen in debug mode.
+#
+
+case $1 in
+'STARTUP') mail -s "Safekeep Backup: Started $2" root < /dev/null ;;
+'PRE-SETUP') ;;
+'POST-SETUP') /etc/init.d/autofs condrestart 2>&1 | mail -s "Safekeep Backup: $1 $2" root ;;
+'POST-BACKUP') /etc/init.d/autofs condrestart 2>&1 | mail -s "Safekeep Backup: $1 $2" root ;;
+'POST-SCRUB') ;;
+esac
+
+exit 0
Copied: safekeep/trunk/samples/sample.backup (from rev 633, safekeep/trunk/sample.backup)
===================================================================
--- safekeep/trunk/samples/sample.backup (rev 0)
+++ safekeep/trunk/samples/sample.backup 2009-03-15 14:50:38 UTC (rev 635)
@@ -0,0 +1,61 @@
+<!-- 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"
+ />
+
+ <!-- location of a script to be executed on the client at different
+ stages of the run. It is called with three arguments:
+ the step of the backup, backup id and the backup root directory -->
+ <script
+ path="/path/to/script"
+ />
+ </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.
|