Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hopefully an easy solution!!

Status
Not open for further replies.

bcre3306

MIS
May 7, 2002
45
0
0
US
I need to backup(tar) all the .profiles and restore them to the exact same location on another box. Is there an easy way of doing this? I have about 300 that have to be moved over.
Thanks
 
Try using "backup" instead like this:

as the root user key:

find / -name ".profile" -print | backup -ivqf/dev/???

where ??? is the device to back them up to (usually tape or diskette).

Then, on the "other" machines, key:

restore -xvqf /dev/???

and the backed up files will go to the exact same place on the new machine.

Good luck.

Bob
 
If you want to use tar, you could try the following:

tar cvf tarfile.tar `find /home -name .profile -print`

 
I use this method and it works well.

Install the rsync utility from the AIX Toolkit CD, on both machines.

Once done run a command similar to this from the machine you want to copy to:

rsync -ruz root@other_macine:/remote/dir/ /local/dir

If you are using ssh, then use the command as follows:

rsync -ruz -e ssh root@other_macine:/remote/dir/ /local/dir

Finally, if you want to cron this then do a public/private key exchange if using ssh or just set up .rhosts on both sides.



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top