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 - what am I doing wrong?

Featured Replies

I am running my backups using Acronis True Image, unfortunately incremental backups are filling most of the space on my unRaid box. Therefore I decided to try built in rsync feature. After reading various posts I can only say that I am doing something wrong. Test task is very simple copy files from Windows 7 machine to backup folder in one of the shares:

Windows 7 - 192.168.1.44  c:/TEST/file.text

unRaid - /mnt/user/Data/Backup

 

I used telnet to connect to unRaid box and used following syntax (this is for testing only)

/usr/bin/rsync 192.168.1.44:c/TEST  /mnt/user/Data/Backup

 

Each time when I run it, I am getting  error "connection refused" (255) or (111). I disabled firewall on my Windows7 machine.

 

I know that to setup rsync correctly I need to create rsyncd.conf file and use deamon (not sure how to implement this) and setup backup schedule.

 

Some people setup rsync on their windows machines to backup their files to unRaid or external boxes, but unRaid has rsync already installed. So why not use it?

 

Please provide some guidance.  Thank you.

 

 

I am running my backups using Acronis True Image, unfortunately incremental backups are filling most of the space on my unRaid box. Therefore I decided to try built in rsync feature. After reading various posts I can only say that I am doing something wrong. Test task is very simple copy files from Windows 7 machine to backup folder in one of the shares:

Windows 7 - 192.168.1.44  c:/TEST/file.text

unRaid - /mnt/user/Data/Backup

 

I used telnet to connect to unRaid box and used following syntax (this is for testing only)

/usr/bin/rsync 192.168.1.44:c/TEST  /mnt/user/Data/Backup

 

Each time when I run it, I am getting  error "connection refused" (255) or (111). I disabled firewall on my Windows7 machine.

 

I know that to setup rsync correctly I need to create rsyncd.conf file and use deamon (not sure how to implement this) and setup backup schedule.

 

Some people setup rsync on their windows machines to backup their files to unRaid or external boxes, but unRaid has rsync already installed. So why not use it?

 

Please provide some guidance.  Thank you.

 

I am by far, NOT a Unix guru -- but I do an Rsync on my unraid from "time to time" to pull files from an EXTERNAL site {a website I host}

 

What I see missing is a "user account" ....  may or may not be your issue.

 

 

/usr/bin/rsync username@192.168.1.44:c/TEST  /mnt/user/Data/Backup

 

If that's the case, there is a way to set up using public/private keys (assuming you use passwords) to avoid a prompt for a password...  but for now, if this works, you'll have to key in a password

  • Author

Thanks for your reply.

 

No luck. Looks like rsync tries to establish ssh connection with Windows7 machine. Error message reads "connection refused" code 255 at io.c(1541). No prompt for password or anything.

Thanks for your reply.

 

No luck. Looks like rsync tries to establish ssh connection with Windows7 machine. Error message reads "connection refused" code 255 at io.c(1541). No prompt for password or anything.

 

How about trying a "push" from the windows box, instead of a "pull" from the Unraid box -- Rsync will do both  (I think :) )

  • Author

I installed cygwin+rsync on my Windows7 machine and tried to "push" syncing to unRaid box. I was asked for password and stopped right there. My setup is pretty standard user=root pass=no password. I suppose if I setup password it might work.

 

I decided to take different approach and mount NTFS share from Windows7 to unRaid.

 

So this is for all noobs out there. Telnet to your unRaid

 

1. Make the directory you want to mount the share to

 

mkdir /mnt/share

 

2. Mount the share with user/pass:

 

smbmount //winpc/shared /mnt/share -o username=user,password=pass,rw

 

Or mount the share without a user/pass (this is true if Everyone is still set)

 

smbmount //winpc/shared /mnt/share -o rw

 

To unmount use follwing syntax:

umount /mnt/share

 

Now you can use rsync on your unRaid box

 

If you prefer setting up rsync on your PC than you will have to map network drive on your computer. For no reason, sometimes mapped drive will become unavailable with a red x mark. To resolve this problem I created vbs script. Open notepad and copy/paste lines below

 

Set objFSO = CreateObject("Scripting.FileSystemObject")

Set objNetwork = CreateObject("WScript.Network")

Set objShell = CreateObject("Shell.Application")

 

'Remove mapped drive

If (objFSO.DriveExists("S:") = True) Then

 

    objNetwork.RemoveNetworkDrive "S:", True, True

 

End If

 

'Pause 5 seconds

WScript.Sleep(5000)

 

'Map network drive

objNetwork.MapNetworkDrive "S:" , "\\TOWER\Backup"

 

'Rename mapped drive

objShell.NameSpace("S:").Self.Name = "Backup

 

WScript.Quit

 

Save file as "mapnet.vbs"

 

Create task schedule to run script and use 2 triggers:

 

1. "At Log On"

 

2. On Event

Log: System

Source: Power Troubleshooter

Event ID: 1

 

Second trigger will help to remap the drives after sleep or hibernation

 

Now all is left is setting up rsync. Hope this helps somebody.

 

 

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.