How to KVM Backup and Restore in Linux

How to KVM Backup and Restore in Linux

Fadıl

By following the steps below, we’ll see how you can upload your KVM virtuals and return them from the backup again.

1. Backup Import

First, let’s list our machines and see that they are operational. To do this, we use the following command.

> virsh list –all

How to KVM Backup and Restore in Linux

Then we close the VM we will install.

> virsh shutdown Ubuntu18

Then let’s list the machines again and see that they are turned off.

How to Install, Configure, and Create a Virtual Machine on Ubuntu

Fadıl

KVM Kernel-based virtual machine is a virtualization application developed for the Linux kernel that converts it to a higher system.

Before installation, login to our server to see if it supports CPU, let’s check the CPU information with the help of the following commands.

The output of this command means  “CPU(s):” 0 does not support if it is 0, and if it is more than 1 or 1, it means it supports.

Receive Sms Notification from Telegram When Mikrotik Wifi Signal Level Is Distorted

Receive Sms Notification from Telegram When Mikrotik Wifi Signal Level Is Distorted

Fadıl

Follow the signal levels in the Mikrotik AP to which our customers are connected.
in such cases, we can check the signal level and send information SMS to us via telegram.

For this process, we can define the following code as a 3-5 minute task to the scheduler.

You can reach our article about creating telebotID and TeleChatID from the link below.

http://techsoftcenter.com/how-to-create-a-telegram-bot-id-chat-id/ for telebotID and TeleChatID.

:local TELEBOTID xxxxxx
:local  TELECHATID xxxxxx
:local level -65;
:local sub1 ([/system identity get name]);
:local signal;
:local radio;
:foreach i in=[ /int wir reg find] do={ 
  :set signal [int wir reg get $i signal-strength];
  :set signal [ :pick $signal 0 [:find $signal "dBm"]]
  :set radio [/interface wireless registration-table get $i radio-name]
  :if ($signal < $seviye) do={
      /tool fetch url="https://api.telegram.org/$TELEBOTID/sendMessage\?chat_id=$TELECHATID&text=$sub1 $ radio subscriber signal is broken. Signal value $ signal "
  }
}

Keeping the name of your Mikrotik device in / system identity section will keep the device’s name information coming to you correctly.

Sending a Notification Message When the Telegram Mikrotik Ethernet Port Status Changes

Sending a Notification Message When the Telegram Mikrotik Ethernet Port Status Changes

Fadıl

If the port level (10Mbps / 100Mbps 1G or 10G) of the devices connected to the ports of your Switch or Router changes in any way, you may need an application to monitor this situation. A simple application was developed with a telegram on this side. It checks the status of the Ethernet and sends you a telegram message if it has a value other than the one you specified.

Turning off DNS Recursion Features on Linux servers

Fadıl

If DNS Recursion is turned on, you are exposed to the “DNS Amplification Attack”  attacks. This attack is also known as a DNS-powered DDOS attack. For this reason, DNS Recursion should be turned off and we will see how to do this. Assuming you are more or less familiar with the consequences of a DDOS attack, what is DNS Amplification Attack? I leave here a beautiful video explaining the situation without drowning in too much detail.