Re: Copying an informix database with "cp"
Posted in 1992
In article <2213@compel.UUCP> her@compel.UUCP (Helge Egelund Rasmussen) writes: >I want to take a copy a informix database, so that the users can get >access to both the old and the new copy by setting DBPATH. > >Is it ok to use cp to copy the database files to another directory, >or does the db files contain absolute pathnames? They may. Do a "select dirpath from systables" and check for any pathnames. Also, if you have logging on and the log has a full pathname, this will be a problem. >Is there a better way to copy the database? Assuming that the path issues are OK, I'd suggest doing (as root): find <dbname>.dbs -print |cpio -pdvum <dest'n dir> That way, your permissions and ownership get preserved. >Helge E. Rasmussen . PHONE + 45 36 72 33 00 . E-mail: her@compel.dk -- Alan Denney aland@informix.com {pyramid|uunet}!infmx!aland Smith and Wesson: the Ultimate Point-and-Click User Interface.