Not able to rsync to remote NAS

No more questions - please go to http://www.syncovery.com/forum instead

Moderator: SuperFlexible Administrators

Not able to rsync to remote NAS

Postby Herbiek on Fri Jul 11, 2014 9:38 am

I would like some instructions to set up Syncovery correctly to make a "Exact Mirror" via a VPN connection over the internet to a Synology DS213 NAS
I would like to use Rsync protocol because that seems to be the most efficient when it comes to mirror large files.

The connection to the NAS is working and I have created a folder remotely with a user that is allowed to write/read in that folder.

I have set the protocol setting on Rsync and library on "Direct" since the VPN tunnel setup is making the transport of data already secure.
At URL i have filled in rsync://<NAS_ip_nr>
Which portnumber have to be used? 22 (which is filled in or the 873 that is noted as standard?)
I filled in the user credentials correctly since it is able to browse to the NAS (however it does not show any directories, I would expect to see the "Remote_backup" directory I have created at the NAS.

When running this profile I got a message: Error accessing folder rsync://<NAS_ip_nr>/Remote_Backup: An unexpected network error occurred.

Can somebody point me at the right direction?
Herbiek
 
Posts: 8
Joined: Fri Jul 11, 2014 8:09 am

Re: Not able to rsync to remote NAS

Postby superflexible on Fri Jul 11, 2014 11:36 am

873 would probably be correct, but the URL has to be a bit longer but not sure how exactly.

But, please don't use RSync if you can use SFTP. You can use block level copying with SFTP too, please see
https://www.syncovery.com/variables/

RSync support is a bit experimental, for example it does not support deleting files.
User avatar
superflexible
Site Admin
 
Posts: 2478
Joined: Thu Dec 31, 2009 3:08 pm

Re: Not able to rsync to remote NAS

Postby Herbiek on Fri Jul 11, 2014 4:29 pm

I was able to do a succesful mirror action.
However when I create 2 profiles that points to the same target directory the second profile is trying to delete the files copied by the first profile..

I have to create separate target directories for each profile?
Herbiek
 
Posts: 8
Joined: Fri Jul 11, 2014 8:09 am

Re: Not able to rsync to remote NAS

Postby superflexible on Sat Jul 12, 2014 3:27 am

Yes, please use separate target directories. Otherwise it is not a clean approach and will cause problems.
User avatar
superflexible
Site Admin
 
Posts: 2478
Joined: Thu Dec 31, 2009 3:08 pm

Re: Not able to rsync to remote NAS

Postby Herbiek on Sat Jul 12, 2014 5:50 am

Another question about setting up the source and target directory.
I would like to keep the complete path intact.

As a source I have selected our SBS2011 server. On the target drive I have created a SBS2011 subfolder.
Then I choose the "select folders and files" button, which shows me the complete directory structure and I selected a directory 3 or 4 levels deep which should be copied to the target drive.

First problem i ran into was the message "Cannot access left path \\SBS2011 The specified path is invalid"
Why? It showed me the content of the path correctly!
If put my base path on a subdirectory of the \\SBS2011\ directory like \\SBS2011\home it does work. But I have to create about 20 targetdirectories with equal number of profiles :S

It probably has to do with the fact that Home is a mount on the SBS2011 ?
Herbiek
 
Posts: 8
Joined: Fri Jul 11, 2014 8:09 am

Re: Not able to rsync to remote NAS

Postby superflexible on Sat Jul 12, 2014 6:53 am

\\SBS2011 is only a computer name, not a path. Paths include at least the name of the network share, for example: \\SBS2011\Sharename

To make a mirror, please do not select your folder with the "Select folders and files" button. Instead, please use the Browse button so that the complete path is shown as the left or right base path in the profile. The "Select folders and files" feature is only used when you need to choose several individual folders which are on the same volume or network share. If you want to choose only one folder, then don't use it.

Your complete paths might look like this:

Left:
Code: Select all
\\SBS2011\Sharename\Foldername\Subfoldername

Right:
Code: Select all
sftp://123.234.123.24./SBS2011/Sharename/Foldername/Subfoldername


If you have folders on different Shares, then you need to create separate jobs.
User avatar
superflexible
Site Admin
 
Posts: 2478
Joined: Thu Dec 31, 2009 3:08 pm

Re: Not able to rsync to remote NAS

Postby Herbiek on Sat Jul 12, 2014 7:25 am

Ok, and what if I would like to select almost everything to mirror of about 1,4 TB data, except a few directories that contains quite amount of large temporary data (so not very sensible to mirror/backup).

I was pleased to see the select folder and file button to make those selections... :S
Herbiek
 
Posts: 8
Joined: Fri Jul 11, 2014 8:09 am

Re: Not able to rsync to remote NAS

Postby superflexible on Sat Jul 12, 2014 8:36 am

The best way to exclude just a few folders is to type their names in the Exclusion Masks. That way, you can be sure that all future new folders will be included rather than having to remember to check them on the selection dialog.

For example, to exclude all folders named TEMP regardless of where they appear in the hierarchy, type TEMP in the Exclusion Masks.

To exclude a specific TEMP folder, type its path starting with a backslash, for example:
\Users\Tobias\TEMP

although the path has to start with a backslash, it must be relative to the base folder specified at the top of the profile editing dialog.
User avatar
superflexible
Site Admin
 
Posts: 2478
Joined: Thu Dec 31, 2009 3:08 pm

Re: Not able to rsync to remote NAS

Postby Herbiek on Sat Jul 12, 2014 5:59 pm

First of all Superflexible, thank you so much for your answers, which help me quite fast getting on the right track. :D

Now, what about the best way to get all these profiles to work one after each other (I assume starting all of them at the same time is not very wise when backing up over the Internet. )?

Is it possible set it up to run all of them one after the other, so the next one starts if the previous one finishes?
Herbiek
 
Posts: 8
Joined: Fri Jul 11, 2014 8:09 am

Re: Not able to rsync to remote NAS

Postby superflexible on Mon Jul 14, 2014 4:46 am

Hello,

you can either chain profiles, or set the scheduler to run only one job at a time. It will then run the jobs one after another even if the scheduled times are just a minute apart.

To chain profiles, go to the Job settings category in each profile, click on Execute before/after und type RUN PROFILE Next Profile Name in the "after" field.

To run profiles only one at a time via scheduler without having to chain them, give each profile a schedule, and on the Scheduler tab sheet, click on the Settings button and uncheck "Start profiles in parallel".
User avatar
superflexible
Site Admin
 
Posts: 2478
Joined: Thu Dec 31, 2009 3:08 pm

Next

Return to Windows Support * new forum: www.syncovery.com/forum

cron