Tip

Use relative pathnames when backing up

Use relative pathnames when backing up
Rick Cook

One of the most useful features of the modern operating systems' file systems is the availability of both absolute and relative pathnames. One of the major differences is that an absolute pathname assumes it is starting from the root directory while a relative pathname figures out where it is in the file system before it starts to execute. In Unix, relative pathnames begin with a directory name or a ./ while an absolute pathname begins with a /. Absolute pathnames are somewhat more efficient since the file system has to parse relative pathnames to use them.

When backing up a Unix system, the best practice is to use relative pathnames. Using absolute path names can produce all kinds of problems. For example, you may have to use a boot floppy to start the system after a hard disk failure. If you have specified the absolute path names, the restore will try to write all the archived files to the floppy.

    Requires Free Membership to View

EST Inc. has a white paper on the most common mistakes in backing up Unix and Linux systems on its Web site. The paper is oriented toward the company's BRU backup software, but the information is generally useful.

Rick Cook has been writing about mass storage since the days when the term meant an 80K floppy disk. The computers he learned on used ferrite cores and magnetic drums. For the last twenty years he has been a freelance writer specializing in storage and other computer issues.

Did you like this tip? Whether you did or not, why not let us know. Drop us an email and sound off.

Related Book

Unix Backup and Recovery
Author : W. Curtis Preston
Publisher : O'Reilly & Associates
Published : Nov 1999
Summary :
Unix Backup and Recovery provides a complete overview of all facets of Unix backup and recovery, and offers practical, affordable backup and recovery solutions for environments of all sizes and budgets. The book begins with detailed explanations of the native backup utilities available to the Unix administrator, and ends with practical advice on choosing a commercial backup utility.


This was first published in March 2001

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.