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.

Problems Syncing folder content between two Unraid servers

Featured Replies

I'm trying to sync two shares on separate Unraid servers but am getting lost in the different ways to do it. Each way appears to be problematic. 

I tried rsync using the main server to mount the backup server folder as SMB share but It fails, and because I'm still pretty new to Unraid I don't understand why. My rsync command is rsync -avhP --delete "/mnt/user/data/media/movies" "/mnt/remotes/server_movies" but rsync errors with 32 Not enough space on drive, yet I have 8tb free? I thought rsync would see that files already exist on the backup and just skip them  but it appears to be trying to create a whole new directory which would be bigger the the 8TB free space. Is there a way to make rsync actually sync and not duplicate stuff already on the drive? I realise I may be totally misunderstanding the concept here but I am new to this. I managed to setup Luckyback plugin but that is so slow it would take weeks to copy the 14TB of data I want to backup.  I then tried adding a USB drive to Unraid which already holds much of the 15tb of data but is USB 3 going to be faster than rsync or rsync via Luckybackup.

Any help and explanation of the best way forward apprciated.

  • Community Expert
16 minutes ago, dOM152 said:

I thought rsync would see that files already exist on the backup and just skip them

It will, but add a slash in the end to the paths:

rsync -avhP --delete "/mnt/user/data/media/movies/" "/mnt/remotes/server_movies/"

  • Author

Thanks. I actually had slash at the end of each path but that created a new folder called "movies" within the destination folder!

  • Community Expert

From this website:

 

      https://blog.pair.com/2018/03/13/rsync/

 

image.png.a7663f45d200781dee6db80616453df6.png

 

That trailing slash is a bit of an anomaly in Linux commands.  Many times it seems to be ignored.  But other times, it changes behavior and results.   In the rsync case, on the source path, it is is required if you don't want the directory created in the destination directory but only the contents copied over.  Notice the --dry-run  option/switch.  You could use it to see what is going to happen before you actually commit to the operation. 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

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.