Almir will install everything inside one directory, which must be empty. Application is meant to be self-contained, meaning no additional administrator is needed besides upgrading to a newer version. Almir should be always installed on a system together with bacula-director.
Install prerequesities (Debian based):
$ sudo apt-get install git bacula-console python-distribute
Note
Installer will ask you few questions about SQL database and configuration for bconsole.
Install almir (recommended: under same user as bacula):
$ cd /some/empty/directory/to/install/almir/
$ sh -xec "$(wget -O - https://raw.github.com/iElectric/almir/master/install_production.sh)"
You can continue with configuring Configuring Nginx as frontend.
TODO ;)
You would normally put this in /etc/nginx/sites-enabled/
server {
listen 80;
server_name almir.mywebsite.com;
location / {
proxy_pass http://localhost:2500;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
# optional authentication - recommended
auth_basic "Restricted";
# how to place and write htpasswd: http://wiki.nginx.org/HttpAuthBasicModule#auth_basic_user_file
auth_basic_user_file htpasswd;
}
}
Then run:
$ /etc/init.d/nginx reload
Now try to access http://almir.mywebsite.com/
Currently it’s best to just reinstall. In future, this will be easy as running a command.
TODO ;)