LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-30-2015, 03:42 AM   #1
kiss_freely
LQ Newbie
 
Registered: May 2013
Posts: 5

Rep: Reputation: Disabled
Robocopy and Rsync


Hello everyone,

I often use robocopy.exe to copy data on windows system:

robocopy Source_folder Destination_folder /W:5 /R:2 /MIR

With 2 options /W:1 and /R:1: If a file can't copy, robocopy will retry to copy 2 times (default is 1 million of retries) . Wait time between retries is 5 seconds.

Can I set these options with RSYNC command on Linux?. I've view "man rsync", but I am not clear to use. Could anyone show me? Thank you!
 
Old 06-30-2015, 10:01 AM   #2
Habitual
LQ Addict
 
Registered: Jan 2011
Location: Youngstown, Ohio
Distribution: LM17.1/Xfce4.11.8
Posts: 7,194
Blog Entries: 10

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Have a look at Simple, Secure Backups for Linux with rsync

basically, it's rysnc <source> <destination>:/path/to/save
There are 100s of options as you will soon see. None, In My Opinion, there is no "best" or "fastest" as conditions such as environment, throughput, memory, filesize all have a contributing affect on the job.

As for retries, never seen that and I'm pretty sure that rsync has some internal mechanism for assessing latent file write operations. Others here may have insight to that.
I do know that rsync uses hashes at both ends to determine if the file got written correctly.

hope that helps.
 
Old 06-30-2015, 03:46 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,398

Rep: Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207
Wonder if you could use wget or curl.
 
Old 07-07-2015, 02:55 AM   #4
kiss_freely
LQ Newbie
 
Registered: May 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thank you, Habitual & Jefro.
 
Old 07-07-2015, 06:07 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,398

Rep: Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207
Sorry we didn't come up with a good solution. Robocopy is a good program.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Rsync-/usr/bin/rsync: Argument list too long sswaran Linux - Newbie 3 04-09-2015 08:18 AM
Problems using robocopy to copy to a samba share. osantos Linux - Server 9 02-03-2015 05:33 AM
rsync giving ld.so.1: rsync: fatal: libiconv.so.2: open failed: error SunilEA Linux - Newbie 1 01-10-2014 02:24 PM
Samba share causes Windows Robocopy /mir to keep rewriting the files. Nick_C Linux - Networking 2 02-13-2013 09:52 AM
[SOLVED] rsync fails in cron - ssh key prob for rsync? jonathansfl Linux - Server 6 12-09-2010 10:48 AM


All times are GMT -5. The time now is 01:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration