UrBackup and FreeNas 8.3 - Backup and Windows BareMetal Restore - Fantastic solution

Status
Not open for further replies.

dimi

Cadet
Joined
Oct 30, 2012
Messages
2
HowTo Install UrBackup on FreeNAS 8.3 Jail

Fast Description:
UrBackup is a open source client/server backup system, that through a combination of image and file backups accomplishes both data safety and a fast restoration time.
File and image backups are made while the system is running without interrupting current processes.
UrBackup also continously watches folders you want backed up, in oder to quickly find differences to previous backups. Thus incremental file backups are really fast.
Your files can be restored through the web interface or the Windows Explorer while the backups of drive volumes can be restored with a bootable CD or USB-Stick (bare metal restore).

UrBackup (http://www.urbackup.org/) is made by URONI is not mine, so if you think is it a good software please say thanks to Uroni :smile:

I don't write how to configure a Jail on FreeNAS beacuse there are a good docuemntation on http://doc.freenas.org/index.php/Plugins#Managing_the_Plugins_Jail

Below everything you need to start your UrBackup Software!
---

Download latest Urbackup-Server
> wget http://urpc.dyndns.org/urbackup_unstable/urbackup-server-1.0.tar.gz

Fetch ports for Freenas because with need lib crypto++ with option "-fPIC":
> portsnap fetch extract

Compile the library:

> cd /usr/ports/security/cryptopp
> make CXXFLAGS="-fPIC"
> make install

Install Curl
> pkg_add -r curl

Extract the urbackup-server-1.0.tar.gz

> tar zxvf urbackup-server-1.0.tar.gz
> cd urbackup-server
> ./configure
> make
> make install

The UrBackup "make install" on linux works well but on FreeNAS ask about creation of the "urbackup" user so is not difficult we only specify some option like:
- Defualt home: /usr/local/var/urbackup
- Username: urbackup
- Password: no password

Now we are done!

To start UrBackup server:
> cd /usr/local/var
> /usr/local/sbin/urbackup_srv --plugin /usr/local/lib/liburbackupserver_urlplugin.so --plugin /usr/local/lib/liburbackupserver_cryptoplugin.so --plugin /usr/local/lib/liburbackupserver_downloadplugin.so --plugin /usr/local/lib/liburbackupserver_fsimageplugin.so --plugin /usr/local/lib/liburbackupserver_httpserver.so --plugin /usr/local/lib/liburbackupserver.so --http_root /usr/local/var/urbackup/www --workingdir /usr/local/var --user urbackup --http_port 55414


-----
Simple Init Script

> vi /etc/rc.d/urbackup_srv


file: urbackup_srv (Write the script start after "----" to "----"
----
#!/bin/sh

. /etc/rc.subr

name=urbackup_srv
rcvar=urbackup_srv_enable

command="/usr/local/sbin/${name}"
command_args="--plugin /usr/local/lib/liburbackupserver_urlplugin.so --plugin /usr/local/lib/liburbackupserver_cryptoplugin.so --plugin /us
r/local/lib/liburbackupserver_downloadplugin.so --plugin /usr/local/lib/liburbackupserver_fsimageplugin.so --plugin /usr/local/lib/liburbac
kupserver_httpserver.so --plugin /usr/local/lib/liburbackupserver.so --http_root /usr/local/var/urbackup/www --workingdir /usr/local/var --
user urbackup --http_port 55414 --logfile /var/log/urbackup_srv.log"

start_precmd="cd /usr/local/var"

load_rc_config $name
run_rc_command "$1"
----

Give the Executable permission

> chmod +x /etc/rc.d/urbackup_srv

Edit the Autostart file "/etc/rc.d/urbackup_srv" and add the line:
> urbackup_srv_enable="YES"

------
Many thanks to URONI for helping and developing this very good piece of software
 

dabone

Dabbler
Joined
Aug 28, 2012
Messages
10
I couldn't get this portion to work on my machine. Pentinum D 620 Processor.

Fetch ports for Freenas because with need lib crypto++ with option "-fPIC":
> portsnap fetch extract

Compile the library:

> cd /usr/ports/security/cryptopp
> make CXXFLAGS="-fPIC"
> make install


sub the following make command.

make CXXFLAGS="-DCRYPTOPP_DISABLE_SSSE3 -fPIC"

then do the make install.

Later,
dabone
 

cheeks

Cadet
Joined
Feb 24, 2013
Messages
5
dimi thanks for the information

using freenas 8.30

i seem to have one problem regarding the autostart of urbackup on my freenas 8.30 server

i installed the jail plugin

my jail plugin is enabled and is working

then i did the following to get into the jail to install urbackup using putty

# jsl
# jexec 1 tcsh

after installing urbackup in the jail i did what you explained in starting the urbackup server using putty

> cd /usr/local/var
> /usr/local/sbin/urbackup_srv --plugin /usr/local/lib/liburbackupserver_urlplugin.so --plugin /usr/local/lib/liburbackupserver_cryptoplugin.so --plugin /usr/local/lib/liburbackupserver_downloadplugin.so --plugin /usr/local/lib/liburbackupserver_fsimageplugin.so --plugin /usr/local/lib/liburbackupserver_httpserver.so --plugin /usr/local/lib/liburbackupserver.so --http_root /usr/local/var/urbackup/www --workingdir /usr/local/var --user urbackup --http_port 55414

the urbackup server started without any problems and i can browse to the urbackup system eg: http://192.168.0.101:55414

i then proceeded to create the Init Script as per your instructions.

my problem is getting the Init Script to work
when my freenas 8.30 server boots i get the following error
/etc/rc: WARNING: $urbackup_srv_enable is not set properly - see rc.conf(5)

what can i do to get the urbackup server to start automatically on freenas 8.30 server boot?

any help greatly appreciated :D
 

cheeks

Cadet
Joined
Feb 24, 2013
Messages
5
Please guys can yoiu help the FreeNAS Noob with URBACKUP

i really need to get this up and running.

i am not sure what i am doing wrong with the final part of the installation on getting " urbackup INIT SCRIPT "

using freenas 8.30

i seem to have one problem regarding the autostart of urbackup on my freenas 8.30 server

i installed the jail plugin

my jail plugin is enabled and is working

then i did the following to get into the jail to install urbackup using putty

# jsl
# jexec 1 tcsh

after installing urbackup in the jail i did what you explained in starting the urbackup server using putty

> cd /usr/local/var
> /usr/local/sbin/urbackup_srv --plugin /usr/local/lib/liburbackupserver_urlplugin.so --plugin /usr/local/lib/liburbackupserver_cryptoplugin.so --plugin /usr/local/lib/liburbackupserver_downloadplugin.so --plugin /usr/local/lib/liburbackupserver_fsimageplugin.so --plugin /usr/local/lib/liburbackupserver_httpserver.so --plugin /usr/local/lib/liburbackupserver.so --http_root /usr/local/var/urbackup/www --workingdir /usr/local/var --user urbackup --http_port 55414

the urbackup server started without any problems and i can browse to the urbackup system eg: http://192.168.0.101:55414

i then proceeded to create the Init Script as per your instructions.

my problem is getting the Init Script to work
when my freenas 8.30 server boots i get the following error
/etc/rc: WARNING: $urbackup_srv_enable is not set properly - see rc.conf(5)

what can i do to get the urbackup server to start automatically on freenas 8.30 server boot?

any help greatly appreciated
 

cheeks

Cadet
Joined
Feb 24, 2013
Messages
5
Urbackup init script

guys please can you help me

Using FreeNAS 8.3

Trying to get the Init Script to work for " URBACKUP "

http://forums.freenas.org/showthrea...Restore-Fantastic-solution&highlight=urbackup

I have installed the " jail " pbi and it is working

I have installed the urbackup plugin as per the installation example

What is confusing for me is the " INIT SCRIPT " for URBACKUP

-----
Simple Init Script

> vi /etc/rc.d/urbackup_srv


file: urbackup_srv (Write the script start after "----" to "----"
----
#!/bin/sh

. /etc/rc.subr

name=urbackup_srv
rcvar=urbackup_srv_enable

command="/usr/local/sbin/${name}"
command_args="--plugin /usr/local/lib/liburbackupserver_urlplugin.so --plugin /usr/local/lib/liburbackupserver_cryptoplugin.so --plugin /us
r/local/lib/liburbackupserver_downloadplugin.so --plugin /usr/local/lib/liburbackupserver_fsimageplugin.so --plugin /usr/local/lib/liburbac
kupserver_httpserver.so --plugin /usr/local/lib/liburbackupserver.so --http_root /usr/local/var/urbackup/www --workingdir /usr/local/var --
user urbackup --http_port 55414 --logfile /var/log/urbackup_srv.log"

start_precmd="cd /usr/local/var"

load_rc_config $name
run_rc_command "$1"
----

Give the Executable permission

> chmod +x /etc/rc.d/urbackup_srv

Edit the Autostart file "/etc/rc.d/urbackup_srv" and add the line:
> urbackup_srv_enable="YES"

------


What I am trying to understand is the following:
1. Does the urbackup init script " run/execute " inside " jail "

2. To get into the " jail " i issued the following using putty to install urbackup -IS THIS CORRECT??:
# jsl
# jexec 1 tcsh


3. What do I need to do to get the URBACKUP init script to work on bootup as i have tried to get it to work however my FreeNAS 8.3 Server show the Following Error on System Boot:
" /etc/rc: WARNING: $urbackup_srv_enable is not set properly - see rc.conf(5) " :confused:
What do i need to check or do to get it to Function on System Boot

Please guys any help greatly appreciated :)
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
Cheeks,

Why did you start a new thread for your last post, and why did you basically post the same question twice?

This is the kind of thing that will get you at least temporarily banned, please follow the rules.

1. Does the urbackup init script " run/execute " inside " jail "

YES

2. To get into the " jail " i issued the following using putty to install urbackup -IS THIS CORRECT??:
# jsl
# jexec 1 tcsh

YES, except it should be "jls" instead of "jsl"

I'm not sure if tcsh is installed in the jail by default, so you might want to try "csh" instead.

3. What do I need to do to get the URBACKUP init script to work on bootup as i have tried to get it to work however my FreeNAS 8.3 Server show the Following Error on System Boot:
" /etc/rc: WARNING: $urbackup_srv_enable is not set properly - see rc.conf(5) "
What do i need to check or do to get it to Function on System Boot

You need to make sure you edit the rc.conf inside the jail. The Jail plugin starts all the plugins that are installed and were turned ON from the the GUI before reboot (if the plugin is correctly created).
 

svno

Cadet
Joined
Sep 13, 2013
Messages
4
Code:
[root@ba-backup01 ~/urbackup-server-1.3.0.327]# ./configure                                                                       
checking for a BSD-compatible install... /usr/bin/install -c                                                                       
checking whether build environment is sane... yes                                                                                 
checking for a thread-safe mkdir -p... ./install-sh -c -d                                                                         
checking for gawk... no                                                                                                           
checking for mawk... no                                                                                                           
checking for nawk... nawk                                                                                                         
checking whether make sets $(MAKE)... yes                                                                                         
checking for g++... g++                                                                                                           
checking whether the C++ compiler works... no                                                                                     
configure: error: in `/root/urbackup-server-1.3.0.327':                                                                           
configure: error: C++ compiler cannot create executables                                                                           
See `config.log' for more details


Do anybody can help? How do i activate the C++ compiler?
 

peterjs

Cadet
Joined
Nov 6, 2013
Messages
1
As for the auto startup - shouldn't the last list
Code:
urbackup_srv_enable="YES"

be added to
Code:
/conf/base/etc/rc.conf

instead of
Code:
/etc/rc.d/urbackup_srv

?

Is anyone successfully running it on FreeNAS 9.1? I have installed it in a jail, the web interface is up and running, but the UrBackup server is not connecting to the clients.
 

RAurelian

Dabbler
Joined
Jan 29, 2014
Messages
37
Hi all!

I am successfully running UrBackup v 1.3.2 on FreeNAS 9.2.0 in a Jail and it seems to work OK (web server is accessible, clients are connecting to the server, backing up works and so does restore).

I want to thank URONI for this great software and the author of the guide in the beginning of this thread which I used to get the server to work.

Since I had trouble following the steps above and I had to do a lot of tinkering of my own, I would like to give something back to the community and write the steps that worked for me. I know most of you will find the mistakes I made to be noobish, but please have mercy - I am a Windows Sys Admin with little experience on Linux and close to nil on Unix. I am writing this in the hope that it will be useful to others like me.
So here are the detailed steps I took to get UrBackup to work off my FreeNAS 9.2.0 server:

START of UrBackup GUIDE

Unfortunately, in the initial guide stated that it will not provide any info on creating the Jail as there is enough documentation, which is fine, but some info would have helped. At first I tried compiling UrBackup in Linux Jails and I had all kinds of issues (very bad in Ubuntu and CentOS, but nearly got it working in Debian); please see this post on the project`s forum for the issues I had: https://sourceforge.net/apps/phpbb/urbackup/viewtopic.php?f=1&t=371
I created a Standard FreeBSD Jail (x64) with the name 'UrBackup' and IP: xxx.xxx.xxx.xxx.
autostart remained checked
VIMAGE - unchecked
NAT - unchecked
vanilla - checked

All commands are run from the CLI that FreeNAS provides for the Jail and with the root account.

Ran 'pkg install' to install the package manager and got the error: 'pkg: PACKAGESITE in pkg.conf is deprecated. Please create a repository configuration file' --> ran 'pkg2ng'

Ran 'pkg install update'

Ran 'pkg install nano' to install the nano editor

Ran 'portsnap fetch extract'

'cd /usr/ports/security/cryptopp'
'make CXXFLAGS="-fPIC"'
'make install'

Ran 'pkg install curl' to install curl

Added a password to the root account (I found that if I copied the tarball by any means from inside the jail, when trying to extract it all kinds of errors occurred) so I can copy the server source files to the Jail via SSH with FileZIlla
Enabled SSHD ('sshd_enable=yes' in /etc/rc.conf) and changed 'PermitRootLogin' to yes in '/etc/ssh/sshd_config' then ran '/etc/rc.d/sshd start' -> this should be disabled later on and a new user for SSH created if you really need SSH access to the Jail.

Downloaded the latest tarball containing the urbackup source from here: https://sourceforge.net/projects/urbackup/files/Server/1.3.2/urbackup-server-1.3.2.tar.gz/download
Copied urbackup binaries to '/urbackup' (created the directory for this) via SSH with FileZilla.

Unpacked urbackup:
'cd /urbackup'
ran 'tar zxvf cd urbackup-server-1.3.2.tar.gz'

Install urbackup:
'cd urbackup-server-1.3.2'
ran './configure'
ran 'make' - this took quite some time, but no errors occurred (as opposed to Linux Jails)
ran 'make install' - this tried to perform the following steps, but the user creation did not work automatically:
'mkdir -p "/usr/local/var/urbackup"' - so I guess it installed here
'adduser urbackup --system --quiet --group --home "/usr/local/var/urbackup" || true' - so it tried to create the 'urbackup' user silently but failed, so I had to create it manually:
username: urbackup (and pressed ENTER)
full name: urbackup (and pressed ENTER)
uid: left empty for default and pressed ENTER
login group: pressed ENTER, so I guess the default group of 'urbackup' was created
invite urbackup into other groups: pressed ENTER
login class: left empty for default and pressed ENTER
shell: left empty for default and pressed ENTER
home directory: wrote '/usr/local/var/urbackup' since I saw that the install script was trying to make that path the user`s home
home directory permissions: left empty for default and pressed ENTER
use password-based authentication: no (and presed ENTER)
lock out the accoutn after creation: no (and presed ENTER)
OK: yes (and presed ENTER)
add another user: no (and presed ENTER)
Did not start the server via command line, but rather proceeded to building the Initializing script:
Ran: 'nano /etc/rc.d/urbackup_srv'
using nano (I know the guide says I should use vim but I hate that program) I wrote the init script:
Code:
#!/bin/sh
 
. /etc/rc.subr
 
name=urbackup_srv
rcvar=urbackup_srv_enable
 
command="/usr/local/sbin/${name}"
command_args="--plugin /usr/local/lib/liburbackupserver_urlplugin.so --plugin /usr/local/lib/liburbackupserver_cryptoplugin.so --plugin /usr/local/lib/liburbackupserver_downloadplugin.so --plugin /usr/local/lib/liburbackupserver_fsimageplugin.so --plugin /usr/local/lib/liburbackupserver_httpserver.so --plugin /usr/local/lib/liburbackupserver.so --http_root /usr/local/var/urbackup/www --workingdir /usr/local/var --user urbackup --http_port 55414 --logfile /var/log/urbackup_srv.log --daemon"
 
start_precmd="cd /usr/local/var"
 
load_rc_config $name
run_rc_command "$1"


In the original guide, the command_args part contained extra spaces (or line breaks?) which caused me a world of hurt.. Eventually I realized that all the command_args belong on one long line - without this the UrBackup server does not start correctly. The code part containing the init script just above is exactly how my script is now and it works.

Ran 'chmod +x /etc/rc.d/urbackup_srv' to give the script execute permissions

Added the line 'urbackup_srv_enable="YES"' to the autostart file '/etc/rc.conf'

Ran '/etc/rc.d/urbackup_srv onestart' - the server started (I could access the web interface from the network), but there was a problem with the path where the server was trying to store the backups (by default it seems this path is 'C:\urbackup' which is obviously wrong on Unix).

I created the folder '/BACKUPS' in the root of the Jail and afterwards changed the ownership of this folder to urbackup user, via this command: 'chown urbackup /BACKUPS'

Ran '/etc/rc.d/urbackup_srv onestart' again, now the error: 'ERROR: No permission to access "/BACKUPS/urbackup_tmp_files"' occurred in the log of the program

Ran 'chown -R urbackup /BACKUPS' then '/etc/rc.d/urbackup_srv onestart' again and now no more errors occurred in the log of the program -->> so I guess the permissions were wrong.

END of GUIDE

At this point I can access the web interface from the network and any configurations I make seem to stick. My clients are also connecting to the UrBackup server in the Jail and I could do both image and file backups and restore. I want to run more tests and then, ultimately I want to use this setup in production.

There is still one issue remaining: when I manually start the UrBackup server from inside the Jail via the init script, the program takes over the CLI and outputs the program`s log in it - so I can no longer use the CLI. If I want to be able to write again in the CLI, I have to 'CTRL+C', which shuts down the program and then I can use the CLI again - but if I start the program again it will do the same thing. This can be circumvented if after I start the program with the script, I close the CLI window that FreeNAS provides and open it again (this way the server keeps running and I can write in the CLI again).
Normally I would be content with this solution, but if I stop the Jail and start it, the Start (Jail) message in FreeNAS hangs indefinitely (with the "Start" button now turned to "Please Wait..."). If I click on the X and close the Start dialogue box, I can see that the Jail has started and I can access it via CLI. After a restart, I can access the UrBackup server again and it seems to work OK, but the SSH service does not work; however, if after I open the CLI and stop UrBackup server, the SSH service starts (and I can then start UrBackup manually again) - so maybe the urbackup init script is doing the same thing during startup - capturing the CLI and preventing the other services from starting?

For now I do not need SSH anymore anyway and the Jail seems to work OK despite the Start dialogue box hanging, so I do not really care about this - but is there a way to prevent the init script from capturing the CLI and/or preventing other services from starting?

Other than that, the Jail starts automatically when I reboot FreeNAS and UrBackup starts automatically in the Jail, so the important part works as I need it.


Again, please forgive me if the guide is written too noobish or it also shows some steps that a normal Unix user would take for granted, but I wrote as I would for my own use and maybe other will find something useful here.

I would like to ask FreeNAS to integrate UrBackup as a plugin since I believe that this program is really useful and extends FreeNAS to a fully-fledged back-up solution (I know Bacula is already present as a plugin, but from what I could gather that does not do Image backups and just file backups are not enough for some) - what is the process for requesting this?

Thank you for reading this!

EDIT:

Adding '--daemon' to the command arguments in the init script solves the problem where the server would capture the CLI output, so I added this in the script above. This way the Jail starts instantly and with all services enabled.

Also, the developer compiled a PBI, so maybe you want to give that a try and save yourselves the hassle of compiling it. You can DL it from here: https://sourceforge.net/projects/urbackup/files/Server/1.3.2PBI/
 

dasti

Explorer
Joined
Jun 11, 2014
Messages
71
Hi

I tried the pbi (http://sourceforge.net/projects/urb...I/urbackup-server-1.3.2PBI-amd64.pbi/download) on freenas 9.2.1.6 beta
When I start the plugin from the UI, I get "some error occured"

the /var/log/messages says that

Jun 24 09:42:51 freenas manage.py: [freeadmin.navtree:526] Couldn't retrieve http://192.168.4.254/plugins/urbackup-server/3/_s/treemenu: timed out
Jun 24 09:43:33 freenas manage.py: [freeadmin.navtree:526] Couldn't retrieve http://192.168.4.254/plugins/urbackup-server/3/_s/treemenu: timed out
Jun 24 09:44:56 freenas manage.py: [plugins.utils:92] Couldn't retrieve http://192.168.4.254/plugins/urbackup-server/3/_s/status: HTTP Error 504: Gateway Time-out

when I want to start URbackup manually in the jails here's what I get

root@customplugin_1:/ # /usr/local/sbin/urbackup_srv --plugin /usr/local/lib/liburbackupserver_urlplugin.so --plugin /usr/local/lib/liburbackupserver_cryptoplugin.so --plugin /usr/local/lib/liburbackupserver_downloadplugin.so --plugin /usr/local/lib/liburbackupserver_fsimageplugin.so --plugin /usr/local/lib/liburbackupserver_httpserver.so --plugin /usr/local/lib/liburbackupserver.so --http_root /usr/local/var/urbackup/www --workingdir /usr/local/var --user urbackup --http_port 55414
2014-06-24 10:45:30: ERROR: Unable to change user, probably because process uid is not root
2014-06-24 10:45:30: Loaded -url- plugin
2014-06-24 10:45:30: Loaded -cryptoplugin- plugin
2014-06-24 10:45:30: Loaded -download- plugin
2014-06-24 10:45:30: Loaded -fsimageplugin- plugin
2014-06-24 10:45:30: Starting HTTP-Server on port 55414
2014-06-24 10:45:30: ERROR: HTTP: Failed binding SOCKET to Port 55414
2014-06-24 10:45:30: Generating Server identity...
2014-06-24 10:45:30: Generating Server token...
2014-06-24 10:45:30: Could not open db [urbackup/backup_server.db]
2014-06-24 10:45:30: ERROR: Database "urbackup/backup_server.db" couldn't be opened
2014-06-24 10:45:30: 0x4e0da0Couldn't open backup server database. Exiting. Expecting database at "/usr/local/var/urbackup/backup_server.db"

I seems to have 3 problems
- user
- ip address
- database not installed
 

RAurelian

Dabbler
Joined
Jan 29, 2014
Messages
37
Hi Dasti,

I too had all kinds of issues with the PBI build so I did not bother with it and compiled the package myself - did you check out the guide above?

Other than this advice I cannot really help too much unless I would be debugging the system myself since I am new to Unix/Linux and I know almost nothing theoretically, but I usually do OK practically.

I am running my jail with UrBackup without issues since I set it up and it`s great! I`ve also updated to FreeNAS 9.2.1.5 without issues. You should be able to get it working eventually unless something bad happened in 9.2.1.6 :)
 

dasti

Explorer
Joined
Jun 11, 2014
Messages
71
Hi RUrelian !

thanks for your answer and the feedback on your experience.

I tried the "coward and lazy" way with the PBI, but I see now that it was a bad idea. My level in linux is already quite poor so, in BSD, you can imagine the disaster ...
I didn't dare use you splendid guide yet but now I loaded some drinks on the desk, cleaned the keyboard, oiled the chair asked for some foot massage girls and I'm on it ! :smile:
 

dasti

Explorer
Joined
Jun 11, 2014
Messages
71
it's installed and working on freenas v9.2.1.6 beta. For now, I didn't pushed the tests very far but it's seems OK !!
here's my comments, I hope you'll fing them usefull !

1/ For the problem of dowloading directly from the jail

Added a password to the root account (I found that if I copied the tarball by any means from inside the jail, when trying to extract it all kinds of errors occurred)
I did this and it worked smoothly for me

pkg install wget
cd /
wget https://sourceforge.net/projects/urbackup/files/Server/1.3.2/urbackup-server-1.3.2.tar.gz/download


2/ For the backup directory

Ran '/etc/rc.d/urbackup_srv onestart' - the server started (I could access the web interface from the network), but there was a problem with the path where the server was trying to store the backups (by default it seems this path is 'C:\urbackup' which is obviously wrong on Unix).

At that stage I would say :
- Go in URbackup's web interface http://[IpaddressOfTheJail]:55141
- go in settings / general / server tab
- in the "backup storage path" field, it's "c:/backup" by default. Configure a correct directory (for example /backups) and save it - note it's not a good idea to use /var/backups ;-)


3/ for the commands arguments


In the original guide, the command_args part contained extra spaces (or line breaks?) which caused me a world of hurt.. Eventually I realized that all the command_args belong on one long line - without this the UrBackup server does not start correctly. The code part containing the init script just above is exactly how my script is now and it works.

Copying the code (which is 100% correct in your post) in the ssh using nano, I bumped into the same problem ;). So I don't know what really happened there but I have to edit the file again to delete the line breaks


4/ generally speaking in the guide

I suggest doing just a bit of esthetic formatting for example

- put the commands in this fonts
- the remarks in this font
- normal text like this
...

If you're ok with this kind of modifications, I can repost your entire guide with modifications and you'll can copy it back in the original post and I'll delete mine afterwards
 

RAurelian

Dabbler
Joined
Jan 29, 2014
Messages
37
Hi,

Please see my answers:

it's installed and working on freenas v9.2.1.6 beta. For now, I didn't pushed the tests very far but it's seems OK !!
here's my comments, I hope you'll fing them usefull !

1/ For the problem of dowloading directly from the jail


I did this and it worked smoothly for me

pkg install wget
cd /
wget https://sourceforge.net/projects/urbackup/files/Server/1.3.2/urbackup-server-1.3.2.tar.gz/download

^>> Yeah, I know it should have worked but when I first started working with the FreeNAS Jails I had a lot of trouble using basic tools due to bad implementation of jails? I could not use pkg install, I did not understand why I could not unpack successfully a tarball at first (after downloading the tarball via other means from the inside the jail). Anyway, for me this seemed the easiest solution and one that worked 100%.


2/ For the backup directory



At that stage I would say :
- Go in URbackup's web interface http://[IpaddressOfTheJail]:55141
- go in settings / general / server tab
- in the "backup storage path" field, it's "c:/backup" by default. Configure a correct directory (for example /backups) and save it - note it's not a good idea to use /var/backups ;-)

^>> Yep, that is what I say that I did in the guide. Went to the settings and changed the backup storage path to a folder in the Jail, a folder that I previously created for this purpose and for which I gave ownership to the UrBackup user. I did not use /var/backup; for simplicity and ease of use i made exactly this folder: /BACKUPS (so straight in the root of the jail).


3/ for the commands arguments




Copying the code (which is 100% correct in your post) in the ssh using nano, I bumped into the same problem ;). So I don't know what really happened there but I have to edit the file again to delete the line breaks

^>> Yes, maybe with another editor I would not have encountered this problem, but as I said I am a noob and as such I HATE VIM and am only comfortable with NANO. Yes, it created the issue with the breaking of lines but it`s not that hard to fix (after you spot the problem).


4/ generally speaking in the guide

I suggest doing just a bit of esthetic formatting for example

- put the commands in this fonts
- the remarks in this font
- normal text like this
...

^>> You are absolutely right; I should have done that.

If you're ok with this kind of modifications, I can repost your entire guide with modifications and you'll can copy it back in the original post and I'll delete mine afterwards


I do not need any "credit" for the guide; I would be happy if the information is readily available and of use for as many people as possible, regardless of who wrote it. If I contributed, good, but is this not what open-source/free software is about? Uroni (Martin Raiber) deserves the whole credit and thanks since this project is pretty much a one-man show (as far as I can tell) and he needs all the help he can get.

If you have the time, please re-write the guide with the steps that worked for you (and you can also add as alternatives the steps that worked for me), format it to be easier to read and post it yourself.

Thank you for the time to provide your feedback and good luck with everything!
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
if someone rewrites this in steps that work for 9.x in its own thread I'll gladly add that thread to the guides. ;)
 

dasti

Explorer
Joined
Jun 11, 2014
Messages
71
Status
Not open for further replies.
Top