Marc Allard
Explorer
- Joined
- Mar 16, 2014
- Messages
- 56
Hello,
Now that with MS Office Home you have 1 To free space with onedrive I have decided to backup the very important datas in one more place (in one computer, on an external HDD and now on a cloud storage provider).
To do that, I have installed Ducplicati in a jail in Freenas 9.3 so in case someone is interested here is how I did.
there are probably better ways to do it .
All is done as root
1) You must create a jail (standard) and go in the jail (jls and jexec X csh or jexec -name )
2) Install mono
pkg install mono
3) Install libiconv (needed for mono but it is not installed in step 1)
pkg install libiconv
4) you must import the certificates for the SSL (or one drive will not work).
You can either add the option
--accept-any-ssl-certificate=True in your jobs (all of them)
or do
mozroots --import --sync
mozroots --import --ask-remove --machine
mozroots --import --sync --machine
certmgr -ssl -m https://onedrive.live.com
Perhaps some commands are not necessary but I did that and it is working.
5) Download duplicati and uncompress it somewhere (I did it from windows to test if it was working) and I copied the directory in the jail.
6) Auto start duplicati
vi /etc/rc.local
#Add in the file
/usr/local/bin/mono /mnt/Duplicati/Duplicati.Server.exe --webservice-port=8200 --webservice-interface=any --webservice-password=secret_password &
#ESC :wq to leave vi
the & is necessary (of the jail will block the startup of the other jails.
chmod 755 /etc/rc.local (to make the file executable)
After that from any computer you can connect to the ip of the jail (port 8200 and configure the jobs).
http://XXXXXXXX:8200
The password is specified in the command line (so secret_password)
I hope it will help someone in the same case as me.
Marc
Now that with MS Office Home you have 1 To free space with onedrive I have decided to backup the very important datas in one more place (in one computer, on an external HDD and now on a cloud storage provider).
To do that, I have installed Ducplicati in a jail in Freenas 9.3 so in case someone is interested here is how I did.
there are probably better ways to do it .
All is done as root
1) You must create a jail (standard) and go in the jail (jls and jexec X csh or jexec -name )
2) Install mono
pkg install mono
3) Install libiconv (needed for mono but it is not installed in step 1)
pkg install libiconv
4) you must import the certificates for the SSL (or one drive will not work).
You can either add the option
--accept-any-ssl-certificate=True in your jobs (all of them)
or do
mozroots --import --sync
mozroots --import --ask-remove --machine
mozroots --import --sync --machine
certmgr -ssl -m https://onedrive.live.com
Perhaps some commands are not necessary but I did that and it is working.
5) Download duplicati and uncompress it somewhere (I did it from windows to test if it was working) and I copied the directory in the jail.
6) Auto start duplicati
vi /etc/rc.local
#Add in the file
/usr/local/bin/mono /mnt/Duplicati/Duplicati.Server.exe --webservice-port=8200 --webservice-interface=any --webservice-password=secret_password &
#ESC :wq to leave vi
the & is necessary (of the jail will block the startup of the other jails.
chmod 755 /etc/rc.local (to make the file executable)
After that from any computer you can connect to the ip of the jail (port 8200 and configure the jobs).
http://XXXXXXXX:8200
The password is specified in the command line (so secret_password)
I hope it will help someone in the same case as me.
Marc