[go: up one dir, main page]

Menu

[r2813]: / trunk / admin / howto.txt  Maximize  Restore  History

Download this file

44 lines (32 with data), 1.6 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
Restore a repository from rsynced' backup [example ep]:
=======================================================
# create a repository dump from the backup
cd backups/auto
svnadmin dump ep > ../tmp/ep.repo
cd ../tmp
# create a repository from the dump
svnadmin create ep
svnadmin load ep < ep.repo
# save the UUID
svnlook uuid ep
# delete the svn tool on SourceForge and re-create it with the same mount point and permissions
# create a remote sf-shell and modify some hook scripts
ssh -t fschild,cocotools@shell.sourceforge.net create
cd /home/svn/p/cocotools/auto/ep/hooks
echo -e '#!/bin/sh\n\nexit 0' > pre-revprop-change
chmod a+x pre-revprop-change
mv post-commit post-commit.bak
# in the local shell, use svnsync to upload the repository contents
svnsync init https://svn.code.sf.net/p/cocotools/auto/ep file:///home/frank/SyncFolders/local/EeePC/coco/backups/tmp/ep
svnsync sync https://svn.code.sf.net/p/cocotools/auto/ep
# in the remote sf-shell, revert the changes to the hook scripts
mv post-commit.bak post-commit
rm pre-revprop-change
# in the remote shell, restore the UUID obtained above with "svnlook uuid ep"
svnadmin setuuid ep 597bc776-a2c9-4a27-9fa1-95e0c9c82b95
shutdown
# in the local shell, delete svnsunc's revision properties
svn propdel --revprop -r0 svn:sync-from-url https://svn.code.sf.net/p/cocotools/auto/ep
svn propdel --revprop -r0 svn:sync-from-uuid https://svn.code.sf.net/p/cocotools/auto/ep
svn propdel --revprop -r0 svn:sync-last-merged-rev https://svn.code.sf.net/p/cocotools/auto/ep
# at SourceForge, in the ep-svn tool, click on "Refresh Repository"