Difference between revisions of "User:Pat"
From stoney cloud
(→State of the art) |
(→State of the art) |
||
Line 31: | Line 31: | ||
** The script can be installed according to [[Backup_(Server_Setup)#schedule_warning]] (don't forget [[Backup_(Server_Setup)#prov-backup-rsnapshot]]) | ** The script can be installed according to [[Backup_(Server_Setup)#schedule_warning]] (don't forget [[Backup_(Server_Setup)#prov-backup-rsnapshot]]) | ||
* Backup helper scripts | * Backup helper scripts | ||
− | ** The writeAccontSize .. | + | ** The writeAccontSize.pl is adapted to the new LDAP directory. It reads and writes quota values and thresholds from/to the LDAP and gets the path to the mail templates from the LDAP |
** A script (and cronjob) which executes two commands each night is still missing and needs to be implemented. It must do an LDAP search and get all active backup account (search under <code>ou=accounts,ou=backup,ou=services,dc=foss-cloud,dc=org</code> for <code>objectClass=sstBackup</code> and <code>sstIsActive=TRUE</code>). Read the necessary attributes from these accounts and execute the following commands: | ** A script (and cronjob) which executes two commands each night is still missing and needs to be implemented. It must do an LDAP search and get all active backup account (search under <code>ou=accounts,ou=backup,ou=services,dc=foss-cloud,dc=org</code> for <code>objectClass=sstBackup</code> and <code>sstIsActive=TRUE</code>). Read the necessary attributes from these accounts and execute the following commands: | ||
*** <code>/<path/to>/writeAccountSize.pl -C /<path/to>/writeAccountSize.conf -D <home directory> -U <UID></code> | *** <code>/<path/to>/writeAccountSize.pl -C /<path/to>/writeAccountSize.conf -D <home directory> -U <UID></code> |
Revision as of 20:13, 19 August 2013
Good to know
ASCII generator
http://www.network-science.de/ascii/ Font: slant
__ __ __ _____/ /_____ ____ ___ __ __ _____/ /___ __ ______/ / / ___/ __/ __ \/ __ \/ _ \/ / / /_____/ ___/ / __ \/ / / / __ / (__ ) /_/ /_/ / / / / __/ /_/ /_____/ /__/ / /_/ / /_/ / /_/ / /____/\__/\____/_/ /_/\___/\__, / \___/_/\____/\__,_/\__,_/ /____/
Stoney Cloud
State of the art
- prov-backup-rsnapshot
- The prov-backup-rsnapshot deamon is finished. There is only one thing left to do which is to create the bash script which creates the chroot environment, see prov-backup-rsnapshot#ToDos
- The daemon can be installed and tested according to Backup_(Server_Setup)#prov-backup-rsnapshot (don't forget Backup_(Server_Setup)#prov-backup-rsnapshot)
- rsnapshot
- The script which executes the daily, weekly and monthly rsnapshots is finished. It requires a parameter (--interval) with the appropriate name and then executes for all users (which have set the corresponding value in the LDAP) the appropriate command. You can also pass "hourly" or "yearly" with the --interval parameter.
- The cronjobs are set up for daily, weekly and monthly rsnapshots
- On the test server, the command is only printed, because rsnapshot is not yet installed. If you install the script according to Backup_(Server_Setup)#rsnapshot, the script will execute the commands (don't forget Backup_(Server_Setup)#prov-backup-rsnapshot).
- Backup surveillance
- The schedule-warning script also works for the new environment with the new LDAP and Templates.
- Example template and description see Backup_(OpenLDAP)#Unsuccessful_Place_Holders_E-Mail_.28txt.2Fhtml.29.
- The externalID for the deep.ch reseller is not yet implemented. To do it you must:
- Include the placeholder in the template in the form of
{$externalID}
- Get the ID in the sendmail subroutine of the scheduleWarning.pl script
- Add the the following line to the replace variables in the sendmail subroutine of the scheduleWarning.pl script (around line 1429):
-
externalID => $external_ID,
- Include the placeholder in the template in the form of
- The script can be installed according to Backup_(Server_Setup)#schedule_warning (don't forget Backup_(Server_Setup)#prov-backup-rsnapshot)
- The schedule-warning script also works for the new environment with the new LDAP and Templates.
- Backup helper scripts
- The writeAccontSize.pl is adapted to the new LDAP directory. It reads and writes quota values and thresholds from/to the LDAP and gets the path to the mail templates from the LDAP
- A script (and cronjob) which executes two commands each night is still missing and needs to be implemented. It must do an LDAP search and get all active backup account (search under
ou=accounts,ou=backup,ou=services,dc=foss-cloud,dc=org
forobjectClass=sstBackup
andsstIsActive=TRUE
). Read the necessary attributes from these accounts and execute the following commands:-
/<path/to>/writeAccountSize.pl -C /<path/to>/writeAccountSize.conf -D <home directory> -U <UID>
-
/<path/to>/scheduleWarning.pl -U <UID>
-
- prov-backup-kvm
- On the new infrastructure:
- As soon as the vips work again, make the prov-backup-kvm connect to ldapm.stepping-stone.ch:
-
vi /etc/Provisionig/Backup/KVM.conf
-
SERVER = ldaps://ldapm.stepping-stone.ch
-