summaryrefslogtreecommitdiffstats
path: root/FAQ
diff options
context:
space:
mode:
authorunknown <unknown@unknown>2008-02-13 20:34:57 +0000
committerunknown <unknown@unknown>2008-02-13 20:34:57 +0000
commitb73f299e731fbddae095c0b5eff04717b6dce1af (patch)
treed8ca33707e5504dfd33714c39900160f3a2598f7 /FAQ
parentac54243f382e817c08c1f895ccfdc05dcacdb044 (diff)
downloadrancid-b73f299e731fbddae095c0b5eff04717b6dce1af.tar.gz
rancid-b73f299e731fbddae095c0b5eff04717b6dce1af.tar.xz
rancid-b73f299e731fbddae095c0b5eff04717b6dce1af.zip
Imported from rancid-2.3.2a8.tar.gz.HEADrancid-2.3.2a8master
Diffstat (limited to 'FAQ')
-rw-r--r--FAQ20
1 files changed, 14 insertions, 6 deletions
diff --git a/FAQ b/FAQ
index c26e143..7d7dfed 100644
--- a/FAQ
+++ b/FAQ
@@ -129,17 +129,25 @@ A. CVS does not provide a way (AFAIK) to rename files or to rename or delete
like this (disclaimer: BE VERY CAREFUL mucking around with the repository):
% su - rancid_user
% cd <LOCALSTATEDIR>
- % echo "new_device_name:device_type:up" >> GROUP/router.db
- % cp -p CVS/GROUP/configs/old_device_name,v \
- CVS/GROUP/configs/new_device_name,v
+ % echo "new_device_name:device_type:up" >> <GROUP>/router.db
+ % cp -p CVS/<GROUP>/configs/old_device_name,v \
+ CVS/<GROUP>/configs/new_device_name,v
+ % cd <GROUP>/configs
+ % cvs update
+
where GROUP is the name of the rancid group that the device is a member of.
- Rancid will pick-up the new file with a CVS update the next time it runs.
Once the renaming is complete, remove the old name from the router.db file
and leave the CVS clean-up of the old filename to rancid.
If one wanted to move a device to a different group and maintain the
- history, the same procedure would work. Substituting the new group name
- appropriately.
+ history, the same procedure would work, substituting the new group name
+ appropriately, of course.
+
+ SVN provides a rename function; but we suggest that you use it's
+ copy function instead, and leave the clean-up of the old name
+ to rancid. So, you would use the copy function (proper
+ substitutions, of course) in place of the cp in the CVS example,
+ then commit the new file.
Q. I am removing a group and would like to remove all traces of it from the