LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-02-2003, 11:31 AM   #1
Cyth
Member
 
Registered: Mar 2001
Location: Sweden, Lund
Distribution: Slackware
Posts: 68

Rep: Reputation: 15
Storing /home in CVS


Hi all,

I'm planning to store my /home dir in CVS and now asks if someone have any experiences with it. What is the problems, what issues should I think of? Is it a good idea at all? Is BK better?

Basically, a script which runs every half hour and does this:

1.
Checks if the user cyth (or whatever you tell the script to check for) is logged in. If not, scans the syslog and checks whether he was logged since last time the script ran.

2.
Scans the homedir; new files is marked for commit, binary files marked as binary files and is then commited to the repository with any changes to the other files.

Sounds good? Any ideas, comments?

(If I have _alot_ of time someday I'll write an HOWTO..)

cheers,
Frans
 
Old 01-03-2003, 03:06 AM   #2
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
I've never backed up a complete home directory by using cvs. I'd probably choose for a normal backup method, but I guess cvs would be also possible. I guess it depends on the type of files you have in your home directory. It will definetly make it easier to revert back to older versions.
Just one thing, you mentioned it would check whether it's a binary file or not. Cvs will substitute keywords unless you add the file with something like -ko. When I add files to cvs I usually determine this manually whether or not I want keywords substituted. I guess since it's the home directory you can't really know before hand what kind of files will be placed there. I guess you'll have to choose there whether you add them all with -ko or determine what type of file it is and somehow split them into categories. You could always use file to determine what type it is, but I don't know how fool proof that would be.
 
Old 01-03-2003, 03:10 AM   #3
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
Here is something else you might want to read
http://www.linuxselfhelp.com/gnu/cvs...er/cvs_18.html
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Storing BibTex bst files in home directory drben Linux - Software 1 11-01-2005 02:31 PM
create a cvs repository with existing files to cvs powah Linux - Software 1 08-19-2005 09:19 AM
Obtaining sources by CVS - no cvs access cybrjackle *BSD 0 01-18-2005 08:28 AM
Storing Strings ToothlessRebel Programming 4 09-05-2004 03:16 AM
storing and comparing a string Randall Programming 18 03-10-2003 10:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration