Sponsored Content
Full Discussion: Restoring files from CVS !
Top Forums UNIX for Advanced & Expert Users Restoring files from CVS ! Post 302508121 by gameboy87 on Saturday 26th of March 2011 02:55:45 AM
Old 03-26-2011
Error

cvs co <branch_name> file.txt
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

restoring deleted files

I had a user run, by accident, the following line command on our UNIX server: rm -f /usr/* This apparently deleted some needed files on your system. Having very limited knowledge in UNIX, I thought I would ask the group if anyone knows how I can recover these file? The version of UNIX is... (3 Replies)
Discussion started by: mikem
3 Replies

2. UNIX for Dummies Questions & Answers

Restoring tape files...

Hi all, I have kinda inherited this problem, but was wondering if anyone else had any ideas. Currently all our backup rentention periods are set to 2 weeks, so that we can cycle through tapes (save money etc...). Anyhow the guys next door in IT, decided one day long long ago, that it would... (0 Replies)
Discussion started by: B14speedfreak
0 Replies

3. Solaris

Problem restoring files from remote tape drive

Server 1 - Sun Solaris 5.8 sparc SUNW,Sun-Fire-480R with attached DLT tape drive /dev/rmt/0n Server 2 - Old DG-UX box which has restore command on it compatible with the files on the backyup tape - backed up with dump2 Server 3 - Sun solaris 5.9 sparc SUNW,Sun-Fire-V490 with lots of free space... (4 Replies)
Discussion started by: lindab
4 Replies

4. Shell Programming and Scripting

Extraction of latest files from cvs repository

Hi everyone.. Anybody having idea to get the latest file from CVS repository through schell scripts. Thanks in advance. Regards shahid Bakshi (4 Replies)
Discussion started by: shahidbakshi
4 Replies

5. Shell Programming and Scripting

Problem in editing files in eclipse with cvs

I am using CVS repositories with eclipse. I successfully created CVS Repositories with in eclipse. But I have a big problem, I am unable to edit any of the files in our project. I think it is due to read only property of the file. I also read the given link ... (2 Replies)
Discussion started by: sufyanfzd
2 Replies

6. UNIX for Dummies Questions & Answers

Restoring a single file from a group of files using tar

Hello I take a backup using the following command on Solaris 9 tar cvf /dev/rmt/0n data the data volume contains a number of files say a, b, c , d ... etc Now I want to restore only one file (eg b) from the data volume. When I issue the command tar xvf /dev/rmt/0n data/b... (1 Reply)
Discussion started by: rahmantanko
1 Replies

7. Shell Programming and Scripting

Find and move files parsed from cvs file

I need help with a bash script. We have a directory of files which need to be renamed and moved to another directory based on filename information in a cvs file. The contents of the cvs file are as follows: A102345,abc123 A102347,dfg475 Where dfg475 is the basename without extension Our... (8 Replies)
Discussion started by: Lloyd Boyette
8 Replies

8. UNIX for Advanced & Expert Users

CVS command to revert deleted files

Hi, I have deleted a file and commited in CVS. So, is there any CVS command to revert back that deleted file with existing log messages. --Thanks in advance Madhu (1 Reply)
Discussion started by: madhuti
1 Replies

9. UNIX for Dummies Questions & Answers

[SOLVED] Restoring differential backup files

I'm using a script (automysqlbackup) to dump mysql db's to .sql file followed by taking one full backup of the .sql file and the differential backups of the newer sql file every day using the tool diff. Now the backup destination folder contains files like, I would like to how do i restore... (3 Replies)
Discussion started by: csengineer
3 Replies

10. Shell Programming and Scripting

Restoring files from backup based on ctime

Hello, I need to restore some yesterday emails from backup within a 5 hours timeframe this is a openvz container, backup is made by rsync files to another partition in the same server I have tried to do this #!/bin/sh cd /vz/backup/414/home/smartftp/mail/domain1.com/ for dir in new... (6 Replies)
Discussion started by: cuantica
6 Replies
CVSUTILS(1)						      General Commands Manual						       CVSUTILS(1)

NAME
cvsutils - CVS utilities for use in working directories SYNOPSIS
cvsu [options] cvsco [ options ] cvsdiscard [ options ] cvspurge [ options ] cvstrim [ options ] cvschroot [ options ] cvsdo [ options ] DESCRIPTION
The idea of cvsutils is to facilitate working with the files in the working directory of a developer using CVS (Concurrent Versions Sys- tem). From the point of view of CVS, working directories have low value, since they can easily be recreated using the cvs checkout command. Also the cvs update command will show the status of the files, i.e. whether they have been modified, added or removed. CVS in it's current state is a client-server system that does most of its work on the server side. CVS provides only few (if any) means for managing the working directory without communicating with the server. There are, however, several reasons why such means are necessary: * There is enough information on the client side to create fast tools for sorting and purging the working directory without contacting the CVS server. * Checking out a big module over a slow line can take too much time. * There should be support for disconnected operations. * CVS poses certain unnecessary restrictions on read-only users, e.g. cvs add command doesn't work for them. CVSU
cvsu is "cvs update offline". It lists the files found in the current directory (or in the directories which you specify). Following is taken into account: * Attributes of the file. * Information about the file in CVS/Entries. * Timestamp of the file compared to the timestamp stored in CVS/Entries. Run cvsu --help to see supported command line options. The options can be abbreviated. This functionality is provided by Perl, and can vary from one machine to another. CVSCO
cvsco is a "cruel checkout". In other words, it removes results of compilation and discards local changes. It deletes all the files except listed unmodified ones and checks out everything which seems to be missing. Please note, that cvsco doesn't update files which haven't been modified locally. It only reloads missing files and files which it erases. CVSDISCARD
cvsdiscard is "discard my changes". In other words, it discards local changes but keeps results of compilation. It works like cvsco, but it only deletes files which are likely to cause merge conflicts. CVSPURGE
cvspurge leaves all files known to CVS, but removes the rest. Unlike cvsco, it doesn't remove local changes. It is useful to test local changes in the otherwise clean source tree. CVSTRIM
cvstrim removes files and directories unknown to CVS. Files listed in .cvsignore are not removed. The idea is to remove the files that are not resulted from the normal build process - backups, coredumps etc. cvstrim relies on .cvsignore files being correct. Note that the back- ups for modified files are removed. CVSCHROOT
cvschroot makes it possible to change CVS/Root in all subdirectories to the given value. Currently the only argument accepted is the new CVSROOT value. Old-style CVS/Repository files that contain the full path to the repository are updated to reflect the change. New-style CVS/Repository don't need to be changed. If the environment variable CVSROOT is defined, it overrides the contents of CVS/Root. In other words, it is treated as the old CVS root. CVSDO
cvsdo simulates some of the CVS commands (currently add, remove and diff) without any access to the CVS server. Using cvsdo add and cvsdo remove allows you to create diffs with cvs diff -N, and all removed and added files will appear in the diff correctly, as if you had used cvs add and cvs remove respectively. cvsdo diff tries to locate the backup copies of the modified files. If they can be found, they are compared with the current version using diff. Only those backup copies are used that have the modification date equal the date listed in CVS/Entries for the modified file. cvsdo diff patches the diff output to make it more robust to apply. An exception is made for files named "ChangeLog" - in this case diff will be instructed to omit all context lines, so that the patch can be applied even if other changes have been written to the ChangeLog. Also the added files are handled properly. The header of the diff output is patched in such way that at least GNU patch will create a new file when the resulting patch is applied and remove that file when the patch is reverted. LICENCE
cvsutils is covered by the GNU General Public License (GPL). SEE ALSO
cvs(1), cvs2cl(1). AUTHOR
This manual page was written by Uwe Hermann <uwe@debian.org>, for the Debian GNU/Linux system (but may be used by others). February 27, 2002 CVSUTILS(1)
All times are GMT -4. The time now is 12:35 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy