Skip to main content

Posts

Showing posts from April, 2021

Backup & Recovery strategy

Using the snapshot function, you can create an image of the contents of the storage box. This way, you can restore content in a short time when you need it. Using this function, you can create a set of schedules for automatic snapshots. Please note that when you restore an earlier snapshot, all the newer snapshots will be deleted. When you create a new snapshot every month, and then back up your database and server configuration every 6th and 4th every week, then if the server is damaged, you will have more chances to get the data. Snapshots The snapshot is a complete image of the storage box. You can create them on the robot under "Storage Box". No space is required when the snapshot is created. It grows as you change or delete files. The newly added files in the snapshot do not require space. When making a snapshot, its storage space comes from the storage capacity of the storage box. (Each snapshot you make uses the space in the storage box.) You can reset the storage box

Oeps! How to mount /etc/ from other rescue Linux? New network /etc/network/interfaces configuration?

 What If your server is crashing from one rack? You can still boot server with another rescue Linux and mount hard disk to analyze what actually happened in your OS.. And maybe set this hard drive in other hardware and restore your system back. blkid -c /dev/null -o list root@rescue ~ # mkdir /media/configs root@rescue ~ # mount /dev/md2 /media/configs root@rescue ~ # ls /media/configs Old network configuration  DHCP auto eth0 allow-hotplug eth0 iface eth0 inet dhcp # Or static device: eth0 auto  eth0 iface eth0 inet static  address   88.99.238.89 broadcast 88.99.98.127  netmask   255.255.255.200  gateway   88.99.98.65  default route to access subnet  up route add -net 88.99.98.45 netmask 255.255.255.192 gw 88.99.98.56 eth0 Network interface name  See NetworkInterfaceNames. Starting with Stretch, by default, the new system no longer uses the old-style interface names, such as eth0, eth1, wlan0, wlan1. The new system uses a name based on the hardware location, such as eno0, enp0s31f6,

Install Postfix on Ubuntu 20 LTS for Email communication from Web site

Postfix is ​​a popular open source mail transfer agent (MTA) that can be used to route and deliver email on Linux systems. It is estimated that approximately 25% of public mail servers on the Internet run Postfix. In this guide, you will learn how to install and configure Postfix on an Ubuntu 20.04 server. Then, you will install s-nail (Mail User Agent (MUA), also known as email client) to test whether Postfix can route mail correctly. apt install postfix Give the name and save it.  You can config postfix like all services in Ubuntu  /etc/postfix/  First config is SPF and DKIM   vim main.cf Add external IP of your site in mynetworks for example  myhostname = vindazo.de mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 88.99.98.110 Don’t forget to check Reverse DNS for this IP. It should be the same as your site domain.  apt -y install opendkim vim /etc/opendkim.conf Domain          * KeyFile         /etc/dkimkeys/default Selector        mail ExternalIgnoreList      /etc/opendki

How To Serve Django python Applications with Apache and mod_wsgi on Ubuntu 20 LTS with virtualenv

Best way for stability is direct web server without running extra software layers. No virtualization and containers whatsoever. But as an application is already quite elderly and not using latest versions of python. It can be complicated to install directly on the server. I am giving an example of a working setup and number of attempts that ended with failure. I repeat for me the recent versions of python3 Django and postgres and elastic work best directly on the server without virtualization. This method is only published for information for the old version of the application where only the hardware layer needs to be updated and no software upgrade is desired. Environment setup example. https://www.youtube.com/watch?v=N5vscPTWKOk   https://code.google.com/archive/p/modwsgi/wikis/VirtualEnvironments.wiki   vim wsgi.py import os import sys import site site.addsitedir('/home/sites/venv/lib/python2.7/site-packages') sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(_