FreeNAS-11.2-BETA3 BackupPC Plugin

Jim30

Cadet
Joined
Feb 5, 2016
Messages
4
I've installed the plugin, the jail runs correct and seams to have IP connectivity. However no web service is running in 8080 as the instructions for management would suggest.

Through the command iocage console backuppc, I have run the tests in the instructions all seems to be working well. The Backuppc log shows the service running.

I havn't been able to find a web service (eg apache or httpd) log, i'm guess this is really the issue.

Has anyone tried the plugin and got it working?
 
D

dlavigne

Guest
Were you able to resolve this? If not, which instructions are you following?
 

Jim30

Cadet
Joined
Feb 5, 2016
Messages
4
Were you able to resolve this? If not, which instructions are you following?

No.

When the plugin successfully installs they is a dialog box with a list of follow steps, i followed that. Completed the test (as the user backuppc, that worked).
 

Knuuut

Dabbler
Joined
May 4, 2015
Messages
19
I'm affected too. No output on http://IP:8080

ping works, telnet not

Code:
telnet 10.10.10.101 8080
Trying 10.10.10.101...
telnet: Unable to connect to remote host: Connection refused
 

Knuuut

Dabbler
Joined
May 4, 2015
Messages
19
As already reported by @Jim30
Because there is no webserver running inside the jail...?

Code:
root@backuppc:/ # sockstat
USER	 COMMAND	PID   FD PROTO  LOCAL ADDRESS		 FOREIGN ADDRESS
backuppc perl	   24988 4  stream /var/run/BackupPC/BackupPC.sock
root	 login	  24949 3  dgram  -> /var/run/logpriv
root	 cron	   22906 4  dgram  -> /var/run/logpriv
root	 syslogd	22843 4  dgram  /var/run/log
root	 syslogd	22843 5  dgram  /var/run/logpriv
 
D

dlavigne

Guest
Please report the issue at bugs.freenas.org and post the issue number here.
 

Joel Linn

Dabbler
Joined
Dec 3, 2014
Messages
16
There now is an apache running in the jail but it only serves me the BackupPC documentation? How do I access the admin panel?
 

Knuuut

Dabbler
Joined
May 4, 2015
Messages
19
This plugin is half baked and useless. Even rsync is missing, which is mandatory. I think someone has to read the docs and test it before publishing this crap.
I'm out.
 
D

dlavigne

Guest
Or create one of their own...

Or create a bug report indicating which software should be added to the plugin...
 

Joel Linn

Dabbler
Joined
Dec 3, 2014
Messages
16
I see... BackupPC would be the ideal companion for many NAS solutions.
I use a FreeNAS server as my backup storage for VMs and containers.
Having the backup software run on the storage system and not the system that needs to be backed up would be so much nicer...
 

Joel Linn

Dabbler
Joined
Dec 3, 2014
Messages
16
Don‘t bother with the current plugin it‘s basically just the documentation.

Yes, I forked the plugin, but since there is another issue with missing packages in the plugin repository I am only able to run it as a jail, installed manually.

It‘s running for a week now backing up a linux and a win 2019 machine and everything seems to work just fine for now.

ixSystem employees seem to be on holiday, but you can upvote my pull request and issue:
https://github.com/freenas/iocage-ix-plugins/pull/65
https://github.com/trueos/trueos-core/issues/1559

When these are resolved I will be able to craft a custom plugin which is installable by command line for everyone. After that runs smooth for me and maybe some guys here willing to test it, it can be merged in the upstream repository so that everyone can use it.
 
Joined
Oct 6, 2012
Messages
5
Don‘t bother with the current plugin it‘s basically just the documentation.

Yes, I forked the plugin, but since there is another issue with missing packages in the plugin repository I am only able to run it as a jail, installed manually.

It‘s running for a week now backing up a linux and a win 2019 machine and everything seems to work just fine for now.

