rsync between Linux and Solaris

Posted on 2009-12-22
Medium Priority
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
  • 2

Accepted Solution

JIEXA earned 2000 total points
ID: 26111565
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

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

Author Closing Comment

ID: 31669295

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

VM backups can be lost due to a number of reasons: accidental backup deletion, backup file corruption, disk failure, lost or stolen hardware, malicious attack, or due to some other undesired and unpredicted event. Thus, having more than one copy of …
Windows Server 2003 introduced persistent Volume Shadow Copies and made 2003 a must-do upgrade.  Since then, it's been a must-implement feature for all servers doing any kind of file sharing.
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
This tutorial will walk an individual through the process of configuring basic necessities in order to use the 2010 version of Data Protection Manager. These include storage, agents, and protection jobs. Launch Data Protection Manager from the deskt…
Suggested Courses

840 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