Moving directory structure and scripts from HP to Solaris | Unix Linux Forums | Solaris

  Go Back    


Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

Moving directory structure and scripts from HP to Solaris

Solaris


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 01-02-2013
nag_sathi nag_sathi is offline
Registered User
 
Join Date: Dec 2012
Last Activity: 10 September 2014, 8:43 AM EDT
Location: INDIA
Posts: 62
Thanks: 47
Thanked 1 Time in 1 Post
Oracle Moving directory structure and scripts from HP to Solaris

Hi,

I am presently working in a migration project from HP Unix to Sun Solaris.

I need to place all the directory structures, shell scripts and users into

Sun Solaris. By doing this task manually there is a possibility for

discrepencies. So any tools are there to do these kind of tasks. Does

mirroring concept will be helpful for this activity?

Thanks in advance.
Sponsored Links
    #2  
Old 01-02-2013
bakunin bakunin is offline Forum Staff  
Bughunter Extraordinaire
 
Join Date: May 2005
Last Activity: 21 October 2014, 5:38 PM EDT
Location: In the leftmost byte of /dev/kmem
Posts: 4,285
Thanks: 45
Thanked 824 Times in 651 Posts
I am neither a HP-Ux nor a Solaris expert, but: isn't this exactly what tar was invented for? Is there any reason not to use "tar" (or "cpio", "pax", etc.)?

I hope this helps.

bakunin
The Following User Says Thank You to bakunin For This Useful Post:
nag_sathi (01-03-2013)
Sponsored Links
    #3  
Old 01-02-2013
Peasant's Avatar
Peasant Peasant is offline
Registered User
 
Join Date: Mar 2011
Last Activity: 22 October 2014, 12:30 AM EDT
Posts: 667
Thanks: 18
Thanked 150 Times in 146 Posts
Or even pax , i've started using it since it's everywhere
The Following User Says Thank You to Peasant For This Useful Post:
nag_sathi (01-03-2013)
    #4  
Old 01-03-2013
nag_sathi nag_sathi is offline
Registered User
 
Join Date: Dec 2012
Last Activity: 10 September 2014, 8:43 AM EDT
Location: INDIA
Posts: 62
Thanks: 47
Thanked 1 Time in 1 Post
Hi Bakunin,Peasant

Thanks for the response. Apologize for not mentioning the query correctly.

It's not moving. Actually I need to create the same directory structures in the new

solaris server and place all the existing application scripts into the new server.

Thanks
Sponsored Links
    #5  
Old 01-03-2013
bakunin bakunin is offline Forum Staff  
Bughunter Extraordinaire
 
Join Date: May 2005
Last Activity: 21 October 2014, 5:38 PM EDT
Location: In the leftmost byte of /dev/kmem
Posts: 4,285
Thanks: 45
Thanked 824 Times in 651 Posts
Quote:
Originally Posted by nag_sathi View Post
Actually I need to create the same directory structures in the new solaris server and place all the existing application scripts into the new server.
Yes - this is exactly what "tar" (or the mentioned alternatives) is for. Create a tar-file of your directory, transfer this tar-file to your new server, unpack it there. The following sketch is with "tar", its alternatives work quite similar.


Code:
root@oldserver # cd /directory/to/replicate
root@oldserver # tar -cvf /tmp/copy.tar .
root@oldserver # scp /tmp/copy.tar root@newserver:/tmp/copy.tar
root@oldserver # ssh root@newserver
root@newserver # mkdir -p /new/dir
root@newserver # cd /new/dir
root@newserver # tar -xvf /tmp/copy.tar

I hope this helps.

bakunin
The Following User Says Thank You to bakunin For This Useful Post:
nag_sathi (01-03-2013)
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Help for shell scripts for moving all files from one directory to another soumyamishra Shell Programming and Scripting 31 02-22-2012 10:58 AM
Grepping file names, comparing them to a directory of files, and moving them into a new directory sHockz Shell Programming and Scripting 1 02-02-2012 01:53 AM
MV files from one directory structure(multiple level) to other directory structure srmadab UNIX for Advanced & Expert Users 4 09-13-2006 04:01 PM
Copying a Directory Structure to a new structure jhansrod UNIX for Dummies Questions & Answers 8 07-27-2005 06:24 AM



All times are GMT -4. The time now is 05:37 AM.