When you run VPS on OVH network behind bridge network, you need to create VMAC for each IP and assign to your network card.
Once this is done, you need to use following network configuration in your /etc/network/inferfaces file.
auto lo ens18
iface lo inet loopback
auto ens18
iface ens18 inet static
address FAILOVER_IP
netmask 255.255.255.255
broadcast FAILOVER_IP
post-up ip route add GATEWAY_IP dev ens18
post-up ip route add default via GATEWAY_IP dev ens18
pre-down ip route del GATEWAY_IP dev ens18
pre-down ip route del default via GATEWAY_IP dev ens18
FAILOVER_IP = the IP you will be using for the virual machine.
GATEWAY_IP = IP of the Host server with last digits replaced by 254. If your servers main IP is XX.YY.ZZ.100, then Your GATEWAY_IP is XX.YY.ZZ.254
Here is an example config file i use in one of my VPS
auto ens18
iface ens18 inet static
address 198.50.234.186
netmask 255.255.255.255
broadcast 198.50.234.186
dns-nameservers 8.8.8.8 8.8.4.4
post-up ip route add 158.69.124.254 dev ens18
post-up ip route add default via 158.69.124.254 dev ens18
pre-down ip route delete 158.69.124.254 dev ens18
pre-down ip route delete default via 158.69.124.254 dev ens18
I made a pull request to OVH as OVH documentation use route command, that is deprecated in Debian 9 and Ubuntu 18.04. We need to use “ip route” command instead of “route” command.
Tar is a widely used Linux archiving tool—short for “tape archive” that bundles multiple files and directories into a single archive (a tarball) while preserving paths, permissions, ownership, and timestamps, and it can also compress or extract those archives for efficient backup, distribution, and recovery.
tar.zst provide much faster compression and decompression. Compression ratio is much better than tar.gz
I compressed a folder with 231G files. Here is the result. tar.zst take only 16 minutes. tar.gz take 57 minutes. tar.zst file is 6 GB smaller.
zst not installed on ubuntu by default, you need it installed with command
sudo apt install zst
To create zst file, run
tar --zstd -cvf backup.tar.zst FOLDER
To create a compressed tar (tar.gz or tgz) file, run
tar -czvf backup.tgz FOLDER
Replace FOLDER with name of the directory you need to compress. It will create a backup.tgz file with all content of the specified directory.
To extract a tar/tar.gz/tgz file, run
tar xvf file.tar.gz
Uncompress tar.bz2 file
tar -jxvf ncftp-3.2.2-src.tar.bz2
Create a tar file
tar -cvf file.tar FOLDER_NAME
Example
tar -cvf backup.tar public_html
Once backup.tar file is created, you can make it tar.gz with command
gzip backup.tar
Exclude a folder from tar file
To exclude a folder, you can use –exclude option.
tar cvf backup.tar --exclude=public_html/uploads --exclude=public_html/wordpress public_html
List content of a tar file
tar --list --verbose --file=BACKUP.tar.gz
If you want to exclude a folder from the file list, use
tar --list --verbose --file=BACKUP.tar.gz --exclude=home/haridy/Maildir
This will exclude all files that are inside folder “home/haridy/Maildir”. You can use multiple –exclude if required.
Debian is a powerful, stable, and versatile open-source operating system used by millions of servers and desktops worldwide. Known for its reliability, security features, and large repository of free software packages, Debian serves as the foundation for many popular Linux distributions.
Debian is the core foundation for many popular Linux distributions, with Ubuntu being the most widespread derivative. Ubuntu builds on Debian’s stability but focuses on ease of use, frequent updates, and broader hardware support, making it ideal for beginners and enterprises.
checking whether to enable internationalization support… yes
checking for icu-config… no
checking for location of ICU headers and libraries… not found
configure: error: Unable to detect ICU prefix or no failed. Please verify ICU install prefix and make sure icu-config works.