Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Rsync weirdness

Featured Replies

This is a bit off-topic but I thought you guys might be able to help:

 

I am running an rsync from one unraid server to another.  I have ran this command numerous times and each time it copies the same files over and over.  For some reason it isn't registering the file as being the same.  Any ideas why that might be?  I have ran them one after the other and seen the files on the destination server.  It is not all the file just a subset of those files.  The command for reference is:

 

rsync -e ssh -avz /mnt/user/Movies/ root@storage2:/mnt/user/Movies

 

Thanks!

 

Neil

 

Try without the -e ssh. It's been known to cause issues. Not necessarily as a solution, but for troubleshooting.

 

Are these going over a WAN? If not I'd get rid of both -e and z. Really, for movies, z isn't going to buy you much anyway at the expense of lots of crunching.

  • Author

Ok thanks and yes this is over the wan.

 

Neil

 

  • Author

Let me also explain I was setting this up a scheduled task with cron so the -e was to use SSH with shared keys on the server so it would automagically happen?

 

Neil

 

That probably isn't it. Check the receiver log and/or add verbosity to make sure things are actually being written as you expect.

 

For movies over a WAN link I'd also start using --partial.

  • Author

Im pretty stupid can you tell me how to do some of those things with the log etc?

 

Thanks!

 

Neil

 

Adding more "v"s to the command line increases verbosity at your end. Probably won't be very useful as the sender.

 

Look on the other system, in syslog or whatever log file is specified in your rsyncd.conf file. See any errors?

 

I've seen behavior like you describe when the remote end didn't have adequate permissions to do everything correctly. Might be an ownership thing. Again, your rsyncd.conf is important. You might try -c to force checksum compares instead of mod dates & sizes. Takes longer & more horsepower but may behave differently. Use -n so you just get a report of what would have happened instead of burning bandwidth.

 

Good luck.

Ooh, good call. That could do it.

  • Author

I think that is it! I looked at the file I used the -n option to not copy and the files are identical the only problem is their modified date!  I guess my problem is that I am copying to two unraid servers.  Now the question is how do I fix it :)

 

Neil

 

  • Author

One file I just checked actually was different size.  My buddy who helped me concoct this command was told that I didn't want to sync them up in that delete files which aren't there so maybe since the older file exists it won't overwrite it on the source server?  I just don't know rsync well enough?

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.