Operating System - HP-UX
1753501 Members
4663 Online
108794 Solutions
New Discussion юеВ

Backing Up soft link Files

 
SOLVED
Go to solution
susee_sundar
Regular Advisor

Backing Up soft link Files

Hi While I am taking tape Backup....
The soft link files are getting backed up..But the shortcut is only copied & the original file is not getting copied..

How can I take the baackup of Soft link files with their original hard Link...

using backup utilities...
TAR ., FSBACKUP .,CPIO .,

Expecting Reply soon....
5 REPLIES 5
Arunvijai_4
Honored Contributor

Re: Backing Up soft link Files

Hi Susee,

Check this out, http://www.phptr.com/articles/article.asp?p=31763&rl=1

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
susee_sundar
Regular Advisor

Re: Backing Up soft link Files

Arun The site I checked it out but there is no info About backing Up..

Here I can Explain th scenerio:-

#ls
abc
#cd sun
#ls
abc_soft_link
#tar -cvf zipp *
#

In this scene the Tar file zipp contains only the soft Link .,While extracting the file we will not get its hard Link..

is there any arguement with tar command to copy the original link File with its Soft Link..

Thus while extracting in the destination we will get the original file also.

Enrico P.
Honored Contributor
Solution

Re: Backing Up soft link Files

Hi,

h tar option should work for your problem.

Enrico
Arunvijai_4
Honored Contributor

Re: Backing Up soft link Files

Hi Susee,

Yes, follow the -h option with tar as the man page says,
h Force tar to follow symbolic links as if they were normal
files or directories. Normally, tar does not follow
symbolic links.
"A ship in the harbor is safe, but that is not what ships are built for"
susee_sundar
Regular Advisor

Re: Backing Up soft link Files

Thanks to all.