demon_devil
Cadet
- Joined
- Jul 17, 2014
- Messages
- 9
I personally had trouble trying to back my files from my windows machine to my freenas server. I never used RSync and documentation about doing this was all over the place. I decided to share this so that I may spare the same troubles I had to other people. I did this months ago so I may actually forget a thing or two, I'll edit if this come to my attention.
Using FreeNAS 9.2.1.7 RELEASE-x64
For Windows we will be using DeltaCopy which you can find online.
We will log with a SSH key so do configure the key for your Freenas account. DeltaCopy doesn't support encrypted keys.
Log into the GUI of your freenas machine and go to Services and start Rsync.
You may also want to create the directories that will receive the files from your windows machine because DeltaCopy will complain that the path doesn't exist (it can't create new directories by itself).
Now, on your Windows machine start the DeltaCopy CLIENT, you only need the client.
On the left panel click "Add New Profile" give it a name, write the IP of your Freenas server for Virtual Directory just write the name of the directory you just created on your server.
You can add a file/folder. Just make sure that the root directory already exist on your server.
ie: E:\User\demon\Documents\school\stuff
A folder named "Documents" need to be created on the server for the sync to work.
Under Options check "Connect via SSH".
under Additional Parameters write:
Where User_Name is the user name of the account that you will perform the rsync task on.
Where id_rsa is the name of your SSH key. I have copied both my public and private key in the same folder as the DeltaCopy executable.
If you want to sync a folder but exclude a few files you will have to do that manually by adding the "--exclude=" parameter like this:
Before you can perform a sync you need to add the freenas into your known host. Unfortunately, DeltaCopy doesn't provide a GUI or even a message informing you of that.
Start the command prompt and go to the folder containing the executable. Execute DeltaCopy with the additional parameters that you just set with the client. You should have a message to add your server to the known host, do that.
Back to the Client, right click on your profile and click run.
Voila!
You may notice that your files or path containing Unicode is just getting corrupted. This is because the version of Cygwin DLLs shipped with DeltaCopy are not compatible with UNICODE file names. You need to locate the proper DLL and replace it from the DeltaCopy installation folder. This is where my memory start to fade, but I think I got mine from here.
Using FreeNAS 9.2.1.7 RELEASE-x64
For Windows we will be using DeltaCopy which you can find online.
We will log with a SSH key so do configure the key for your Freenas account. DeltaCopy doesn't support encrypted keys.
Log into the GUI of your freenas machine and go to Services and start Rsync.
You may also want to create the directories that will receive the files from your windows machine because DeltaCopy will complain that the path doesn't exist (it can't create new directories by itself).
Now, on your Windows machine start the DeltaCopy CLIENT, you only need the client.
On the left panel click "Add New Profile" give it a name, write the IP of your Freenas server for Virtual Directory just write the name of the directory you just created on your server.
You can add a file/folder. Just make sure that the root directory already exist on your server.
ie: E:\User\demon\Documents\school\stuff
A folder named "Documents" need to be created on the server for the sync to work.
Under Options check "Connect via SSH".
under Additional Parameters write:
Code:
-e "./ssh -l User_Name -i id_rsa"
Where User_Name is the user name of the account that you will perform the rsync task on.
Where id_rsa is the name of your SSH key. I have copied both my public and private key in the same folder as the DeltaCopy executable.
If you want to sync a folder but exclude a few files you will have to do that manually by adding the "--exclude=" parameter like this:
Code:
-e "./ssh -l user_name -i id_rsa" --exclude="bin/" --exclude="obj/" --exclude="ipch/" --exclude="Debug/"
Before you can perform a sync you need to add the freenas into your known host. Unfortunately, DeltaCopy doesn't provide a GUI or even a message informing you of that.
Start the command prompt and go to the folder containing the executable. Execute DeltaCopy with the additional parameters that you just set with the client. You should have a message to add your server to the known host, do that.
Back to the Client, right click on your profile and click run.
Voila!
You may notice that your files or path containing Unicode is just getting corrupted. This is because the version of Cygwin DLLs shipped with DeltaCopy are not compatible with UNICODE file names. You need to locate the proper DLL and replace it from the DeltaCopy installation folder. This is where my memory start to fade, but I think I got mine from here.
Last edited: