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 Question

Featured Replies

Hi all,

 so I have two servers and I am running Rsync to back up one server to the other. The servers are connected via 10gig network. My script is pretty simple and I use user script plugin to run it. The issue I have is two fold, first, the sync seems to be copying everything across, even though the destination folders already have most of the data in it. Secondly, the speed of sync seems very slow, 30kb or so, for the most part.
This is a sample of the scripts I am using:
rsync -avh "/mnt/remotes/UNRAID_My Files" "/mnt/user/My Files"

Solved by crowdx42

  • Community Expert

I use this command to do exactly what you want to do:

rsync -avhPX /mnt/remotes/192.168.1.245_Media/All\ Movies/ /mnt/user/BackupMedia/All\ Movies/

 

The trailing slash  (   /   ) after All\ Movies  copies only the contents of the All Movies directory.  Without  that slash, it also copies the actual directory

 

The forward slash  (   \    )     in All\ Movies 'tells' BASH to ignore the trailing space from being interpreted as a true space which BASH would have used to indicate the start of a new parameter.   (This use of the forward slash eliminates the need to the quotes for parameters with spaces.)

 

(As I recall, the parameter string will copy over any files that are either new or have been updated in the source when compared to the files in the destination.)

 

If you type the following command, you will get the help file:  

rsync --help

 

I copied out the output of this command and put it into a text file as I find a printed document easier to read.

 

1 hour ago, crowdx42 said:

speed of sync seems very slow, 30kb or so, for the most part

 

Did you mean KB   or Kb?  These abbreviations have two different meanings!  One is Kilo Bytes and the other is Kilo bits .  

 

If you expect to copy process to be bigger than the size of the cache (or if the share does use not a cache), this is KB, it is about the speed that could be expected once the caches are full.  (Unraid use unused RAM to cache writes...)   This can be speed up if you set this parameter in   SETTINGS    >>>    Disk Settings     as shown:

image.png.19a2fe889a156297dc205020ab471900.png

 

If things don't speed up, report back and include your Diagnostics on both servers.

 

Edited by Frank1940

  • Author

It shows Kbps, Kilo Bit Per Second

  • Author
  • Solution

Ok, so I updated the script to the same as what you are using, changing the pathnames. You were also correct, my original script was copying the whole folder inside the existing folder. 
Fingers crossed this works better :)

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.