How To: Create Ubuntu Storage Repository

Availability for the Always-On Enterprise

How To: Create Ubuntu Storage Repository

Veeam Logoby sorell.it » Mon Oct 24, 2016 10:32 pm 2 people like this post

In order to get this to work we had to be running Veeam 9.0.0.1715 & these commands were run on a Ubuntu 16.04 Server installation.

Run the following on the ubuntu server, this installed the required software needed to build the perl modules required by Veeam
Code: Select all
sudo apt-get install build-essential


Now you can install the perl modules with cpan
Code: Select all
sudo cpan constant Carp Cwd Data::Dumper Encode Encode::Alias Encode::Config Encode::Encoding Encode::MIME::Name Exporter Exporter::Heavy File::Path File::Spec File::Spec::Unix File::Temp List::Util Scalar::Util Socket Storable threads

Note: I actually install all the perl modules with seperate commands however it should work all as one

Now that all the modules are installed you need to enable sued to elevate without prompting for a password
Code: Select all
sudo visudo

And then put in the line
Code: Select all
%sudo   ALL=NOPASSWD: ALL


After that you should now be able to connect Veeam to a Ubuntu server
sorell.it
Novice
 
Posts: 3
Liked: 2 times
Joined: Mon Oct 24, 2016 10:22 pm
Full Name: Sorell IT

Re: How To: Create Ubuntu Storage Repository

Veeam Logoby PTide » Wed Oct 26, 2016 11:35 am

Hi,

Have you tried to add
Code: Select all
Defaults:veeamuser !requiretty
in your sudoers file for the veeamuser that you use to connect to the server?
PTide
Veeam Software
 
Posts: 3022
Liked: 247 times
Joined: Tue May 19, 2015 1:46 pm

Re: How To: Create Ubuntu Storage Repository

Veeam Logoby sorell.it » Wed Dec 07, 2016 10:52 pm

Sorry for the crazy delayed reply, Just had the opportunity to run up another Ubuntu repo for Veeam so I tried out what you suggested and it still didn't play ball for me. Went back to using:
Code: Select all
%sudo   ALL=NOPASSWD: ALL

and then it started working.
sorell.it
Novice
 
Posts: 3
Liked: 2 times
Joined: Mon Oct 24, 2016 10:22 pm
Full Name: Sorell IT

Re: How To: Create Ubuntu Storage Repository

Veeam Logoby tsightler » Thu Dec 08, 2016 1:46 am 2 people like this post

Just in case others read this, sudo is not required for a Linux repository, as long as the user that you are connecting with has permissions to the directory you want to use to store backups. It generally not considered best practice to provide sudo access to accounts used for Linux repositories. Far better is to create a restricted user and set the permissions on the repository directory to u+rw only by that user.
tsightler
Veeam Software
 
Posts: 4772
Liked: 1740 times
Joined: Fri Jun 05, 2009 12:57 pm
Full Name: Tom Sightler


Return to Veeam Backup & Replication



Who is online

Users browsing this forum: Bing [Bot], ikorsakov, Yahoo [Bot] and 62 guests