ixSystem employees seem to be on holiday, but you can upvote my pull request and issue:
https://github.com/freenas/iocage-ix-plugins/pull/65
https://github.com/trueos/trueos-core/issues/1559

When these are resolved I will be able to craft a custom plugin which is installable by command line for everyone. After that runs smooth for me and maybe some guys here willing to test it, it can be merged in the upstream repository so that everyone can use it.

Thank you. Look forward to the final plug-in.
 

peacepipe

Dabbler
Joined
Dec 17, 2017
Messages
36
Are there any new information? I'm very interested in a stable backuppc plugin for FreeNAS.
 

Joel Linn

Dabbler
Joined
Dec 3, 2014
Messages
16
My github threads have been noticed but i am still missing one package. I will post here when there is something ready for testing.
 

ezra

Contributor
Joined
Jan 15, 2015
Messages
124
Tester here, would love this plugin to function. Tell me what to do.
 

ezra

Contributor
Joined
Jan 15, 2015
Messages
124
Edit: Only keeping this post for own reference. Better guide here: https://forums.freenas.org/index.php?threads/freenas-11-2-beta3-backuppc-plugin.69884/page-2 by @Joel Linn

Got it to work
To do:
* SSL
* Hardening

Code:
# In freenas create a jail and mount storage to jail # CHANGE PATHS # and note the release version
iocage create -n backuppc -r 11.2-RELEASE dhcp=on bpf=yes vnet="on" allow_raw_sockets="1" boot="on"
iocage fstab -a backuppc /mnt/HDD/Backup /var/db/BackupPC nullfs rw 0 0

iocage console backuppc

# Inside the jail:
# Install deps and extras
pkg update
pkg install apache24 backuppc wget par2cmdline libpar2 rsync samba48 ap24-mod_perl2 nano

# Backup config and download new apache config
mv /usr/local/etc/apache24/httpd.conf /usr/local/etc/apache24/httpd.conf.backup
wget https://raw.githubusercontent.com/ezraholm50/iocage-plugin-backuppc/master/overlay/usr/local/etc/apache24/httpd.conf -P /usr/local/etc/apache24/

# Set admin password
htpasswd -c /root/.1 admin

# Set admin user
sed -i "s|$Conf{CgiAdminUsers}     = '';|$Conf{CgiAdminUsers}     = 'admin';|g" /usr/local/etc/backuppc/config.pl

# Enable the module in:
nano /usr/local/etc/apache24/modules.d/260_mod_perl.conf

# Run setup script
echo "" | sh /usr/local/etc/backuppc/update.sh

# Set permissions
chmod 750 /usr/local/www/cgi-bin/BackupPC_Admin

# Enable BPC/A24
sysrc -f /etc/rc.conf backuppc_enable="YES"
sysrc -f /etc/rc.conf apache24_enable="YES"

# Add to /usr/local/etc/apache24/httpd.conf #

<Directory /usr/local/www/cgi-bin/>
    SetHandler perl-script
    PerlResponseHandler ModPerl::Registry
    PerlOptions +ParseHeaders
    Options +ExecCGI
    Order deny,allow
    Deny from all
    Allow from all
    AuthName "Backup Admin"
    AuthType Basic
    AuthUserFile /root/.1
    Require valid-user
</Directory>

# restart
exit
iocage start backuppc

# Visit
http://jailIP/cgi-bin/BackupPC_Admin


I might have been forgotten some permission commands, please let me know if its not working for anyone
 
Last edited:

Joel Linn

Dabbler
Joined
Dec 3, 2014
Messages
16
I received a notice by Martin Wilke (FreeNAS collaborator) just now that the last missing package www/mod_perl2 has been added to the build list and will be availabe in the repository today.
mod_perl2 is in our case the best choice to host the backuppc web interface efficiently and fast.
Now is the first time I can test the plugin as a real plugin rather than "faking" everything in a plain jail.
 
Top