WARNING: This web is not used anymore. Please use PDBService.CVSOnPDBBackup instead!
 

CVS on PDB Backup

  • Physics Databases have a db4lcg CVS repository created on CERN Central CVS Service
  • There is a passwordless access to the CVS already configured on pdb-backup machines
  • There are already several projects imported into CVS:
    • backup5 - currently including all backup scripts used by Physics Databases
    • production - all production scripts used by the service
    • streams - all streams related scripts
    • strmmon - Streams monitoring daemon
    • ==

Tutorial
  • to update a project from CVS (synchronize CVS changes to disk) use the update command:
    • goto any CVS directory on disk and run cvs update:
      cd ~/strmmon
      cvs update
    • this will update strmmon directory (and subdirectories) by fetching all the changes from CVS

  • to add new directories or files into a project use the add command:
    • goto any CVS directory on disk and run cvs add ...:
      cd ~/strmmon
      cvs add new_dir
      cvs add new_dir/new_file1 new_dir/new_file2
      
    • IMPORTANT - this will just schedule addition of new_file1 and new_file2 and new_dir, please use cvs commit to finalize it (see below)

  • to commit a modified project into CVS (synchronize disk changes to CVS) use the commit command:
    • goto any CVS directory on disk and run cvs commit:
      cd ~/streams/ATLAS
      cvs commit
    • this will commit any changes done in ATLAS directory of streams project into CVS



  • to get a project from CVS into a new directory (or machine) use the checkout (co) command:
    • goto the base directory, where you want to checkout the project and run cvs checkout:
      cd ~/my_directory
      cvs co production
    • this will create production directory and will checkout production project (including subdirectories) from CVS

  • to import a new project into CVS use the import command (this has already been done for most of our projects):
    • goto the directory to be imported and run cvs import:
      cd /backup5
      cvs import -m "Initial import" -I ! -I "*.log*" -I "*.dmp*" backup5 PhyDB start
    • backup5 will be the new project name
    • use several -I options to exclude specific files from the import

Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r2 - 2008-05-21 - DawidWojcik
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    PSSGroup All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback