LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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, 02: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, 09:01 AM   #2
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
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, 02:46 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,993

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
Wonder if you could use wget or curl.
 
Old 07-07-2015, 01: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, 05:07 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,993

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


Reply



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 07:18 AM
Problems using robocopy to copy to a samba share. osantos Linux - Server 9 02-03-2015 04:33 AM
rsync giving ld.so.1: rsync: fatal: libiconv.so.2: open failed: error SunilEA Linux - Newbie 1 01-10-2014 01:24 PM
Samba share causes Windows Robocopy /mir to keep rewriting the files. Nick_C Linux - Networking 2 02-13-2013 08:52 AM
[SOLVED] rsync fails in cron - ssh key prob for rsync? jonathansfl Linux - Server 6 12-09-2010 09:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:33 AM.

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
Open Source Consulting | Domain Registration