<?xml version="1.0" encoding="UTF-8" standalone="no"?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" version="2.0">

<channel>
	<title>https://inertz.org</title>
	<atom:link href="https://inertz.org/feed/" rel="self" type="application/rss+xml"/>
	<link>https://inertz.org/</link>
	<description>Keep up to date with the latest technology news and trends.</description>
	<lastBuildDate>Fri, 02 Aug 2024 09:11:03 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://inertz.org/wp-content/uploads/2018/09/cropped-Apple-Watch-Series4_watch-front-training_09122018-32x32.jpg</url>
	<title>https://inertz.org</title>
	<link>https://inertz.org/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>cPanel Backup Not Pruning Older Backups: Troubleshooting and Fix</title>
		<link>https://inertz.org/cpanel-backup-not-pruning-older-backups-troubleshooting-and-fix/</link>
					<comments>https://inertz.org/cpanel-backup-not-pruning-older-backups-troubleshooting-and-fix/?noamp=mobile#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Fri, 02 Aug 2024 09:05:56 +0000</pubDate>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[BackupTroubleshooting]]></category>
		<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[ServerManagement]]></category>
		<guid isPermaLink="false">https://inertz.org/?p=8549</guid>

					<description><![CDATA[<p>Introduction Backing up data is a critical task in server management, and cPanel provides robust backup solutions. However, sometimes you might encounter an issue where cPanel fails to prune older backups, leading to excessive disk usage and potential server problems. This blog post will guide you through identifying and fixing this issue using a custom [&#8230;]</p>
<p>The post <a href="https://inertz.org/cpanel-backup-not-pruning-older-backups-troubleshooting-and-fix/">cPanel Backup Not Pruning Older Backups: Troubleshooting and Fix</a> appeared first on <a href="https://inertz.org">https://inertz.org</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h3><a href="https://inertz.org/wp-content/uploads/2021/06/bash-1-logo.png"><img fetchpriority="high" decoding="async" class="aligncenter wp-image-8007 size-medium" src="https://inertz.org/wp-content/uploads/2021/06/bash-1-logo-300x225.png" alt="" width="300" height="225" srcset="https://inertz.org/wp-content/uploads/2021/06/bash-1-logo-300x225.png 300w, https://inertz.org/wp-content/uploads/2021/06/bash-1-logo-768x576.png 768w, https://inertz.org/wp-content/uploads/2021/06/bash-1-logo.png 800w" sizes="(max-width: 300px) 100vw, 300px" /></a>Introduction</h3>
<p>Backing up data is a critical task in server management, and cPanel provides robust backup solutions. However, sometimes you might encounter an issue where cPanel fails to prune older backups, leading to excessive disk usage and potential server problems. This blog post will guide you through identifying and fixing this issue using a custom bash script.</p>
<h3>The Issue: Backup Pruning Failure</h3>
<p>When cPanel backups are configured, it is expected that older backups are automatically deleted (pruned) to free up space. However, due to various errors during the backup process, this pruning may fail, leaving you with accumulating backups and shrinking disk space.</p>
<p>Common errors causing this failure include:</p>
<ul>
<li>Unable to get user id</li>
<li>Unable to load cPanel user data</li>
<li>pkgacct failed to copy daily backup</li>
<li>Could not use daily backup</li>
<li>Backup::PartialFailure</li>
<li>The REMOTE_PASSWORD variable is missing</li>
</ul>
<p>These errors can prevent cPanel from completing the backup process properly, resulting in older backups not being pruned.</p>
<h3>Solution: Using a Bash Script to Identify the Problem</h3>
<p>To resolve this issue, you first need to identify the root cause of the backup failure. The following bash script will help you scan through your cPanel backup logs to pinpoint the exact error that caused the backup to fail and, consequently, the pruning issue.</p>
<p>&nbsp;</p>
<pre class="brush: bash; title: ; notranslate">
#!/bin/bash

# Directory containing the log files
LOG_DIR=&quot;/usr/local/cpanel/logs/cpbackup/&quot;

# Error patterns to search for
ERROR_PATTERNS=(
    &quot;Unable to get user id&quot;
    &quot;Unable to load cPanel user data&quot;
    &quot;You cannot copy the root user&quot;
    &quot;pkgacct failed to copy daily backup&quot;
    &quot;Could not use daily backup&quot;
    &quot;Bailing out&quot;
    &quot;The REMOTE_PASSWORD variable is missing&quot;
    &quot;Unable to find domain name&quot;
    &quot;Exiting with error code&quot;
    &quot;Could not remove directory&quot;
    &quot;Hook denied execution of pkgacct&quot;
    &quot;Could not open&quot;
    &quot;Could not chmod&quot;
    &quot;Could not rename&quot;
    &quot;failed to create the working dir&quot;
    &quot;Unable to fork&quot;
    &quot;Unable to waitpid&quot;
    &quot;Unable to open&quot;
    &quot;Failure dumping&quot;
    &quot;Unable to read&quot;
    &quot;does not appear to be valid XML&quot;
    &quot;Could not create directory&quot;
    &quot;mysqldump: Got error&quot;
    &quot;mysqldump: Error&quot;
    &quot;mysqldump: Couldn&#039;t&quot;
    &quot;mysqldump failed&quot;
    &quot;“Mysql” failed with an error&quot;
    &quot;Failed to generate backup metadata&quot;
    &quot;rsync: connection unexpectedly closed&quot;
    &quot;rsync:.*write error: Broken pipe&quot;
    &quot;received the KILL (9) signal&quot;
    &quot;backup_incomplete&quot;
    &quot;Backup::PartialFailure&quot;
)

# Function to search for errors in a specific log file
find_errors_in_file() {
    local log_file=&quot;$1&quot;
    local errors_found=false

    for pattern in &quot;${ERROR_PATTERNS&#x5B;@]}&quot;; do
        local errors=$(grep -i -E &quot;$pattern&quot; &quot;$log_file&quot;)
        if &#x5B; -n &quot;$errors&quot; ]; then
            if &#x5B; &quot;$errors_found&quot; = false ]; then
                echo &quot;Errors found in $log_file:&quot;
                errors_found=true
            fi
            echo &quot;$errors&quot;
        fi
    done

    if &#x5B; &quot;$errors_found&quot; = false ]; then
        echo &quot;No known errors found in $log_file.&quot;
    fi
}

# Loop through each log file in the directory and check for errors
for log_file in &quot;$LOG_DIR&quot;*.log; do
    if &#x5B; -f &quot;$log_file&quot; ]; then
        find_errors_in_file &quot;$log_file&quot;
        echo &quot;&quot;
    else
        echo &quot;No log files found in $LOG_DIR.&quot;
    fi
done

</pre>
<h3>How the Script Works</h3>
<p>This script is designed to scan all the log files in the <code>/usr/local/cpanel/logs/cpbackup/</code> directory. It searches for a predefined set of error patterns that are commonly associated with backup failures. When any of these errors are found, the script will print them along with the log file where the error occurred.</p>
<h3>Troubleshooting and Fixing the Issue</h3>
<p>Once you run the script, it will output any errors found in your backup logs. Identifying the exact error can help you troubleshoot the underlying cause. Here are a few steps you can take to resolve common issues:</p>
<ol>
<li><strong>Permission Issues</strong>: Check if the backup process has the necessary permissions to access the required files and directories.</li>
<li><strong>Database Errors</strong>: If you encounter errors related to <code>mysqldump</code> or other database operations, ensure that your databases are properly configured and accessible.</li>
<li><strong>cPanel Configuration</strong>: Verify your cPanel backup configuration to ensure that all settings are correct and that no crucial variables (like <code>REMOTE_PASSWORD</code>) are missing.</li>
<li><strong>Server Resources</strong>: Ensure that your server has adequate resources (CPU, RAM, Disk Space) to perform the backup operations without interruptions.</li>
</ol>
<h3>Conclusion</h3>
<p>By using this script, you can quickly identify the root cause of backup pruning failures in cPanel. Regular monitoring and prompt troubleshooting of these issues can prevent potential server problems caused by excessive disk usage. Make sure to address the errors identified by the script to ensure that your backups complete successfully, allowing cPanel to prune older backups as intended.</p>
<p>The post <a href="https://inertz.org/cpanel-backup-not-pruning-older-backups-troubleshooting-and-fix/">cPanel Backup Not Pruning Older Backups: Troubleshooting and Fix</a> appeared first on <a href="https://inertz.org">https://inertz.org</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://inertz.org/cpanel-backup-not-pruning-older-backups-troubleshooting-and-fix/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Resolving MySQL Issues After Daily cPanel Updates</title>
		<link>https://inertz.org/resolving-mysql-issues-after-daily-cpanel-updates/</link>
					<comments>https://inertz.org/resolving-mysql-issues-after-daily-cpanel-updates/?noamp=mobile#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Wed, 03 Jul 2024 10:28:44 +0000</pubDate>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[cPanel updates]]></category>
		<category><![CDATA[database recovery]]></category>
		<category><![CDATA[MySQL corruption]]></category>
		<guid isPermaLink="false">https://inertz.org/?p=8445</guid>

					<description><![CDATA[<p>If you&#8217;re managing a server with cPanel on AlmaLinux and using MySQL 8, you might encounter a specific bug that can cause MySQL to fail due to daily cPanel updates. Even after downgrading MySQL, you may find that the InnoDB database system&#8217;s ibdata file is corrupted, preventing MySQL from starting. The Issue The root cause [&#8230;]</p>
<p>The post <a href="https://inertz.org/resolving-mysql-issues-after-daily-cpanel-updates/">Resolving MySQL Issues After Daily cPanel Updates</a> appeared first on <a href="https://inertz.org">https://inertz.org</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><a href="https://inertz.org/wp-content/uploads/2016/11/mysql.jpg"><img decoding="async" class="aligncenter wp-image-6784 size-medium" src="https://inertz.org/wp-content/uploads/2016/11/mysql-298x300.jpg" alt="" width="298" height="300" srcset="https://inertz.org/wp-content/uploads/2016/11/mysql-298x300.jpg 298w, https://inertz.org/wp-content/uploads/2016/11/mysql-150x150.jpg 150w, https://inertz.org/wp-content/uploads/2016/11/mysql-144x144.jpg 144w, https://inertz.org/wp-content/uploads/2016/11/mysql.jpg 521w" sizes="(max-width: 298px) 100vw, 298px" /></a>If you&#8217;re managing a server with cPanel on AlmaLinux and using MySQL 8, you might encounter a specific bug that can cause MySQL to fail due to daily cPanel updates. Even after downgrading MySQL, you may find that the InnoDB database system&#8217;s ibdata file is corrupted, preventing MySQL from starting.</p>
<p><strong>The Issue</strong><br />
The root cause of this problem is an upstream bug, as documented in <a href="https://support.cpanel.net/hc/en-us/articles/24546938662039-Upstream-issue-MySQL-8-0-38-does-not-start-Segmentation-Fault" target="_blank" rel="noopener">cPanel support articles</a>. The issue still hot in the Cpanel database forum. Here’s how to address and fix this issue:</p>
<p><strong>Step-by-Step Fix</strong></p>
<p>1. Downgrade MySQL<br />
First, you need to downgrade MySQL to a version before the issue occurred. Use the following command:</p>
<pre class="brush: bash; title: ; notranslate">yum downgrade mysql-community-*</pre>
<p>2. Version Lock MySQL<br />
To prevent the update from reoccurring, you should lock the MySQL version:</p>
<pre class="brush: bash; title: ; notranslate">dnf install python3-dnf-plugin-versionlock
yum versionlock mysql-community-*</pre>
<p>Unfortunately, these steps alone might not fully resolve the issue, as was the case with our server. Despite downgrading MySQL, our server did not recover, necessitating further support from cPanel, CloudLinux, and third-party experts.</p>
<p><strong>Recovery Process</strong></p>
<p>It took nearly a full day to fix the issue. Previously, I&#8217;ve encountered similar issues with InnoDB and resolved them by switching the database engine to MyISAM. However, this situation was different.</p>
<p>Fortunately, our server was prepared with daily MySQL backups. The main challenge was that MySQL was down, so we couldn’t restore the database immediately. Here’s the detailed recovery process:</p>
<p>1. Rename the MySQL Directory<br />
Since /var/lib/mysql was unusable, I renamed it to avoid conflicts:</p>
<pre class="brush: bash; title: ; notranslate">mv /var/lib/mysql /var/lib/mysql-old</pre>
<p>Then <strong>creating new mysql</strong> folder inside /var/lib and give proper permission.</p>
<p>2. Restart MySQL<br />
After renaming the directory, restarting MySQL brought the database back online:</p>
<pre class="brush: bash; title: ; notranslate">systemctl restart mysqld</pre>
<p>3. Restore the MySQL Database<br />
With MySQL running again, I restored the mysql.sql database:</p>
<pre class="brush: bash; title: ; notranslate">mysql mysql &lt; /path/to/backup/mysql.sql</pre>
<p>4. Monitoring and Final Restoration<br />
After monitoring for stability, I confidently restored the remaining databases using script to restore. This script facilitated the complete recovery of all databases.</p>
<p>5. Fixing CloudLinux Integration<br />
Using CloudLinux, it was crucial to run the following command to prevent the &#8220;error establishing database connection&#8221; message:</p>
<pre class="brush: bash; title: ; notranslate">cagefs -r</pre>
<p>Running this command resolved the issue, ensuring the databases were accessible and the server was fully operational.</p>
<p><strong>Conclusion</strong><br />
Handling MySQL issues after cPanel updates can be challenging, especially with InnoDB corruption. By following the outlined steps and ensuring regular backups, you can minimize downtime and restore services effectively. Always keep your system updated with the latest support insights and solutions to maintain optimal server performance.</p>
<p>The post <a href="https://inertz.org/resolving-mysql-issues-after-daily-cpanel-updates/">Resolving MySQL Issues After Daily cPanel Updates</a> appeared first on <a href="https://inertz.org">https://inertz.org</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://inertz.org/resolving-mysql-issues-after-daily-cpanel-updates/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Manage Backups in Perl: A Guide for Cpanel Sysadmins</title>
		<link>https://inertz.org/how-to-manage-backups-in-perl-a-guide-for-cpanel-sysadmins/</link>
					<comments>https://inertz.org/how-to-manage-backups-in-perl-a-guide-for-cpanel-sysadmins/?noamp=mobile#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Mon, 01 Apr 2024 05:53:42 +0000</pubDate>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[script]]></category>
		<guid isPermaLink="false">https://inertz.org/?p=8381</guid>

					<description><![CDATA[<p>In the realm of system administration, ensuring that your data is safely backed up is paramount. For those utilizing Perl scripts to manage backups—whether weekly, monthly, or on-demand—efficiency, reliability, and error handling are key components of a well-oiled backup system. Today, I’ll walk you through an enhanced Perl script designed for sysadmins looking to streamline [&#8230;]</p>
<p>The post <a href="https://inertz.org/how-to-manage-backups-in-perl-a-guide-for-cpanel-sysadmins/">How to Manage Backups in Perl: A Guide for Cpanel Sysadmins</a> appeared first on <a href="https://inertz.org">https://inertz.org</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p data-sider-select-id="72c4fabc-ce58-4dcb-b38e-dfdb158189fb"><a href="https://inertz.org/wp-content/uploads/2021/06/bash-1-logo.png"><img decoding="async" class="alignleft wp-image-8007 size-medium" src="https://inertz.org/wp-content/uploads/2021/06/bash-1-logo-300x225.png" alt="" width="300" height="225" srcset="https://inertz.org/wp-content/uploads/2021/06/bash-1-logo-300x225.png 300w, https://inertz.org/wp-content/uploads/2021/06/bash-1-logo-768x576.png 768w, https://inertz.org/wp-content/uploads/2021/06/bash-1-logo.png 800w" sizes="(max-width: 300px) 100vw, 300px" /></a>In the realm of system administration, ensuring that your data is safely backed up is paramount. For those utilizing Perl scripts to manage backups—whether weekly, monthly, or on-demand—efficiency, reliability, and error handling are key components of a well-oiled backup system. Today, I’ll walk you through an enhanced Perl script designed for sysadmins looking to streamline their backup processes, focusing on the seamless handling of weekly and monthly backups and the creation of new backups when necessary. Especially when you <strong>accidentally delete</strong> the <strong>Cpanel account</strong> and no backup available. This script run before the account termination via script &#8216;/usr/local/cpanel/scripts/prekillacct&#8217;.</p>
<h4>The Core Objective</h4>
<p>Our primary goal is to develop a Perl script capable of:</p>
<ol>
<li><strong>Identifying and moving the most recent weekly or monthly backups</strong> to a specific directory, <code>/backup/backup-delete</code>, for further actions, such as deletion or archiving.</li>
<li><strong>Generating a new backup</strong> using the <code>/scripts/pkgacct</code> command if no recent backups are available, ensuring data safety even in the absence of scheduled backups.</li>
</ol>
<h4>Step-by-Step Guide to the Improved Perl Backup Script</h4>
<h5>Preparing Your Environment</h5>
<p>Ensure your Perl environment is correctly set up with strict error reporting and warnings enabled. This practice helps in catching potential issues early in the script execution process.</p>
<h5>Script Breakdown</h5>
<ol>
<li><strong>Parameter Handling</strong>: The script starts by accepting a username as an input parameter. This is crucial for specifying which user account to backup.</li>
<li><strong>Backup Search</strong>: It then searches for the most recent weekly and monthly backups. This step involves checking the <code>/backup/weekly/</code> and <code>/backup/monthly/</code> directories for the latest <code>user.tar.gz</code> file.</li>
<li><strong>Error Handling Improvements</strong>: By incorporating error handling mechanisms, the script robustly manages situations where backup moving commands might fail, ensuring the administrator is alerted to any issues during the process.</li>
<li><strong>Direct Backup Creation</strong>: If no existing backups are found, the script directly invokes the <code>/scripts/pkgacct</code> command to generate a new backup, specifying the output directory to avoid unnecessary file movements.</li>
<li><strong>Clean and Informative Output</strong>: Throughout the process, the script provides clear feedback on its actions, whether it&#8217;s moving an existing backup or creating a new one, enhancing transparency for system administrators.</li>
</ol>
<h4>Why This Script Stands Out</h4>
<ul>
<li><strong>Efficiency</strong>: By directly checking and handling the most recent backups, the script saves time and reduces the likelihood of manual errors.</li>
<li><strong>Reliability</strong>: With improved error handling, the script ensures that administrators are aware of any issues immediately, allowing for quick intervention.</li>
<li><strong>Automation Ready</strong>: This script can be easily integrated into broader system administration workflows, facilitating automated backup checks and creation with minimal human intervention.</li>
</ul>
<p>First you must edit &#8216;/usr/local/cpanel/scripts/prekillacct&#8217; using nano or vi and copy below;</p>
<pre class="brush: bash; title: ; notranslate">
#!/bin/bash
/scripts/prekillacct.l.v.e-manager.bak &quot;$@&quot;

</pre>
<p>Then edit the file &#8216;/scripts/prekillacct.l.v.e-manager.bak&#8217; and copy the script below;</p>
<pre class="brush: bash; title: ; notranslate">
#!/usr/bin/perl
use strict;
use warnings;

# Assuming the script is called with something like: script.pl user=username
my %OPTS = @ARGV;
my $user = $OPTS{&#039;user&#039;}; # This might need adjustment depending on how you&#039;re planning to pass the username.

# Paths for weekly and monthly backups
my $backupw = `ls -td /backup/weekly/*/accounts/$user.tar.gz 2&gt;/dev/null | head -1`;
chomp $backupw;
my $backupm = `ls -td /backup/monthly/*/accounts/$user.tar.gz 2&gt;/dev/null | head -1`;
chomp $backupm;

my $backup_found = 0;

# Commands to move backups
if (-f $backupw) {
    my $cmdw = &quot;mv $backupw /backup/backup-delete/$user-weekly.tar.gz&quot;;
    system($cmdw) == 0 or warn &quot;Failed to move weekly backup: $!&quot;;
    $backup_found = 1;
}

if (-f $backupm) {
    my $cmdm = &quot;mv $backupm /backup/backup-delete/$user-monthly.tar.gz&quot;;
    system($cmdm) == 0 or warn &quot;Failed to move monthly backup: $!&quot;;
    $backup_found = 1;
}

if (!$backup_found) {
    print &quot;No existing backup found for $user. Creating a new backup...\n&quot;;
    system(&quot;/scripts/pkgacct $user /backup/backup-delete&quot;) == 0 or die &quot;Failed to create backup: $!&quot;;
    # No need to move the backup file as we&#039;re specifying the output directory in the command.
}

print &quot;Backup process completed.\n&quot;;
</pre>
<h4>Final Thoughts</h4>
<p>This enhanced Perl script for managing backups is a testament to the flexibility and power of Perl in system administration tasks. Whether you’re looking to refine your existing backup processes or implement a new system, this script offers a robust foundation for managing your data backup needs efficiently and reliably.</p>
<p>Remember, while this script is tailored for a specific use case, the principles and techniques applied here—such as error handling, direct command execution, and process feedback—are universally applicable across a wide range of system administration tasks.</p>
<p>Happy scripting, and may your data always be safe and sound!</p>
<p>The post <a href="https://inertz.org/how-to-manage-backups-in-perl-a-guide-for-cpanel-sysadmins/">How to Manage Backups in Perl: A Guide for Cpanel Sysadmins</a> appeared first on <a href="https://inertz.org">https://inertz.org</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://inertz.org/how-to-manage-backups-in-perl-a-guide-for-cpanel-sysadmins/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>iPhone 15 Pro and iPhone 15 Pro Max: Lightweight Titanium Design, Advanced Cameras, and Pro Performance</title>
		<link>https://inertz.org/iphone-15-pro-and-iphone-15-pro-max-lightweight-titanium-design-advanced-cameras-and-pro-performance/</link>
					<comments>https://inertz.org/iphone-15-pro-and-iphone-15-pro-max-lightweight-titanium-design-advanced-cameras-and-pro-performance/?noamp=mobile#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Wed, 13 Sep 2023 03:39:37 +0000</pubDate>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[advance camera]]></category>
		<category><![CDATA[iphone 15]]></category>
		<category><![CDATA[titanium design]]></category>
		<guid isPermaLink="false">https://inertz.org/?p=8338</guid>

					<description><![CDATA[<p>Apple recently launched the iPhone 15 Pro and iPhone 15 Pro Max, featuring a design that combines strong yet lightweight titanium and customizable Action buttons. The standout camera features include a 48MP Main camera and an exclusive 5x Telephoto camera. A17 Pro ensures pro-level performance with significant improvements in GPU, CPU, and Neural Engine. Photo [&#8230;]</p>
<p>The post <a href="https://inertz.org/iphone-15-pro-and-iphone-15-pro-max-lightweight-titanium-design-advanced-cameras-and-pro-performance/">iPhone 15 Pro and iPhone 15 Pro Max: Lightweight Titanium Design, Advanced Cameras, and Pro Performance</a> appeared first on <a href="https://inertz.org">https://inertz.org</a>.</p>
]]></description>
										<content:encoded><![CDATA[<figure id="attachment_8340" aria-describedby="caption-attachment-8340" style="width: 806px" class="wp-caption aligncenter"><a href="https://inertz.org/wp-content/uploads/2023/09/Apple-iPhone-15-Pro-jpg.webp"><img data-dominant-color="a8a7a6" data-has-transparency="false" style="--dominant-color: #a8a7a6;" loading="lazy" decoding="async" class="wp-image-8340 not-transparent" src="https://inertz.org/wp-content/uploads/2023/09/Apple-iPhone-15-Pro-jpg.webp" alt="iPhone 15" width="806" height="537" srcset="https://inertz.org/wp-content/uploads/2023/09/Apple-iPhone-15-Pro-jpg.webp 980w, https://inertz.org/wp-content/uploads/2023/09/Apple-iPhone-15-Pro-300x200.webp 300w, https://inertz.org/wp-content/uploads/2023/09/Apple-iPhone-15-Pro-768x512.webp 768w" sizes="(max-width: 806px) 100vw, 806px" /></a><figcaption id="caption-attachment-8340" class="wp-caption-text">iPhone 15</figcaption></figure>
<p>Apple recently launched the iPhone 15 Pro and iPhone 15 Pro Max, featuring a design that combines strong yet lightweight titanium and customizable Action buttons. The standout camera features include a 48MP Main camera and an exclusive 5x Telephoto camera. A17 Pro ensures pro-level performance with significant improvements in GPU, CPU, and Neural Engine. Photo enhancements include better Night mode and Smart HDR available for third-party apps. iPhone 15 Pro offers high-speed data transfer via USB 3 and supports Roadside Assistance via satellite for off-grid safety.</p>
<p>The design highlights include titanium, a new brushed texture, and contoured edges. The Super Retina XDR display with Always-On and ProMotion technologies offers an exceptional visual experience. The new Action button replaces the traditional switch, providing users with more options to access the camera, flashlight, Voice Memos, Focus modes, Translate, and accessibility features.</p>
<p>A17 Pro delivers impressive capabilities with a faster CPU, advanced GPU, and accelerated Neural Engine. iPhone 15 Pro also offers high-speed data transfer via USB 3 and supports Roadside Assistance via satellite for off-grid safety.</p>
<p>In terms of security and wireless connectivity, iPhone 15 Pro offers MagSafe and Qi2 wireless charging support. Improved audio quality for phone calls, including FaceTime, is another great feature. Users can use eSIM when traveling for convenient international roaming. Furthermore, iPhone 15 Pro comes with the second-generation Ultra Wideband chip, enabling longer-range Precision Finding for Find My friends and supports Wi-Fi 6E for better wireless performance.</p>
<p>Additional features include support for Thread, the introduction of profiles in Safari, and more in iOS 17. The devices are designed with sustainability in mind, with recycled materials used in their construction.</p>
<p>The starting price for iPhone 15 Pro is RM5,499, with various storage capacity options. Pre-orders start on September 15, and the iPhone will be available on September 22.</p>
<p>The post <a href="https://inertz.org/iphone-15-pro-and-iphone-15-pro-max-lightweight-titanium-design-advanced-cameras-and-pro-performance/">iPhone 15 Pro and iPhone 15 Pro Max: Lightweight Titanium Design, Advanced Cameras, and Pro Performance</a> appeared first on <a href="https://inertz.org">https://inertz.org</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://inertz.org/iphone-15-pro-and-iphone-15-pro-max-lightweight-titanium-design-advanced-cameras-and-pro-performance/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Choose the Perfect Domain Name for Your Brand</title>
		<link>https://inertz.org/how-to-choose-the-perfect-domain-name-for-your-brand/</link>
					<comments>https://inertz.org/how-to-choose-the-perfect-domain-name-for-your-brand/?noamp=mobile#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Wed, 26 Jul 2023 07:49:46 +0000</pubDate>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[brand]]></category>
		<category><![CDATA[domain name]]></category>
		<category><![CDATA[SEO]]></category>
		<guid isPermaLink="false">https://inertz.org/?p=8324</guid>

					<description><![CDATA[<p>Selecting the right domain name for your brand is a critical step in establishing a strong online presence. A well-optimized domain name not only helps users find you easily but also contributes to improved search engine rankings. In this article, we will provide you with 12 SEO-friendly tips to help you choose the perfect domain [&#8230;]</p>
<p>The post <a href="https://inertz.org/how-to-choose-the-perfect-domain-name-for-your-brand/">How to Choose the Perfect Domain Name for Your Brand</a> appeared first on <a href="https://inertz.org">https://inertz.org</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><a href="https://inertz.org/wp-content/uploads/2023/07/seo.jpg"><img loading="lazy" decoding="async" class="aligncenter wp-image-8325" src="https://inertz.org/wp-content/uploads/2023/07/seo.jpg" alt="" width="551" height="415" srcset="https://inertz.org/wp-content/uploads/2023/07/seo.jpg 996w, https://inertz.org/wp-content/uploads/2023/07/seo-300x226.jpg 300w, https://inertz.org/wp-content/uploads/2023/07/seo-768x579.jpg 768w" sizes="(max-width: 551px) 100vw, 551px" /></a>Selecting the right domain name for your brand is a critical step in establishing a strong online presence. A well-optimized domain name not only helps users find you easily but also contributes to improved search engine rankings. In this article, we will provide you with 12 SEO-friendly tips to help you choose the perfect domain name that aligns with your brand and attracts your target audience.</p>
<p><strong>Keep it Simple and Memorable</strong><br />
Simplicity and memorability are vital for both users and search engines. Opt for a domain name that is easy to remember and type. Avoid complex spellings, numbers, or hyphens that may confuse users and hinder your SEO efforts.</p>
<p><strong>Reflect Your Brand Identity</strong><br />
Your domain name should reflect your brand and the nature of your business. Consistency between your brand and domain name helps build trust and recognition among your audience and search engines.<br />
<strong><br />
Prioritize Short and Concise Names</strong><br />
Short domain names are more user-friendly and have a higher chance of being remembered. Additionally, search engines prefer concise domain names that clearly represent your brand.</p>
<p><strong>Choose the Right Domain Extension</strong><br />
While &#8220;.com&#8221; is the most popular and preferred extension, other relevant extensions like &#8220;.net&#8221; or &#8220;.co&#8221; can also be SEO-friendly. Consider your target audience and the nature of your business when choosing the right extension.</p>
<p><strong>Avoid Copyright and Trademark Issues</strong><br />
Perform thorough research to ensure your desired domain name is not already trademarked or copyrighted by another entity. Avoiding legal issues will protect your brand&#8217;s reputation and SEO efforts.</p>
<p><strong>Incorporate Relevant Keywords</strong><br />
Strategically include relevant keywords in your domain name to improve your chances of ranking higher in search engine results. However, don&#8217;t overstuff keywords as it may have a negative impact on SEO.</p>
<p><strong>Eliminate Numbers and Hyphens</strong><br />
Numbers and hyphens can be confusing and hard to remember. A hyphenated domain name may also be associated with spammy websites. Stick to a simple name without these elements for better SEO.</p>
<p><strong>Check Social Media Availability</strong><br />
Consistency across your domain name and social media handles is essential for branding and SEO. Ensure that your chosen domain name is available as a username on major social media platforms.</p>
<p><strong>Think Long-Term</strong><br />
Choosing a domain name is a long-term commitment. Changing domain names later can hurt your SEO and confuse your audience. Select a name that will stand the test of time.</p>
<p><strong>Avoid Slang and Unusual Spellings</strong><br />
Unique spellings and slang may seem creative, but they can hinder your SEO efforts. A clear and straightforward domain name is more likely to rank higher and resonate with users.</p>
<p><strong>Test Pronunciation</strong><br />
Share potential domain names with others and ask for feedback on pronunciation. A domain name that is easily pronounceable can lead to more word-of-mouth referrals and improved SEO.</p>
<p><strong>Think Global</strong><br />
If your brand caters to an international audience or has global aspirations, avoid region-specific domain names. A globally friendly domain name is more inclusive and easier to remember.</p>
<p><strong>Conclusion</strong></p>
<p>Choosing an SEO-friendly domain name is a fundamental aspect of building a successful online brand. By following these 12 tips, you can select a domain name that is not only brand-aligned and memorable but also optimized for better search engine rankings. Invest time and effort in this process to set the stage for a strong online presence and greater visibility for your brand.</p>
<p>The post <a href="https://inertz.org/how-to-choose-the-perfect-domain-name-for-your-brand/">How to Choose the Perfect Domain Name for Your Brand</a> appeared first on <a href="https://inertz.org">https://inertz.org</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://inertz.org/how-to-choose-the-perfect-domain-name-for-your-brand/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Bash script to check the availability of backup for cpanel account</title>
		<link>https://inertz.org/bash-script-to-check-the-availability-of-backup-for-cpanel-account/</link>
					<comments>https://inertz.org/bash-script-to-check-the-availability-of-backup-for-cpanel-account/?noamp=mobile#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Wed, 01 Mar 2023 08:04:33 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[bash script]]></category>
		<category><![CDATA[Cpanel]]></category>
		<guid isPermaLink="false">https://inertz.org/?p=8300</guid>

					<description><![CDATA[<p>I have write simple bash script that checks the availability of Cpanel backups for each user account listed in /var/cpanel/users. The script first sets the backup path to /backup/*/*/accounts/*.tar.gz. This path includes the * wildcard to match any subdirectory names for the first two levels of directories. This allows the script to check backups in [&#8230;]</p>
<p>The post <a href="https://inertz.org/bash-script-to-check-the-availability-of-backup-for-cpanel-account/">Bash script to check the availability of backup for cpanel account</a> appeared first on <a href="https://inertz.org">https://inertz.org</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><a href="https://inertz.org/wp-content/uploads/2021/06/bash.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8006" src="https://inertz.org/wp-content/uploads/2021/06/bash.png" alt="bash" width="275" height="183" /></a>I have write simple bash script that checks the availability of Cpanel backups for each user account listed in /var/cpanel/users. The script first sets the backup path to /backup/*/*/accounts/*.tar.gz. This path includes the * wildcard to match any subdirectory names for the first two levels of directories. This allows the script to check backups in multiple directories within /backup.</p>
<p>For each user, it checks if a backup file exists for the user by running the ls command on the backup path and grepping for the user&#8217;s filename with the .tar.gz extension. If the backup file exists, the script prints &#8220;Backup available for [user]&#8221;. If the backup file does not exist, the script prints &#8220;Backup not available for [user]&#8221;. The script is very easy to understand.</p>
<p>Note: This script assumes that the user&#8217;s backup file is named [username].tar.gz and is located in a directory structure that matches the backup path specified. If the backup file names or directory structure are different, the script will need to be modified accordingly.</p>
<pre class="brush: bash; title: ; notranslate">
#!/bin/bash
# Path to check for backups
backup_path=&quot;/backup/*/*/accounts/*.tar.gz&quot;

for user in `ls -A /var/cpanel/users` ;
do
# Check if backup file exists for user
if ls $backup_path 2&gt;/dev/null | grep -q &quot;/$user.tar.gz$&quot;; then
     echo &quot;Backup available for $user&quot;
  else
     echo &quot;Backup not available for $user&quot;
  fi

done


</pre>
<p>The post <a href="https://inertz.org/bash-script-to-check-the-availability-of-backup-for-cpanel-account/">Bash script to check the availability of backup for cpanel account</a> appeared first on <a href="https://inertz.org">https://inertz.org</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://inertz.org/bash-script-to-check-the-availability-of-backup-for-cpanel-account/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Achieving high availability with heartbeat</title>
		<link>https://inertz.org/achieving-high-availability-with-heartbeat/</link>
					<comments>https://inertz.org/achieving-high-availability-with-heartbeat/?noamp=mobile#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Fri, 09 Dec 2022 02:33:45 +0000</pubDate>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[haproxy]]></category>
		<category><![CDATA[heartbeat]]></category>
		<category><![CDATA[high availability]]></category>
		<guid isPermaLink="false">https://inertz.org/?p=7901</guid>

					<description><![CDATA[<p>High availability is a crucial aspect of any website or web application, as it ensures that the website is always available and accessible to users, even in the event of server failures or other disruptions. One effective way to achieve high availability is through the use of heartbeat, a software program that monitors the status [&#8230;]</p>
<p>The post <a href="https://inertz.org/achieving-high-availability-with-heartbeat/">Achieving high availability with heartbeat</a> appeared first on <a href="https://inertz.org">https://inertz.org</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>High availability is a crucial aspect of any website or web application, as it ensures that the website is always available and accessible to users, even in the event of server failures or other disruptions. One effective way to achieve high availability is through the use of heartbeat, a software program that monitors the status of servers in a network and automatically redirects incoming traffic to healthy servers in the event of a failure.</p>
<p>Heartbeat works by regularly checking the status of each server in the network, using a variety of techniques such as sending ping requests or checking for specific services to be running. If a server is found to be unhealthy, heartbeat will automatically redirect incoming traffic to other healthy servers in the network.</p>
<p>To achieve high availability with heartbeat, it is important to have multiple servers in the network, as this allows for redundancy and failover capabilities. These servers should be configured to run heartbeat, and should be monitored and managed carefully to ensure that they are always operating at their best.</p>
<p>In addition to providing high availability, heartbeat also offers other benefits, such as allowing for automatic scaling of the network to meet changing traffic needs, and providing detailed monitoring and reporting capabilities to help identify and troubleshoot potential issues.</p>
<p>How to achieve high availability with 100% uptime? We all know it is possible to have high availability website but the configuration might be too technical for some person. I have successfully simulated and achieve high availability web server using <a href="http://www.linux-ha.org/wiki/Heartbeat">heartbeat</a> software. Since we are using Centos 7, there are no binary heartbeat software for Centos 7, and we need to compile the software from a source code.</p>
<p>I simulate Heartbeat using only 4 servers. 2 servers for haproxy load balance share with heartbeat while 2 servers for web server. You can find the manual to install the haproxy <a href="https://inertz.org/setup-apache-haproxy-as-a-load-balancer-in-centos-7/" target="_blank" rel="noopener noreferrer">here</a>. Technically the simple diagram same as below;</p>
<p><a href="https://inertz.org/wp-content/uploads/2020/12/high-availability2.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-7910" src="https://inertz.org/wp-content/uploads/2020/12/high-availability2.jpg" alt="" width="525" height="514" srcset="https://inertz.org/wp-content/uploads/2020/12/high-availability2.jpg 525w, https://inertz.org/wp-content/uploads/2020/12/high-availability2-300x294.jpg 300w" sizes="(max-width: 525px) 100vw, 525px" /></a></p>
<p>To compile the software from source code, we need to install some software and library. Below software are required;</p>
<pre class="brush: bash; title: ; notranslate">
yum install -y gcc gcc-c++ autoconf automake libtool glib2-devel libxml2 libxml2-devel bzip2 bzip2-devel e2fsprogs-devel libxslt-devel libtool-ltdl-devel asciidoc
</pre>
<p>*Below package maybe required if you install minimal Centos</p>
<pre class="brush: bash; title: ; notranslate">
yum install -y psmisc cifs-utils nfs-utils OpenIPMI-libs openhpi perl-TimeDate sbd bc libuuid-devel
</pre>
<p>Next step is to download the source code;</p>
<pre class="brush: bash; title: ; notranslate">
wget -c http://hg.linux-ha.org/glue/archive/0a7add1d9996.tar.bz2
wget -c https://github.com/ClusterLabs/resource-agents/archive/v3.9.6.tar.gz
wget -c http://hg.linux-ha.org/heartbeat-STABLE_3_0/archive/958e11be8686.tar.bz2
</pre>
<p>Compile the Cluster-glue first. (you must extract 0a7add1d9996.tar.bz2)</p>
<pre class="brush: bash; title: ; notranslate">
./autogen.sh
./configure --prefix=/usr/local/heartbeat --with-daemon-user=hacluster --with-daemon-group=haclient --enable-fatal-warnings=no
make
make install
</pre>
<p>Compile Resource-agents next.</p>
<pre class="brush: bash; title: ; notranslate">
tar -zxvf resource-agents-3.9.6.tar.gz
cd resource-agents-3.9.6
./autogen.sh
./configure --prefix=/usr/local/heartbeat --with-daemon-user=hacluster --with-daemon-group=haclient --enable-fatal-warnings=no
make
make install
</pre>
<p>Compile the Heartbeat.</p>
<pre class="brush: bash; title: ; notranslate">
./bootstrap
export CFLAGS=&quot;$CFLAGS -I/usr/local/heartbeat/include -L/usr/local/heartbeat/lib&quot;
./configure --prefix=/usr/local/heartbeat --with-daemon-user=hacluster --with-daemon-group=haclient --enable-fatal-warnings=no
make
make install
</pre>
<p>The post <a href="https://inertz.org/achieving-high-availability-with-heartbeat/">Achieving high availability with heartbeat</a> appeared first on <a href="https://inertz.org">https://inertz.org</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://inertz.org/achieving-high-availability-with-heartbeat/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is load balancing for web server</title>
		<link>https://inertz.org/what-is-load-balancing-for-web-server/</link>
					<comments>https://inertz.org/what-is-load-balancing-for-web-server/?noamp=mobile#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Fri, 09 Dec 2022 02:30:52 +0000</pubDate>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[high availablity]]></category>
		<category><![CDATA[load balance]]></category>
		<category><![CDATA[web server]]></category>
		<guid isPermaLink="false">https://inertz.org/?p=8267</guid>

					<description><![CDATA[<p>Web server load balancing is a crucial aspect of ensuring the smooth functioning and performance of any website. It is the process of distributing incoming traffic across multiple web servers in order to avoid overloading a single server, which can cause slow response times and downtime. Load balancing can be achieved through various methods, including [&#8230;]</p>
<p>The post <a href="https://inertz.org/what-is-load-balancing-for-web-server/">What is load balancing for web server</a> appeared first on <a href="https://inertz.org">https://inertz.org</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><a href="https://inertz.org/wp-content/uploads/2020/09/monitor.jpg"><img loading="lazy" decoding="async" class="aligncenter wp-image-7874 size-large" src="https://inertz.org/wp-content/uploads/2020/09/monitor-1024x842.jpg" alt="web server load balancing" width="640" height="526" srcset="https://inertz.org/wp-content/uploads/2020/09/monitor-1024x842.jpg 1024w, https://inertz.org/wp-content/uploads/2020/09/monitor-300x247.jpg 300w, https://inertz.org/wp-content/uploads/2020/09/monitor-768x631.jpg 768w, https://inertz.org/wp-content/uploads/2020/09/monitor.jpg 1040w" sizes="(max-width: 640px) 100vw, 640px" /></a>Web server load balancing is a crucial aspect of ensuring the smooth functioning and performance of any website. It is the process of distributing incoming traffic across multiple web servers in order to avoid overloading a single server, which can cause slow response times and downtime.</p>
<p>Load balancing can be achieved through various methods, including hardware-based load balancers, software-based load balancers, and cloud-based load balancing services.</p>
<p>Hardware-based load balancers are dedicated devices that are installed in the network and perform load balancing functions by routing incoming traffic to the appropriate server. These devices are typically expensive and require skilled personnel to manage and maintain them.</p>
<p>Software-based load balancers are programs that are installed on the web servers themselves and perform load balancing functions by distributing incoming traffic among the servers in the network. These programs are typically less expensive than hardware-based load balancers and require less technical expertise to manage and maintain.</p>
<p>Cloud-based load balancing services are provided by cloud hosting providers and offer load balancing as part of their services. These services are typically easy to set up and manage, and can scale up or down depending on the traffic needs of the website.</p>
<p>Load balancing is important for several reasons. First, it ensures that incoming traffic is distributed evenly among the servers in the network, which helps to prevent any one server from becoming overloaded and slowing down the website. Second, it provides redundancy and failover capabilities, so that if one server goes down, incoming traffic can be routed to other servers in the network. Third, it allows for scalability and flexibility, as the number of servers in the network can be easily increased or decreased to meet changing traffic needs.</p>
<p>In conclusion, web server load balancing is a critical component of any website, as it helps to ensure smooth performance, provides redundancy and failover capabilities, and allows for scalability and flexibility. Whether using hardware-based, software-based, or cloud-based load balancing solutions, it is important to carefully evaluate the needs of the website and choose the appropriate solution to ensure optimal performance and reliability.</p>
<p>The post <a href="https://inertz.org/what-is-load-balancing-for-web-server/">What is load balancing for web server</a> appeared first on <a href="https://inertz.org">https://inertz.org</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://inertz.org/what-is-load-balancing-for-web-server/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Simple shell script to check backup availability for Cpanel account</title>
		<link>https://inertz.org/simple-shell-script-to-check-backup-availability-for-cpanel-account/</link>
					<comments>https://inertz.org/simple-shell-script-to-check-backup-availability-for-cpanel-account/?noamp=mobile#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Thu, 10 Nov 2022 02:41:22 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[check]]></category>
		<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[simple]]></category>
		<guid isPermaLink="false">https://inertz.org/?p=8259</guid>

					<description><![CDATA[<p>I have write a simple shell script to show how many backup have been created for the account and listing the backup. The script is for my own use and my own note. I is very usefull if you have many backup and want simpler way to check the backup availability instead using WHM. #!/bin/bash [&#8230;]</p>
<p>The post <a href="https://inertz.org/simple-shell-script-to-check-backup-availability-for-cpanel-account/">Simple shell script to check backup availability for Cpanel account</a> appeared first on <a href="https://inertz.org">https://inertz.org</a>.</p>
]]></description>
										<content:encoded><![CDATA[<pre><a href="https://inertz.org/wp-content/uploads/2021/06/bash.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-8006" src="https://inertz.org/wp-content/uploads/2021/06/bash.png" alt="bash" width="275" height="183" /></a></pre>
<p>I have write a simple shell script to show how many backup have been created for the account and listing the backup. The script is for my own use and my own note. I is very usefull if you have many backup and want simpler way to check the backup availability instead using WHM.</p>
<pre class="brush: bash; title: ; notranslate">
#!/bin/bash
# Shell script to check backup availability

echo &quot;&quot;
echo Shell script to check backup availability
read -p 'Username: ' username
echo There are
find /backup/*/*/accounts/ -maxdepth 1 -name $username* | wc -l
echo Backup available for $username
echo &quot;&quot;
echo Backup available for $username as below :
echo &quot;Weekly&quot;
ls -lath /backup/weekly/*/accounts/$username*
echo &quot;Monthly&quot;
ls -lath /backup/monthly/*/accounts/$username*


</pre>
<pre>Output :</pre>
<pre class="brush: bash; title: ; notranslate">
&#x5B;root@wp4 backup]# ./backup-available.sh

Shell script to check backup availability
Username: inertz
There are
2
Backup available for inertz

Backup available for inertz as below :
Weekly
-rw------- 1 root root 3.6G Nov  5 10:47 /backup/weekly/2022-11-05/accounts/inertz.tar.gz
Monthly
-rw------- 1 root root 3.6G Oct 15 10:57 /backup/monthly/2022-10-15/accounts/inertz.tar.gz

</pre>
<p>The post <a href="https://inertz.org/simple-shell-script-to-check-backup-availability-for-cpanel-account/">Simple shell script to check backup availability for Cpanel account</a> appeared first on <a href="https://inertz.org">https://inertz.org</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://inertz.org/simple-shell-script-to-check-backup-availability-for-cpanel-account/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>MySQL backup using batch file Windows</title>
		<link>https://inertz.org/mysql-backup-using-batch-file-windows/</link>
					<comments>https://inertz.org/mysql-backup-using-batch-file-windows/?noamp=mobile#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sat, 15 Oct 2022 05:46:56 +0000</pubDate>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[mysql]]></category>
		<guid isPermaLink="false">https://inertz.org/?p=8252</guid>

					<description><![CDATA[<p>Previously I have created bash script to backup MySQL database using bash script Linux. New incident happen in the Windows server which is where the normal backup cannot be used, so I have to plan a second backup for MySQL database using batch file. This script is useful if you have many databases in the [&#8230;]</p>
<p>The post <a href="https://inertz.org/mysql-backup-using-batch-file-windows/">MySQL backup using batch file Windows</a> appeared first on <a href="https://inertz.org">https://inertz.org</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><a href="https://inertz.org/wp-content/uploads/2016/11/mysql.jpg"><img loading="lazy" decoding="async" class="aligncenter size-medium wp-image-6784" src="https://inertz.org/wp-content/uploads/2016/11/mysql-298x300.jpg" alt="" width="298" height="300" srcset="https://inertz.org/wp-content/uploads/2016/11/mysql-298x300.jpg 298w, https://inertz.org/wp-content/uploads/2016/11/mysql-150x150.jpg 150w, https://inertz.org/wp-content/uploads/2016/11/mysql-144x144.jpg 144w, https://inertz.org/wp-content/uploads/2016/11/mysql.jpg 521w" sizes="(max-width: 298px) 100vw, 298px" /></a>Previously I have created bash script to <a href="https://inertz.org/bash-script-to-backup-and-restore-mysql-innodb-database-for-cpanel-server/" target="_blank" rel="noopener">backup MySQL database using bash script Linux</a>. New incident happen in the Windows server which is where the normal backup cannot be used, so I have to plan a second backup for MySQL database using batch file.<br />
This script is useful if you have many databases in the server and automation can give a lot of help. Using scheduled task Windows, you can schedule the task to run every day or every week based on requirement. Of course this script is very simple and can be modified further for example if you want to backup based on date and time, but my script just overwrite existing copy of the dumped database.<br />
There is also a way for the database to be zipped, but I not cover it here.</p>
<p>Below is the batch script.</p>
<pre class="brush: bash; title: ; notranslate">
@echo off
set basedir=D:
set workdir=D:\Backup\Mysql

set mysql=&quot;C:\Program Files\MySQL\MySQL Server 5.7\bin\mysql.exe&quot;
set mysqldump=&quot;C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqldump.exe&quot;
set mysqluser=dbuser
set mysqlpassword=dbpassword

%mysql% -u%mysqluser% -p%mysqlpassword% -s -N -e &quot;SHOW DATABASES&quot; | for /F &quot;usebackq&quot; %%D in (`findstr /V &quot;information_schema performance_schema&quot;`) do %mysqldump% %%D --single-transaction -u%mysqluser% -p%mysqlpassword% &gt; %workdir%\%%D.sql

</pre>
<p>Just save the file as mysqlbackup.bat and put in D drive.</p>
<p>The post <a href="https://inertz.org/mysql-backup-using-batch-file-windows/">MySQL backup using batch file Windows</a> appeared first on <a href="https://inertz.org">https://inertz.org</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://inertz.org/mysql-backup-using-batch-file-windows/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>