source: spip-zone/_dev_/bin_svn/backup.sh @ 815

Last change on this file since 815 was 815, checked in by fil@…, 15 years ago

script de creation des archives sur le serveur trac

  • Property svn:executable set to *
File size: 508 bytes
Line 
1#! /bin/bash
2
3# nettoyer les repertoires destination
4rm -rf backup/svn/* backup/trac/*
5mkdir -p backup/svn
6mkdir -p backup/trac
7
8# copier les fichiers svn + trac
9for i in `ls -1 projects/`; do \
10        svnadmin hotcopy projects/$i backup/svn/$i
11        trac-admin trac/$i hotcopy backup/trac/$i
12done
13
14
15# envoyer sur rezo.net
16rsync -a --delete backup/ rezo.net::trac-rezo-net
17
18# nettoyer de nouveau
19rm -rf backup/svn/* backup/trac/*
20
21# faire les paquets tgz dans http://zone.spip.org/files/spip-zone/ etc
22bin/paquets.sh
23
Note: See TracBrowser for help on using the repository browser.