source: MondoRescue/branches/3.3/ansible/roles/system/files/mkbkp @ 3670

Last change on this file since 3670 was 3670, checked in by Bruno Cornec, 3 years ago
  • Adds backup support
  • Fix deps for apt repo
  • Property svn:executable set to *
File size: 660 bytes
Line 
1#!/bin/bash
2
3for i in mondorescue dploy uuwl pusk ossi pb; do
4        svnadmin dump /prj/svn/$i | gzip -9c > $HOME/$i-svn.dump.gz
5        if [ -d /prj/trac/$i.env ]; then
6                tar cvfz $HOME/$i-trac.tar.gz /prj/trac/$i.env
7        fi
8done
9# pb is a special case for naming :-(
10tar cvfz $HOME/project-builder-trac.tar.gz /prj/trac/project-builder.env
11#
12# Sympa
13sudo tar cvfz $HOME/sympa.tar.gz /etc/sympa /var/lib/sympa /var/lib/mysql /usr/share/sympa
14#
15cp /prj/trac/trac.* $HOME
16sudo cp -a /usr/local/etc $HOME
17sudo cp /etc/rsyncd.conf $HOME
18sudo cp -a /etc/httpd/conf/vhosts.d $HOME
19sudo cp /etc/init.d/ossi $HOME
20sudo cp -a /var/spool/cron $HOME
Note: See TracBrowser for help on using the repository browser.