Solaris 10 SSH Migration

While migrating data between multiple servers I ran into a few interesting situations with SSH that I thought would be worth mentioning. If nothing else it will add some more documentation to this site.

Solaris tar vs. GNU tar

After using tar for years on Linux I always figured all tar's were the same until I tried to untar an archive on Solaris. When I untar'ed a Linux tar archive on Solaris I ran into an error along with a @LongLink file in my directory. To get around this I installed gnu tar from http://www.blastwave.org Transfer file systems using tar and SSH

Here is a quick way to transfer file systems between two servers. In order to do this properly you may want to temporarily enable root in your sshd_config. Just thought it was handy :)

tar cf - ./dir1 | ssh root@fs0 "(cd /export/Corporate && /opt/csw/bin/gtar xvpf -)"

Comments

avatar foo
0
 
 
Why not SUNWgtar? => /usr/sfw/bin/gtar
Name *
Your URL (Optional)
Verify Image   
ChronoComments by Joomla Professional Solutions
Submit Comment
Cancel
avatar Andrew
0
 
 
Good question. I actually dont remember why. I will double check when I get back from vaca.
Name *
Your URL (Optional)
Verify Image   
ChronoComments by Joomla Professional Solutions
Submit Comment
Cancel
Name *
Your URL (Optional)
Verify Image   
ChronoComments by Joomla Professional Solutions
Submit Comment
Last Updated on Friday, 26 September 2008 18:23