<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ancy H varghese  on Medium]]></title>
        <description><![CDATA[Stories by Ancy H varghese  on Medium]]></description>
        <link>https://medium.com/@ancyhv?source=rss-fb88a6ee956a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Stories by Ancy H varghese  on Medium</title>
            <link>https://medium.com/@ancyhv?source=rss-fb88a6ee956a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 16:03:08 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ancyhv/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[A Beginner’s Guide to Servers, Linux, Databases, Backups and Monitoring]]></title>
            <link>https://medium.com/@ancyhv/a-beginners-guide-to-servers-linux-databases-backups-and-monitoring-abe0c34fbbcc?source=rss-fb88a6ee956a------2</link>
            <guid isPermaLink="false">https://medium.com/p/abe0c34fbbcc</guid>
            <dc:creator><![CDATA[Ancy H varghese ]]></dc:creator>
            <pubDate>Wed, 23 Sep 2026 10:32:08 GMT</pubDate>
            <atom:updated>2026-09-23T10:32:08.497Z</atom:updated>
            <content:encoded><![CDATA[<p>When you first enter the world of application infrastructure, you may come across terms such as <strong>servers, Linux, SSH, databases, backups, monitoring, migrations, RPO and RTO</strong>.</p><p>At first, these concepts can seem completely separate.</p><p>They aren’t.</p><p>Once you understand how they fit together, infrastructure becomes much easier to learn.</p><p>This guide introduces the fundamentals from a beginner’s perspective.</p><h3>1. The Big Picture</h3><p>A typical web application can be simplified into:</p><pre>User<br>  ↓<br>Internet<br>  ↓<br>Server<br>  ↓<br>Web Server<br>  ↓<br>Application<br>  ↓<br>Database</pre><p>Each layer has a different responsibility.</p><p>For example:</p><ul><li><strong>Server</strong> — provides the computing environment.</li><li><strong>Web server</strong> — handles web requests.</li><li><strong>Application</strong> — contains the business logic.</li><li><strong>Database</strong> — stores application data.</li></ul><p>The exact technologies can vary, but the basic architecture is similar across many applications.</p><h3>2. What Is a Server?</h3><p>A server is a computer that provides services to other computers or users.</p><p>For a web application, the server may run:</p><ul><li>The operating system</li><li>Web server software</li><li>Application runtime</li><li>Application code</li><li>Database software</li><li>Background services</li></ul><p>A hosting provider supplies the infrastructure needed to run these components.</p><p>Depending on the hosting model, you may have more or less control over the underlying server.</p><h3>3. Linux Basics</h3><p>Many application servers use Linux.</p><p>You don’t need to learn hundreds of commands immediately. Start with a few fundamentals.</p><pre>pwd</pre><p>Shows the current directory.</p><pre>ls</pre><p>Lists files and directories.</p><pre>cd folder-name</pre><p>Moves into a directory.</p><pre>mkdir example</pre><p>Creates a directory.</p><pre>touch example.txt</pre><p>Creates a file.</p><pre>cat example.txt</pre><p>Displays file contents.</p><pre>cp file1.txt file2.txt</pre><p>Copies a file.</p><pre>mv old.txt new.txt</pre><p>Moves or renames a file.</p><pre>df -h</pre><p>Shows disk usage.</p><pre>du -sh folder</pre><p>Shows how much space a directory uses.</p><p>These simple commands form the foundation for working with Linux servers.</p><h3>4. Users and Permissions</h3><p>Linux uses users and permissions to control access.</p><p>The three basic permissions are:</p><pre>r → read<br>w → write<br>x → execute</pre><p>For example, a file might have permissions like:</p><pre>-rw-r--r--</pre><p>Linux also has a highly privileged account called root.</p><p>One important principle when managing servers is:</p><blockquote><em>Give users and applications only the permissions they actually need.</em></blockquote><p>Avoid changing permissions blindly, especially on production systems.</p><h3>5. Understanding Server Resources</h3><p>Every server has limited resources.</p><p>The main ones beginners should understand are:</p><h3>CPU</h3><p>CPU handles processing and computation.</p><p>High CPU usage can indicate that applications or processes are doing a lot of work.</p><h3>RAM</h3><p>RAM is the working memory used by applications and services.</p><p>Insufficient memory can affect application performance and stability.</p><h3>Disk</h3><p>Disk storage contains things such as:</p><ul><li>Application files</li><li>Database files</li><li>Logs</li><li>Uploaded files</li><li>Backups</li></ul><p>Disk usage can be checked on Linux with:</p><pre>df -h</pre><p>A directory’s usage can be checked with:</p><pre>du -sh directory-name</pre><p>Monitoring disk usage is particularly important because a full filesystem can cause unexpected application problems.</p><h3>6. What Are Processes?</h3><p>A process is a running program.</p><p>A server may have processes for:</p><pre>Web server<br>Application runtime<br>Database<br>Background jobs<br>System services</pre><p>You can inspect running processes with:</p><pre>ps aux</pre><p>Another useful command is:</p><pre>top</pre><p>This provides a live view of running processes and resource usage.</p><p>Understanding processes helps with basic troubleshooting.</p><p>For example:</p><blockquote><em>Is the database process running?</em></blockquote><blockquote><em>Which process is consuming CPU?</em></blockquote><blockquote><em>Is an important service still running?</em></blockquote><h3>7. Understanding Databases</h3><p>Most applications need somewhere to store data.</p><p>A relational database organizes information into tables.</p><p>For example:</p><pre>Customers<br>----------------<br>id | name<br>1  | Alice<br>2  | Bob</pre><p>Another table could contain orders:</p><pre>Orders<br>----------------------<br>id | customer_id | amount<br>1  | 1           | 100<br>2  | 1           | 250<br>3  | 2           | 150</pre><p>Here, customer_id connects an order to a customer.</p><p>This is where concepts such as <strong>primary keys</strong> and <strong>foreign keys</strong> become important.</p><h3>8. Primary Keys and Foreign Keys</h3><p>A <strong>primary key</strong> uniquely identifies a record.</p><p>For example:</p><pre>customers</pre><pre>id<br>--<br>1<br>2<br>3</pre><p>The id identifies each customer.</p><p>A <strong>foreign key</strong> connects one table to another.</p><p>For example:</p><pre>orders.customer_id<br>        ↓<br>customers.id</pre><p>This creates a relationship between the tables.</p><p>Understanding these relationships is essential when working with application databases.</p><h3>9. SQL and JOINs</h3><p>SQL is used to work with relational databases.</p><p>A simple query might be:</p><pre>SELECT * FROM customers;</pre><p>To combine related data:</p><pre>SELECT c.name, o.amount<br>FROM customers c<br>JOIN orders o<br>    ON c.id = o.customer_id;</pre><p>This allows an application or administrator to retrieve information from related tables.</p><p>Learning basic SQL is one of the most useful skills for anyone working around application infrastructure.</p><h3>10. Application and Database</h3><p>A web application usually communicates with the database through a database connection.</p><p>The basic flow is:</p><pre>User<br> ↓<br>Application<br> ↓<br>Database connection<br> ↓<br>Database</pre><p>The application may send queries to retrieve or modify information.</p><p>For example:</p><pre>User creates an order<br>        ↓<br>Application validates it<br>        ↓<br>Application sends database query<br>        ↓<br>Database stores the order</pre><p>Understanding this flow makes application troubleshooting much easier.</p><h3>11. Database Migrations</h3><p>Applications frequently need database structure changes.</p><p>For example, a new feature might require a new table.</p><p>A migration provides a structured way to describe such changes.</p><p>Instead of manually modifying every environment, database changes can be stored as migration files and applied consistently.</p><p>A typical migration workflow is:</p><pre>Create migration<br>      ↓<br>Review migration<br>      ↓<br>Store in version control<br>      ↓<br>Deploy application<br>      ↓<br>Run migration<br>      ↓<br>Verify database</pre><p>This makes database changes easier to track and reproduce.</p><h3>12. Why Backups Matter</h3><p>Imagine a database contains years of important business information.</p><p>What happens if the database is accidentally deleted or becomes corrupted?</p><p>This is where backups become important.</p><p>A backup is a separate copy of important data that can be used for recovery.</p><p>A simple concept is:</p><pre>Database<br>   ↓<br>Backup<br>   ↓<br>Separate storage</pre><p>Backups should not simply exist — they should also be protected and periodically tested.</p><h3>13. Backup Strategy</h3><p>A basic backup strategy should answer four questions:</p><h3>How often?</h3><p>For example:</p><pre>Every hour<br>Daily<br>Weekly</pre><h3>How long?</h3><p>This is the retention period.</p><p>For example:</p><pre>Keep daily backups for 7 days<br>Keep weekly backups for 4 weeks</pre><h3>Where?</h3><p>Backups should ideally be stored separately from the primary system.</p><h3>Can we restore them?</h3><p>This is one of the most important questions.</p><p>A backup that has never been tested should not automatically be considered a reliable recovery mechanism.</p><h3>14. Automated Backups</h3><p>Manual backups are easy to forget.</p><p>Automation allows backups to run according to a schedule.</p><p>A simplified architecture looks like:</p><pre>Scheduler<br>   ↓<br>Backup script<br>   ↓<br>Database backup<br>   ↓<br>Backup storage<br>   ↓<br>Log success/failure</pre><p>On Linux, tools such as cron can be used to schedule recurring tasks.</p><p>Automation also makes it possible to detect failed backup jobs rather than discovering the problem only when a recovery is needed.</p><h3>15. What Is Monitoring?</h3><p>Monitoring means continuously checking the health of a system.</p><p>A basic monitoring strategy might track:</p><pre>CPU<br>RAM<br>Disk<br>Processes<br>Database<br>Application<br>Logs<br>Backups</pre><p>The goal isn’t simply to collect numbers.</p><p>The goal is to detect unusual conditions early.</p><p>For example:</p><pre>Normal usage<br>      ↓<br>Increasing resource usage<br>      ↓<br>Threshold reached<br>      ↓<br>Alert<br>      ↓<br>Investigation</pre><h3>16. Database Monitoring</h3><p>A database should be monitored just like other server components.</p><p>Useful areas include:</p><ul><li>Database availability</li><li>Number of connections</li><li>Connection limits</li><li>Database size</li><li>Query performance</li><li>Errors</li><li>Storage usage</li></ul><p>For PostgreSQL, for example, administrators can inspect active connections and database size using built-in database statistics and SQL queries.</p><p>The exact monitoring setup depends on the environment.</p><h3>17. Application Logs</h3><p>When an application fails, logs are often one of the first places to investigate.</p><p>A log may contain information about:</p><ul><li>Application exceptions</li><li>Database connection failures</li><li>Authentication problems</li><li>Timeouts</li><li>Failed background jobs</li><li>Configuration problems</li></ul><p>A basic troubleshooting flow is:</p><pre>Problem reported<br>      ↓<br>Check application<br>      ↓<br>Check logs<br>      ↓<br>Check server resources<br>      ↓<br>Check database<br>      ↓<br>Identify cause<br>      ↓<br>Fix<br>      ↓<br>Verify</pre><p>Good logs can significantly reduce troubleshooting time.</p><h3>18. RPO — Recovery Point Objective</h3><p>RPO stands for <strong>Recovery Point Objective</strong>.</p><p>It answers:</p><blockquote><em>How much recent data can the business afford to lose?</em></blockquote><p>For example, an RPO of one hour means the recovery strategy is designed around limiting potential data loss to approximately one hour in the relevant failure scenario.</p><p>RPO influences backup frequency and replication strategy.</p><h3>19. RTO — Recovery Time Objective</h3><p>RTO stands for <strong>Recovery Time Objective</strong>.</p><p>It answers:</p><blockquote><em>How quickly should the service be restored?</em></blockquote><p>For example:</p><pre>Incident<br>   ↓<br>Detection<br>   ↓<br>Recovery<br>   ↓<br>Verification<br>   ↓<br>Service restored</pre><p>If an organization has a two-hour RTO, its recovery process should be designed and tested around that requirement.</p><h3>20. Recovery Planning</h3><p>A recovery plan defines what should happen when something goes wrong.</p><p>A basic recovery process might be:</p><pre>1. Detect the incident<br>2. Understand the impact<br>3. Identify the affected component<br>4. Check logs and resources<br>5. Recover the service<br>6. Restore data if required<br>7. Verify the application<br>8. Communicate the status<br>9. Document the incident</pre><p>The exact procedure depends on the application’s architecture and business requirements.</p><h3>21. Bringing Everything Together</h3><p>All these concepts are connected:</p><pre>USER<br>                   │<br>                 HTTPS<br>                   │<br>                SERVER<br>                   │<br>                 LINUX<br>                   │<br>              APPLICATION<br>                   │<br>               DATABASE<br>                   │<br>              BUSINESS DATA<br>                   │<br>        ┌──────────┴──────────┐<br>        │                     │<br>    MONITORING             BACKUPS<br>        │                     │<br>     DETECT                 RECOVER<br>        │                     │<br>        └──────────┬──────────┘<br>                   │<br>             RECOVERY PLAN<br>                   │<br>                RTO / RPO</pre><p>Once you understand this relationship, infrastructure becomes much less intimidating.</p><h3>22. A Simple Beginner Roadmap</h3><p>If you are starting from zero, a practical learning order is:</p><h3>1. Linux</h3><p>Learn:</p><ul><li>Files</li><li>Directories</li><li>Permissions</li><li>Processes</li><li>CPU</li><li>RAM</li><li>Disk</li></ul><h3>2. Networking</h3><p>Learn:</p><ul><li>IP addresses</li><li>DNS</li><li>Ports</li><li>HTTP</li><li>HTTPS</li><li>SSH</li></ul><h3>3. Databases</h3><p>Learn:</p><ul><li>Tables</li><li>Rows</li><li>Columns</li><li>Primary keys</li><li>Foreign keys</li><li>SQL</li><li>JOINs</li><li>Backups</li></ul><h3>4. Application Framework</h3><p>Learn the framework used by your application and understand:</p><ul><li>Configuration</li><li>Routes</li><li>Models</li><li>Database connections</li><li>Migrations</li><li>Logs</li></ul><h3>5. Monitoring</h3><p>Learn how to monitor:</p><ul><li>Server resources</li><li>Application health</li><li>Database health</li><li>Logs</li><li>Backups</li></ul><h3>6. Recovery</h3><p>Finally, learn:</p><ul><li>Backup and restore</li><li>Retention</li><li>RPO</li><li>RTO</li><li>Downtime procedures</li><li>Recovery testing</li></ul><h3>Conclusion</h3><p>Learning infrastructure can feel difficult because there are many technologies involved.</p><p>But you don’t need to learn everything at once.</p><p>Start with the basic question:</p><blockquote><strong><em>How does a request travel through the system?</em></strong></blockquote><p>Then learn:</p><pre>Server<br>  ↓<br>Linux<br>  ↓<br>Application<br>  ↓<br>Database<br>  ↓<br>Monitoring<br>  ↓<br>Backups<br>  ↓<br>Recovery</pre><p>The goal isn’t just to know commands.</p><p>The real goal is to understand <strong>how systems work, how to identify problems, how to protect data, and how to recover when something goes wrong.</strong></p><p>That foundation is enough to begin exploring more advanced areas of cloud, DevOps, system administration, and application operations.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=abe0c34fbbcc" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>