So far, so good. But as you can see, it asks me to reboot because the C++ component wasn’t up to date. I rebooted VBR, started the upgrade again, and it continued without issues…
Lab limitations: we don’t always have all the resources we’d like…(I have the OOTBI S3 repository turned off. It’s a physical appliance that I power on for testing and shut down afterward.)Done! Updated to the latest version and running!
Today we performed a clean installation of Veeam Backup & Replication 12.1.
Here are the screenshots so you can follow along.
One detail: the Windows Server has two partitions, C: for the OS and D: for Veeam data and the local repository.
First, download the ISO. I downloaded Veeam Data Platform. Now let’s mount the ISO and get started:
Launch the ISO to begin the installation.Select VBR.VBR 12You know what to do here.Select your license. For the Community Edition, leave this blank.Review the installation settings. As you know, I like to have two partitions: C for the OS and D for Veeam data and the local repository created during setup.Installation is now underway.After a little while, it’s done!Open the VBR 12 console.And here it is, ready for us to add settings, repositories, jobs, and more.
Recently I added to my home lab, my first Ubuntu Server with a Hardened Repository for Veeam Backup, you can find more info here.
Now, the thing is, I want to be able to get notified if some user logs into the server via ssh, as a extra control, since I disable the SSH service when I dont use it.
Also the idea came, to be able to get notified from other applications via telegram, so wasn’t a crazy idea at the end.
from previous entries, or the internet, you can easily find how to create a Bot, and how to get your ID, so Im not going to dive into that,
So first, once we have created and activated our bot and user ID, lets go a create our Telegram messaging program,
in our home, lets create a file like this:
nano send-over-telegram.sh
#!/bin/bash
GROUP_ID=
BOT_TOKEN=
# this 3 checks (if) are not necessary but should be convenient
if [ "$1" == "-h" ]; then
echo "Usage: `basename $0` \"text message\""
exit 0
fi
if [ -z "$1" ]
then
echo "Add message text as second arguments"
exit 0
fi
if [ "$#" -ne 1 ]; then
echo "You can pass only one argument. For string with spaces put it on quotes"
exit 0
fi
curl -s --data "text=$1" --data "chat_id=$GROUP_ID" 'https://api.telegram.org/bot'$BOT_TOKEN'/sendMessage' > /dev/null
GROUP_ID: Your Group ID from your telegram suscription BOT_TOKEN: your token received when you created your bot.
let`s convert this into a “program” to do so, lets move (or copy) our file into the route /usr/sbin
Everything inside /usr/sbin is owned by root, so lets change the ownership to our file
sudo chown root:root /usr/sbin/send-over-telegram
Finally, we want any user to execute this “program” so lets also modify the permissions for that
sudo chmod 0755 /usr/sbin/send-over-telegram
now we can test it out:
send-over-telegram test
you should get the “test” text message into your Telegram Group!
Now, let’s get notified any time a user logs into our server via SSH, to do so, we are going to create a script, and move it to a specific folder.
nano login-notification.sh
#!/bin/bash
# prepare any message you want
login_ip="$(echo $SSH_CONNECTION | cut -d " " -f 1)"
login_date="$(date +"%e %b %Y, %a %r")"
login_name="$(whoami)"
# For new line I use $'\n' here
message="New login to server"$'\n'"$login_name"$'\n'"$login_ip"$'\n'"$login_dat>
#send it to telegram
send-over-telegram "$message"
As you can see, here we are sending the information to our previously created “command” send-over-telegram
now, lets move (copy) the script where needs to be to trigger the alert:
We are done! Now, lets log off and back on to our Ubuntu Server,
You should get your Telegram Message with the information like this:
Remember!!
After using your SSH access, you should always disable it from the server, to avoid unwanted accesses to your server remotely, and do local changes or enable it just when you need to
In a previous post, we saw how to deploy the packaged Ubuntu VHL, which applies the default hardening and script settings, including stronger user permissions.
If you want to install Ubuntu Server yourself and then apply the hardening, here are screenshots of a standard installation followed by the script.
Go to the “Download” section.It takes us to a Git repository, where the script is available.I downloaded it to my computer and uploaded it to my Ubuntu server over SSH. Choose whichever method you prefer.Important: after copying the file, make it executable and run it with superuser privileges.The script is doing its thing…Done! Everything has been applied and installed.Here, after rebooting and signing in, we see the familiar “Disclaimer” message at the top. We can also see the mount points: the system and /backups, where we’ll store immutable backups later.
Done!
Our Ubuntu Server has been hardened, and we can now follow the next article to add the repository to Veeam B&R v12 and make it immutable, starting with adding the repository to VBR v12.
Hi! Today I finally got around to deploying and testing Veeam’s excellent VHR project, the VHR “Veeam Hardened Repository.”
It is a packaged Ubuntu Server deployment that has been hardened using DISA STIG security guidelines.
You can install the OS yourself and then run the Hardened script, but I was more interested in trying this “packaged” deployment.
I’ll share screenshots and a few comments; the process is very simple. For this test, I deployed it as a virtual machine. However, VHR is designed to run on a physical server, not a VM.
You can find all the information and downloads here!
Let’s get started:
As a prerequisite, the installer looks for the smallest disk for the OS and the largest disk for the repository. I used a 20 GB disk and a 100 GB disk, and both were detected automatically. For a physical server deployment, a RAID controller is recommended: a small RAID 1 for the OS and RAID 5 or 6 for the repository.
Boot the ISO.Network configuration: a bond using two network cards is recommended and easy to set up with the wizard. In my lab, I used a single DHCP-configured network card.If you use a proxy server for internet access, be sure to configure it, since the installer downloads security updates during setup.WARNING! This will erase all data on the disks and install the OS and repository. If you are reinstalling the OS because of a failure, do not do this or you will lose everything.Create a user.Here we go!The updates are running.That’s it. Now reboot.On first boot, sign in with the user you created earlier…Read the disclaimer carefully: after this initial setup and reboot, the OS will be hardened and all commands will be disabled for this user except reboot and shutdown! Make any adjustments before rebooting, and add the server to Veeam VBR first! In VBR, open the wizard to add a backup repository.HARDENED!!!Add the VHR server you just deployed.Use single-use credentials; otherwise, the connection will fail. This is a hardened repository, so every detail should be as secure as possible!Continue through the wizard. Select the drive where you want to store the backups: the repository drive!Set the immutability period in days. I left the default at 7 days!Continue with the usual repository configuration.Done!Here is our immutable repository, ready to use independently, as a SORB, and so on…
Now return to the VHR server we deployed to finish hardening it!
As you can see, we’ve added it to VBR. Now reboot the server. The hardening script will run, leaving the user with only the shutdown and reboot options.Done! The disclaimer confirms that hardening has been completed. Everything is ready to use the repository on our secure server.
To troubleshoot, reboot and sign in to the server as root in standalone mode from the GRUB boot menu, since root is disabled and our user only has reboot and shutdown permissions.
I hope you found this useful and that it helps you deploy this great option. I run it in my lab. As the documentation says, use it at your own discretion. It is unsupported, so you cannot open a support ticket for it!
To monitor the disks for failures, configure your server’s ILO, IPMI, DRAC, or equivalent, since the VHR OS does not send notifications.
I had a case during this week, and I wanted to share my experience / workaround with y’all.
I wanted to export a backup to an external drive, the VBR was a virtual machine, and no access to the Hypervisor to plug the USB and push it to the vm.
Now you may think, mount it somewhere and share it over the network as a shared folder…
I did, and was not working, some windows stuff that we were not allowed to share any unit, and was driving us crazy!
We did some research, and remembered that there was a way to share / mount remote USB Devices over the Network! now, time to give it a shot!
The idea is very straight forward, a Server machine, where the USB Devices is located at, and a client, to mount the remote resource as “local”.
USB SERVER(Local USB Drive)→NETWORK→USB CLIENT“Remotely mounted USB Drive”
You simply download the Server and client, and execute them in the decided machines, couple of easy configs, and you are good to go, let me show you some screenshots.
VirtualHere Server running in the workstation out of the Vsphere environment.Client running in the VBR ServerWe right click into the device we would like to mount remotely – locally.Boom! now shows the USB Drive like being plugged locally, its not!VBR Sees the unit from the system, so now we are good to export the backup to it.Some networking traffic going on, sending the files to the USB drive.After the usage, we unmount the unit by right clicking and stop using the device.Now we can see here at the “Server” that the unit has the files into it! worked perfectly.Finally, you can see that the USB Drive is unmounted in the VBR server, all the files copied ok.
Hope you liked this little workaround,
now, planning and thinking in future usages for this great tool.
Just wanted to highlight that I used the “Free” Version, which only allows to mount one USB Device at a time, there is a licensed version, but not used for now. Also wanted to tell you that I have no relationship at all with them, just found it and wanted to share it with all of you.
Hi, This unusual request came from a friend who needed help with something: a server that needed a copy of its disk volumes for an audit.
My first thought was to restore the VM from a backup, then take the relevant VMDK files and do whatever was needed.
Then I had another idea: if it’s a virtual server, why not restore the VM files rather than the contents? That seemed like the simplest and most suitable approach for a VM.
But then I thought: what if it’s a physical server? How could we do it? Why not ask Veeam to provide the VMDK files directly?
Veeam can convert or provide not only VMDKs (VMware), but also VHD files (Hyper-V or Azure) or VHDX files (Hyper-V).
Let’s go through a few screenshots in case this is useful to someone:
Hi! In a previous post, we covered the Backup Move feature in VBR 12. It’s great.
However, I ran into a small error that prevented me from moving backups between repositories—in particular, from a local repository to an immutable S3 repository in Wasabi.
As the error shows, the issue was in the job configuration: it was set to run a Synthetic Full on Saturdays, which caused the problem.
We changed it to Active Full, ran a full backup, and then the repository move worked.
It’s a small detail to keep in mind when moving backups. Keep an eye on available space. An Active Full takes up space, and depending on your resources, you could run into issues.
Another detail to keep in mind when creating jobs: if you expect to move backups this way, it’s worth preparing for it in advance.
This time, we’ll go through the simple steps for configuring a Copy Job for a virtual machine from our environment to another datastore, either on a VBR server or on an ESXi server registered with VBR.
Don’t confuse this with a Backup Copy Job; that is something entirely different. This job copies the VM files, not backups or backup files.
I don’t see this feature discussed or used very often. I’ve used it to copy VMs directly to the destination where I wanted them, with a control mechanism to “ensure” the copy completed successfully. It can also be useful when you want a last-resort copy, since the destination is an ESXi host where you can quickly register and power on the VM.
One final note: this is a Copy job, so it does not keep a history of runs. You’ll only have the files from the last successful copy.
Let’s look at the screenshots and example:
Here we’ve selected the ESXi host and datastore.When the job finishes, the VM files will be copied to the destination.Contents of the Optane 1+2 datastore.We can see the copied VM files. Let’s register the VM to test it.Boom! It’s registered and running on the destination!
Now let’s look at the other option: using a Veeam repository as the destination. Here, I’m using the local repository on our VBR server.
The job is the same; only the destination changes to a datastore on a VBR server.And here are the copied files.
As you’ve seen, this is an effective way to copy a VM for different purposes: register it on an ESXi host, keep its files on a repository or server, move a VM from one host to another if you don’t have HA or replication, or simply store a copy of your machines in a different repository as an ESXi VM rather than in VBR backup format.
Today’s post covers one of my favorite Veeam B&R v12 features. It’s called “Move Backup.” It helps us move backups from one repository to another automatically, updating the job they belong to, without extra work or problems.
It’s very useful when backups need to be moved because of a storage change, whether due to expansion, maintenance, or a model change. You don’t lose the backup chain or settings, and you don’t have to create a new job.
Let’s look at a few screenshots and walk through the process so you can see how it works and why it’s useful.
Check the job: its storage now points to the new repository.The backups are now in the local repository, Default Backup Repo, D:\…The folder no longer exists at the source, the DXi storage appliance repository.
Done! The backup is no longer listed in the network repository, only in the new destination, and Veeam has updated the job. There were no changes to the backup chain or settings!
Now let’s run Move Backup again to put the backups back where they were:
We’re moving them back to the original DXi repository.
Done!
As mentioned earlier, this is a simple and useful process for storage infrastructure changes, repairs, or migrations.