Backup user from one server and restore to another


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Backup user from one server and restore to another
# 1  
Old 04-19-2006
Backup user from one server and restore to another

Hi. I have a situation here where I need to backup a users' home directory and restore onto another server. The issue here is that both servers have different operating systems and I am looking for advices on how to proceed.

The source server operating system is Tru64 v5.1, and here's the output from uname -a
Code:
# uname -a
OSF1 sigbrrd V5.1 2650 alpha

The destination server operating system is Solaris 9, and here's the output from uname -a
Code:
# uname -a
SunOS xxx 5.9 Generic_118558-22 sun4u sparc SUNW,Sun-Fire-880

The username I am trying to backup is _abc_ whose home directory is /abc. Here's the output from source server.
Code:
# finger abc
Login name: abc
Directory: /abc                       Shell: /bin/ksh
No Plan.

But this user's home directory happen to be a filesystem in the source server as df -h tells me.
Code:
# df -h | grep abc
emc21#xxx          25G       9993M         16G    39%    /abc

So, my questions are:
1) Will I need to create a new filesystem on the destination server in order for both structures layout to be the same? I need them to be exactly the same, on destination and source for user abc.
2) How would be the best method to backup and restore. I was thinking about tar. What would you suggest? (keep in mind, different operating systems).
3) If you can, make a short list of the steps I will need to make in order to make this possible. I will appreciate that fully.

P.S.: I am aware that binary files will not work on destination server since they are different operating systems, but this is a request for a new application we're going to update, they only need the file's structure to be the same on both.

Thank you!
# 2  
Old 04-22-2006
Quote:
this is a request for a new application we're going to update, they only need the file's structure to be the same on both.
Try doing a find command with -type d and output that to a file - then you would have the 'directory structure' required (if you really didn't want all the files).
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. AIX

Backup and restore query

I have some old directories and files that I which to archive off. I have created archive using -p option with /usr/sbin/backup to a file. If I then do a du -g on the original directory and the archive differ as I'd expect due to using the p flag to compress the files < 2gb as part of the backup. ... (1 Reply)
Discussion started by: gefa
1 Replies

2. AIX

Backup and restore question

I run a backup sucessfully: find . | backup -ivqf/dev/rmt0 I want to make sure I can restore, so I change to a test directory and try this: restore -rvqf /dev/rmt0 However, we fail with this error: New volume on /dev/rmt0: Cluster size is 51200 bytes (100 blocks). The volume number is... (3 Replies)
Discussion started by: landog
3 Replies

3. Red Hat

Backup / Restore

Hi, I need to back up a RH file system (96G). The files are oracle .dbf format some of which are 5G in size. I know that tar has got a size restriction of 2G so I cannot use this. Can anyone recommend an alternative way of backuping up this FS? I have been looking at dump but this... (6 Replies)
Discussion started by: Duffs22
6 Replies

4. AIX

Backup and restore

Hi experts, i got a question. i have a production server with two Volume Group(VG) which are rootvg and datavg. Both of these VGs are 256 PP SIZE. On Disaster Recovery Server (DR server) contains two empty hardisks for restoring rootvg and datavg from production server. This two hardisks are... (7 Replies)
Discussion started by: polar
7 Replies

5. SCO

cpio Backup and restore to spare server fails

Our company purchased a spare HP ML350 server - identical to current one in use to act as minimal downtime replacement should the inevitable happen. After install of OS 5.0.7 and restore of cpiobackup I get this message: -: Syntax error: Hostname= $inexpected The SCO licence policy... (4 Replies)
Discussion started by: moondogi
4 Replies

6. Emergency UNIX and Linux Support

DD command to backup and restore

Hi, Currently I have 2 servers. 1 is already installed with RHEL4(withmyapplications) and the other one is still brand new. My question is, is it possible to use DD command to backup the whole harddrive for the RHEL4 server and restore it to the new brand server so that I do not have to... (3 Replies)
Discussion started by: flekzout
3 Replies

7. HP-UX

F-Backup restore

Hello! i have a blank harddrive and a complete tape backup of the workstation. the backup is made with F-Backup. Now my question is: how can i restore my workstation? thanks for every idea! paul tittel hup-si (3 Replies)
Discussion started by: paultittel
3 Replies

8. AIX

Backup and restore

I have several H80 machines, all with AIX 4.3.3. On these machines I have mksysb running for rootvg backups and savevg for non-rootvg backups. I'm trying to get a list of files on the tapes, but I can't seem to do it with tar for the mksysb images. I keep getting the directory checksum errors?... (3 Replies)
Discussion started by: uXion
3 Replies

9. Solaris

Backup / restore

Hi.... everyone could help me to understand how to do a backup of my servers .. operating systems is sun solaris 8 . I have some question about .... 1) Is better backup phisical disk or partition ??? i sow the command is ufsdump 0cfu /expbck/bcksunver/c0t0d0s5 dev/dsk/c0t0d0s5 to... (4 Replies)
Discussion started by: tt155
4 Replies
Login or Register to Ask a Question