Difference between revisions of "stoney backup: prov-backup-rsnapshot"
[unchecked revision] | [unchecked revision] |
(→Communication with LDAP) |
(→Requirements) |
||
Line 94: | Line 94: | ||
= Testing = | = Testing = | ||
== Requirements == | == Requirements == | ||
− | A sandbox of the prov-backup-rsnapshot deamon: | + | * A sandbox of the prov-backup-rsnapshot deamon: |
<pre> | <pre> | ||
cd /var/work | cd /var/work | ||
− | + | git clone --recursive https://github.com/stepping-stone/prov-backup-rsnapshot.git | |
+ | cd /var/work/prov-backup-rsnapshot/Provisioning/etc/Provisioning/ | ||
+ | ln -s ../../../etc/Provisioning/Backup/ Backup | ||
+ | cd /var/work/prov-backup-rsnapshot/Provisioning/lib/Provisioning/ | ||
+ | ln -s ../../../lib/Provisioning/Backup/ Backup | ||
</pre> | </pre> | ||
− | + | * A test configuration | |
− | + | <pre> | |
+ | cd /var/work/prov-backup-rsnapshot/Provisioning/etc/Provisioning/Backup/ | ||
+ | cp -p Rsnapshot.conf.template Rsnapshot_test.conf | ||
+ | vi Rsnapshot_test.conf | ||
+ | </pre> | ||
+ | Update the Database section accordingly | ||
+ | == Test the daemon == | ||
+ | * Open a terminal and login to the server | ||
+ | * Start the prov-backup-rsnapshot daemon in debug mode by typing: | ||
+ | <pre> | ||
+ | /var/work/prov-backup-rsnapshot/Provisioning/bin/provisioning.pl -c /var/work/prov-backup-rsnapshot/Provisioning/etc/Provisioning/Backup/Rsnapshot_test.conf -g /var/work/prov-backup-rsnapshot/Provisioning/etc/Provisioning/Global.conf -d | ||
+ | </pre> | ||
+ | * You can stop the deamon by sending SIGTERM (press Ctrl + C). | ||
[[Category: Services]][[Category: Provisioning]] | [[Category: Services]][[Category: Provisioning]] |
Revision as of 15:19, 12 August 2013
Contents
Overview
This pages contains all necessary information one needs to know about the prov-backup-rsnapshot daemon.
Communication with LDAP
The daemon "communicates" with the LDAP to let other processes know its current state. The important attributes therefore are sstProvisioningMode and sstProvisioningState in the given Backup-Account entry. The sequence is defined for adding, modifying or deleting an entry. The preconditions for all three modi are:
- sstProvisioningMode is set to add, modify or delete
- sstProvisioningState is set to 0
- sstProvisioningDate is set to 0 or the current date (format: YYYYMMDD)
Add
Precondition
... sstProvisioningMode: add sstProvisioningState: 0 sstProvisioningDate: 0 ...
Step 1
... sstProvisioningMode: adding sstProvisioningState: 0 sstProvisioningDate: 0 ...
Now the prov-backup-rsnapshot daemon works on the given entry.
Step 2
As soon as the prov-backup-rsnapshot daemon finished working on the given entry:
... sstProvisioningMode: added sstProvisioningState: YYYYMMDDThhmmssZ sstProvisioningDate: 0 ...
Modify
Precondition
... sstProvisioningMode: modify sstProvisioningState: 0 sstProvisioningDate: 0 ...
Step 1
... sstProvisioningMode: modifying sstProvisioningState: 0 sstProvisioningDate: 0 ...
Now the prov-backup-rsnapshot daemon works on the given entry.
Step 2
As soon as the prov-backup-rsnapshot daemon has finished working on the given entry:
... sstProvisioningMode: modified sstProvisioningState: YYYYMMDDThhmmssZ sstProvisioningDate: 0 ...
Delete
Precondition
... sstProvisioningMode: delete sstProvisioningState: 0 sstProvisioningDate: 0 ...
Step 1
... sstProvisioningMode: deleting sstProvisioningState: 0 sstProvisioningDate: 0 ...
Now the prov-backup-rsnapshot daemon works on the given entry.
Step 2
As soon as the prov-backup-rsnapshot daemon finished working on the given entry:
... sstProvisioningMode: deleted sstProvisioningState: YYYYMMDDThhmmssZ sstProvisioningDate: 0 ...
Testing
Requirements
- A sandbox of the prov-backup-rsnapshot deamon:
cd /var/work git clone --recursive https://github.com/stepping-stone/prov-backup-rsnapshot.git cd /var/work/prov-backup-rsnapshot/Provisioning/etc/Provisioning/ ln -s ../../../etc/Provisioning/Backup/ Backup cd /var/work/prov-backup-rsnapshot/Provisioning/lib/Provisioning/ ln -s ../../../lib/Provisioning/Backup/ Backup
- A test configuration
cd /var/work/prov-backup-rsnapshot/Provisioning/etc/Provisioning/Backup/ cp -p Rsnapshot.conf.template Rsnapshot_test.conf vi Rsnapshot_test.conf
Update the Database section accordingly
Test the daemon
- Open a terminal and login to the server
- Start the prov-backup-rsnapshot daemon in debug mode by typing:
/var/work/prov-backup-rsnapshot/Provisioning/bin/provisioning.pl -c /var/work/prov-backup-rsnapshot/Provisioning/etc/Provisioning/Backup/Rsnapshot_test.conf -g /var/work/prov-backup-rsnapshot/Provisioning/etc/Provisioning/Global.conf -d
- You can stop the deamon by sending SIGTERM (press Ctrl + C).