rsync between Linux and Solaris

Posted on 2009-12-22
Last Modified: 2013-12-01
I was copying a file from a Linux Server to a Solaris Server using scp and the session was interrupted after copying 80% of the file since I have a very slow file transfer rate it almost took me 41/2 hrs to copy a 5GB File and I dont want to do the same thing again from the scratch which will take another 5hrs to copy the file, So I was looking up on the man pages to use rsync in place of rcp and continue the intteruped copying and appending the same file where it was left unfinished but I am not sure of the options that should be used for the rsync command. Can someone help with the options that I can use to finish the interrupeted file copy.

Question by:balajmohan
    LVL 8

    Accepted Solution

    Do 'du -sk youfile' on the Solaris machine. Say, it's XXX+1 kilobytes (i.e. round it *down*).
    Then do:

    1. on Linux machine: dd if=yourfile of=yourfile.tail bs=1024 skip=XXX
    2. scp the yourfile.tail to the target machine
    3. on the Solaris machine, do backup: cp yourfile yourfile.bak
    4. on the Solaris machine, glue both files: dd if=yourfile.tail of=yourfile bs=1024 oseek=XXX
    5. on both machines, do "sum -r yourfile" to check control sum (if you don't have md5sum on Solaris)

    Author Comment

    Sorry for the late response , I havent tried this option because I found another way to copy the file
    Thx anywat

    Author Closing Comment


    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    NDMP backup issue 1 30
    improve Shell script 5 118
    Truecrypt and swap 6 79
    Robocopy Question 5 47
    Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
    Storage devices are generally used to save the data or sometime transfer the data from one computer system to another system. However, sometimes user accidentally erased their important data from the Storage devices. Users have to know how data reco…
    This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
    This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now