Custom PHP Development

Custom PHP Development

Website Restoration & SEO Optimization: Rebuilding Stronger with Recovered Backups

Website Restoration & SEO Optimization: Rebuilding Stronger with Recovered Backups

Posted on: April 18, 2026

AI Assistance: Claude (Sonnet 4.6)


Introduction: When Disaster Becomes Opportunity

We experienced what most web professionals dread—a server crash that left us scrambling to recover critical content and website functionality. But here’s the silver lining: we had backups. Not just any backups, but comprehensive backup files from a previous workstation that contained years of accumulated website assets, configuration files, and content that had been sitting dormant. This session represents a major turning point where we successfully:

  • Migrated from an old computer backup to our current development environment
  • Recovered lost content from the server crash
  • Restored previous session context to understand our development history
  • Implemented a comprehensive SEO optimization strategy across multiple properties
  • Leveraged Claude AI to streamline the restoration and optimization process

This blog post breaks down what we accomplished, the challenges we faced, and the powerful features we implemented to ensure our websites not only recover but thrive in search rankings.


Section 1: The Recovery Challenge—Accessing Years of Backup Data

The Situation

When we discovered the server crash, the initial panic was real. We’d lost recent changes, database snapshots, and workflow context. However, we remembered that we’d migrated from an older computer and still had access to those backup files stored locally. These weren’t fresh backups—they were months old—but they contained valuable assets that existed before the crash occurred.

The recovery process involved:

  • Locating and cataloging backup files: We searched through multiple backup drives and local storage to identify all available recovery points.
  • Validating file integrity: Not all backup files are created equal. We had to verify which files were intact and usable before attempting restoration.
  • Identifying the most recent viable recovery point: Among the backups, we selected the most recent version that didn’t have corruption issues.
  • Extracting and organizing assets: Database dumps, WordPress configurations, theme files, plugin directories, and content archives were extracted and organized for analysis.

The Breakthrough

With Claude AI’s assistance, we created a systematic approach to:

  • Parse database backup files and identify which tables contained critical content
  • Extract WordPress post content, metadata, and relationships
  • Recover theme customizations and Elementor JSON templates
  • Validate user accounts and permissions structures
  • Cross-reference backup data with current infrastructure to identify what needed to be restored vs. what was already present

This process took several hours, but by the end, we had successfully recovered approximately 85% of our pre-crash content, with the remaining 15% either corrupted or already re-created during our recovery efforts.

Digital database backup verification with nested file directories and green checkmarks


Section 2: Loading Previous Session Context—Understanding Our Development History

Why Session Context Matters

Modern development workflows benefit enormously from session continuity. When working on complex projects—especially those involving multiple interconnected systems like our WordPress properties, Elementor templates, and SEO configurations—understanding what was accomplished in previous sessions is critical. It prevents duplicate work, maintains design consistency, and helps developers make informed decisions about architecture.

What We Recovered

By loading our previous session context with Claude AI, we were able to reconstruct:

  • Landing page iterations: We had documented multiple versions of persona-based landing pages, complete with design notes and conversion rate observations.
  • SEO initiatives in progress: Notes on robots.txt hardening, .htaccess optimization, and keyword research across our properties were preserved.
  • Elementor template development: JSON templates for business pages, team grids, and service showcases were recovered and re-analyzed.
  • GTM and GA4 configurations: Container IDs, event tracking setups, and conversion goal definitions were documented and available for verification.
  • Content strategy roadmaps: Blog outlines, content calendar entries, and planned feature releases were accessible.

This context proved invaluable because it meant we didn’t have to reverse-engineer decisions or start from scratch. Instead, we could pick up where we left off and build on our previous work with full awareness of the “why” behind our implementations.

Before and after workspace recovery showing fragmented files and organized project structure


Section 3: Implementing Our Comprehensive SEO Optimization Strategy

The SEO Audit Foundation

With our content restored and context loaded, we launched into a comprehensive SEO optimization strategy. This wasn’t just about quick wins—we wanted to systematically improve our organic visibility across all our properties (solarblu.net, mariehosting.com and betterwebservices.com.

Key SEO Features & Optimizations Implemented

1. Technical SEO Hardening

Robots.txt & .htaccess Optimization: We identified sensitive WordPress paths that were being indexed by Google unnecessarily. Paths like /wp-admin, /wp-includes, /wp-json, and various plugin directories were blocking at the HTTP level and declared as disallowed in robots.txt to prevent crawl budget waste.

XML Sitemap Generation & Validation: We verified that XML sitemaps were being generated correctly for all properties and submitted to Google Search Console with proper indexation.

Canonical Tags & Self-Referential Links: We audited all canonical tag implementations to ensure no self-referential issues and that pagination was handled correctly.

2. Content Optimization & Keyword Strategy

Semantic Keyword Analysis: Using our restored content inventory, we cross-referenced existing content with search trends and competitor analysis. We identified content gaps and opportunities for expansion in high-value keyword clusters.

Meta Tag Improvements: Page titles and meta descriptions were reviewed and optimized with primary and secondary keywords while maintaining readability for click-through rate improvement.

Header Structure Optimization: We audited H1, H2, and H3 tags across pages to ensure proper keyword integration and logical content hierarchy.

3. Core Web Vitals & Site Speed

We conducted performance audits and implemented:

  • Image optimization using modern formats (WebP with JPEG fallbacks)
  • Lazy loading for below-the-fold images and components
  • CSS and JavaScript minification and defer/async loading
  • Browser caching configuration at the Apache2 level
  • Database query optimization in WordPress

4. Internal Linking Strategy

We created a sophisticated internal linking map that:

  • Connected related content through contextual links
  • Distributed page authority efficiently through pillar pages and cluster content
  • Reduced orphaned pages that had no internal links pointing to them
  • Implemented breadcrumb navigation for improved crawlability

5. GA4 & GTM Integration Audit

We conducted a thorough audit of our analytics infrastructure:

  • Google Tag Manager Setup: Verified container configurations and confirmed all tags were firing correctly.
  • GA4 Key Events: Validated conversion tracking for form submissions, page scrolls, document downloads, and other micro-conversions.
  • Cross-domain tracking: For sites with multiple domains, we ensured proper tracking relationships without duplicate counting.
  • User journey analysis: Set up custom reports in GA4 to track content-to-conversion paths and identify high-performing content types.

6. Structured Data & Schema Markup

We implemented rich snippets for:

  • Organization schema: Company details, contact information, and social profiles
  • Product/Service schema: Service offerings with descriptions, pricing, and availability
  • Breadcrumb schema: For improved navigation visibility in search results
  • FAQ schema: For content Q&A sections to appear as featured snippets
  • LocalBusiness schema: For location-specific landing pages and regional targeting

Modern SEO analytics dashboard with Core Web Vitals and keyword rankings


Section 4: Cool Features We Implemented

Feature 1: AI-Assisted Content Recovery & Enhancement

Using Claude AI, we didn’t just restore content—we enhanced it. For blog posts that were partially corrupted or incomplete, we were able to reconstruct the intended message and improve the writing quality. Claude reviewed headlines, meta descriptions, and body content to suggest SEO improvements without changing the core message.

Real Example: A blog post on WordPress hosting tips had lost its introduction and conclusion. Claude analyzed the remaining content, understood the topic and intent, and helped us reconstruct a superior version with better keyword integration and structure.

Feature 2: Automated Meta Tag Generation at Scale

Rather than manually writing meta descriptions for hundreds of pages, we created a Claude-assisted workflow that:

  • Analyzed page content automatically
  • Extracted key topics and keywords
  • Generated unique, compelling meta descriptions within the 160-character limit
  • Flagged descriptions that needed human review for accuracy

This reduced our meta tag optimization from weeks of work to days, with maintained quality and keyword relevance.

Feature 3: Competitive Keyword Gap Analysis

Claude helped us create a systematic analysis process where we:

  • Identified competitor websites in our niche
  • Analyzed their ranking keywords
  • Cross-referenced with our own keyword portfolio
  • Identified high-value keywords we weren’t ranking for
  • Prioritized content creation efforts accordingly

Feature 4: Context-Aware Link Anchor Text Optimization

Instead of generic anchor text like “click here,” Claude reviewed all internal and external links to suggest more descriptive, keyword-rich anchor text that improves both user experience and SEO. The system flagged links where anchor text didn’t accurately describe the target page.

Feature 5: Session-to-Session Knowledge Continuity

Perhaps the most powerful feature was leveraging Claude’s ability to load previous session context. This meant:

  • Claude remembered design decisions from weeks ago without us having to re-explain them
  • Consistency in implementation was maintained across multiple sessions
  • We didn’t duplicate work or contradict earlier decisions
  • Development momentum was preserved even though real-world time passed between sessions

SEO workflow diagram showing Claude AI at center connected to optimization tasks


Section 5: Technical Implementation Details

WordPress Configuration Recovery

We recovered and verified:

  • wp-config.php database credentials and security keys
  • Plugin directory with all active and inactive plugins
  • Theme customizations in theme directories and Elementor settings
  • Uploads directory with all media files
  • WordPress .htaccess rules for pretty permalinks and caching

Database Restoration Strategy

Rather than simply restoring the entire database wholesale (which could have introduced stale data), we:

  • Compared the backup database structure with current production schema
  • Identified new tables and fields added since the backup was created
  • Selectively restored specific tables containing critical content
  • Preserved newer metadata and settings from production
  • Validated referential integrity and foreign key relationships

Version Control & Change Documentation

Throughout the restoration process, we documented:

  • What was recovered and from which backup source
  • What was excluded and why
  • All changes made during the restoration
  • Testing results and validation outcomes
  • Timeline of when content was restored vs. recreated

Section 6: Lessons Learned & Best Practices

Backup Strategy Improvements

This experience reinforced the importance of:

  • Incremental backups: Full backups monthly, incremental weekly
  • Off-site storage: At least one backup copy should be stored geographically separate from production
  • Backup testing: Regular restoration drills to ensure backups are actually usable
  • Backup documentation: Clear labeling of backup contents and creation dates

Development Workflow Improvements

Going forward, we’ve implemented:

  • Environment parity: Development, staging, and production environments now follow identical configurations
  • Automated testing: Database integrity checks run after any restoration attempt
  • Change logs: Every modification to critical files is logged with timestamp and reason
  • AI-assisted documentation: Using Claude to maintain detailed session notes that can be loaded in future sessions

SEO Maintenance Going Forward

We’ve established an ongoing SEO maintenance routine:

  • Weekly: Monitor Core Web Vitals and page speed metrics
  • Bi-weekly: Review GA4 conversion data and identify underperforming pages
  • Monthly: Conduct rank tracking for target keywords and analyze competitor movement
  • Quarterly: Full SEO audit including technical crawl, content review, and backlink analysis

Calendar showing SEO maintenance schedule with color-coded recurring tasks


Section 7: Tools & Technologies Used

AI Assistance

  • Claude (Sonnet 4.6): Primary AI assistant for content recovery, optimization suggestions, workflow design, and session context loading

WordPress Ecosystem

  • WordPress with WP-CLI: Command-line tools for bulk operations
  • Elementor: Page builder with JSON template recovery and optimization
  • phpMyAdmin: Database management and backup analysis
  • Yoast SEO / Rank Math: SEO plugins for on-page optimization and schema markup

Server & Infrastructure

  • Apache2: Web server configuration and .htaccess optimization
  • MySQL/MariaDB: Database restoration and optimization
  • PHP 8.3: Runtime environment for WordPress

Analytics & Monitoring

  • Google Search Console: Indexation status, mobile usability, manual actions
  • Google Analytics 4: Traffic analysis, conversion tracking, user behavior
  • Google Tag Manager: Event tracking and tag deployment

SEO Tools

  • Semrush: Competitive research, keyword analysis, rank tracking
  • Ahrefs: Backlink analysis, content explorer

What’s Next: Future Improvements

This restoration project is just the foundation. Going forward, we’re planning:

  • Content Hub Expansion: Creating topical clusters around high-value keywords with comprehensive pillar pages
  • Automated Reporting: Claude-powered monthly SEO reports that summarize performance changes and recommend actions
  • Core Web Vitals Mastery: Pushing toward perfect scores on all performance metrics

Futuristic roadmap visualization showing future SEO improvements as milestones


Conclusion: From Crisis to Opportunity

What started as a crisis—a server crash that threatened our digital assets—became an opportunity to not only recover what we’d lost but to rebuild our web infrastructure with better practices, stronger security, and a comprehensive SEO strategy.

The ability to access backup files from our old computer, load previous session context with Claude AI, and systematically optimize across all our properties demonstrates the power of:

  • Proper backup procedures and maintaining multiple recovery points
  • AI-assisted workflows that accelerate optimization while maintaining quality
  • Session continuity that preserves institutional knowledge across time
  • Systematic approaches to SEO rather than isolated quick-fixes

Our websites are now stronger, faster, more discoverable in search engines, and better positioned for long-term growth. This comprehensive restoration and optimization project provides a solid foundation for the next phase of our digital strategy.

Special thanks to Claude AI for its assistance in analyzing backup files, suggesting optimizations, maintaining context across sessions, and helping us think through the technical and strategic challenges of this project.


Have you experienced a server crash or needed to recover from a major website issue? Share your experience in the comments below. What backup and recovery strategies have worked best for you? And how are you leveraging AI to accelerate your SEO and content optimization efforts?

Stay tuned for upcoming posts on:

  • Deep dive into landing page optimization and conversion rate improvements
  • How we’re using Claude AI for automated content creation and enhancement
  • Building an AI agent platform with multi-modal capabilities
  • Case studies on converting website traffic to actual revenue

This post was created during an intensive website restoration and SEO optimization session with Claude (Sonnet 4.6) as the primary AI assistant. All code examples, optimization strategies, and technical implementations mentioned have been tested and verified in production environments.About the Author: SolarBluSeth is a web developer and hosting provider with 30+ years of experience, specializing in WordPress optimization, digital marketing strategy, and AI-assisted content creation. He runs solarblu.net, mariehosting.com, and betterwebservices.com.

Custom PHP Development

Celeste AI Agent: Webserver, USB Drive & SMB Sharing Setup

Celeste AI Agent: Webserver, USB Drive & SMB Sharing Setup

Update: After a solid 4 hours of configuration today, Celeste's Raspberry Pi infrastructure is now fully operational with webserver-accessible storage and seamless file sharing across the local network. All components tested and working.

The Setup: What We Built Today

Celeste runs on a Raspberry Pi 4 (8GB RAM, Debian Bookworm) as the brain of a self-hosted AI agent ecosystem. Today's mission was to bridge storage and network access — enabling the Pi's USB external drives to be served via a local webserver and shared to our main desktop using SMB (Server Message Block). The result: centralized file access from anywhere on the network, with Celeste orchestrating the data flow.

System Architecture - Raspberry Pi with USB drives and SMB sharing

Celeste infrastructure: USB storage, webserver, and SMB network bridges

Hardware & Current State

Component Specification
Board Raspberry Pi 4 Model B Rev 1.5
RAM 8GB
OS Debian Bookworm 64-bit (Linux 6.1.21)
Primary Storage 32GB microSD (upgrading to 512GB A2)
External Drive 1 58GB USB (sethdisk1 — npm global, dev files)
External Drive 2 3.7TB USB (sethstudio2 — media, backups)
Webserver Apache2 with PHP (LAMP stack)
File Sharing Samba (SMB/CIFS)
OpenClaw v2026.4.10 (177+ skills)
AI Backend Kimi K2.5 (Moonshot AI) primary, Ollama fallback

Part 1: Webserver Storage Access

Why This Matters

Before today, the USB drives were accessible only via SSH or physical file system access. Now they're served via HTTP — Celeste can fetch files, generate content, and make them immediately available to web clients. This is essential for the AI agent's workflow: read source files → process → output to web-accessible directory → client retrieves.

The Problem We Solved

External USB drives are fast for storage but isolated from network services. The webserver didn't know they existed. Solution: mount the drives in Apache's document root and configure permissions.

Configuration Steps

1. Create mount points for both USB drives:

sudo mkdir -p /var/www/html/storage/sethdisk1
sudo mkdir -p /var/www/html/storage/sethstudio2

2. Mount the USB drives (use your actual device names):

sudo mount /dev/sda1 /var/www/html/storage/sethdisk1
sudo mount /dev/sdb1 /var/www/html/storage/sethstudio2

3. Make mounts permanent in /etc/fstab:

/dev/sda1 /var/www/html/storage/sethdisk1 ext4 defaults,nofail 0 0
/dev/sdb1 /var/www/html/storage/sethstudio2 ext4 defaults,nofail 0 0

4. Fix permissions so Apache can read the drives:

sudo chown -R www-data:www-data /var/www/html/storage
sudo chmod -R 755 /var/www/html/storage

5. Restart Apache to pick up the new directories:

sudo systemctl restart apache2

Verification

Test it from the Pi or your desktop browser:

curl http://192.168.1.xxx/storage/sethdisk1/
curl http://192.168.1.xxx/storage/sethstudio2/

You should see directory listings or file downloads depending on your Apache config. Success: The USB drives are now web-accessible.

Apache webserver with mounted USB drives showing HTTP access

HTTP requests flowing from clients to mounted USB storage via Apache

Part 2: SMB Network Share Setup

Why This Matters

The webserver makes files accessible via HTTP URLs, but for daily workflow, SMB (Samba) lets your desktop see the Pi's drives as a network folder — you can drag-and-drop, edit files directly, and manage them just like local storage. This is the bridge between Celeste's processing and your main machine.

SMB vs HTTP: HTTP = read-only public access. SMB = read-write network shares with authentication. For production Celeste, you want both: HTTP for web clients and Celeste's own workflows, SMB for you to manage files locally.

Install Samba

sudo apt update
sudo apt install samba samba-common-bin -y

Configure Samba for the Storage Directories

Edit /etc/samba/smb.conf and add this at the end:

[sethdisk1]
    comment = Celeste Dev Storage (sethdisk1)
    path = /var/www/html/storage/sethdisk1
    browseable = yes
    read only = no
    guest ok = no
    valid users = @sambagroup
    create mask = 0755
    directory mask = 0755

[sethstudio2]
    comment = Celeste Media & Backups (sethstudio2)
    path = /var/www/html/storage/sethstudio2
    browseable = yes
    read only = no
    guest ok = no
    valid users = @sambagroup
    create mask = 0755
    directory mask = 0755

Set Up SMB User & Permissions

1. Create a Samba user (or use existing Linux user):

sudo smbpasswd -a username

2. Create a group and assign permissions:

sudo groupadd sambagroup
sudo usermod -a -G sambagroup username
sudo chown -R :sambagroup /var/www/html/storage
sudo chmod -R g+rw /var/www/html/storage

Restart Samba

sudo systemctl restart smbd
sudo systemctl restart nmbd

Connect from Your Desktop

Windows: File Explorer → Map Network Drive → \\192.168.1.xxx\sethdisk1

Mac: Finder → Go → Connect to Server → smb://192.168.1.xxx/sethdisk1

Linux:

sudo mount -t cifs //192.168.1.xxx/sethdisk1 /mnt/celeste-disk1 \
  -o username=your_samba_user,password=your_password,uid=1000,gid=1000
Desktop connected to Raspberry Pi via SMB protocol

SMB protocol bridges desktop and Pi for seamless file sharing

Part 3: Integration with Celeste

How Celeste Uses This Setup

The OpenClaw agent (Celeste) now has access to:

  • Web-accessible output directory — Skills can write processed files to /var/www/html/storage and generate shareable URLs for downloads or web previews.
  • SMB input source — You can drop files into the shared folders from your desktop, and Celeste can monitor and process them automatically.
  • Centralized file log — All Celeste's operations (transcripts, generated media, analysis) are stored in a central location accessible from anywhere on the network.

Example Celeste Workflow

User (Discord): "Analyze the video in /storage/sethstudio2/video.mp4"

Celeste:
1. Detects the file via SMB mount on Pi
2. Calls Whisper skill to transcribe audio
3. Calls Claude skill to summarize transcript
4. Writes results to /var/www/html/storage/outputs/
5. Returns HTTP URL to user: http://192.168.1.xxx/storage/outputs/analysis.txt

Security Note

This setup is for a local, trusted network (your home/office). The SMB shares require authentication, but passwords travel in plaintext over the network without additional encryption. For internet-facing deployments, add a VPN layer or use SMB3 with encryption (requires more complex config).

Testing & Verification

Quick Checklist

Webserver: curl http://192.168.1.xxx/storage/ shows directory listing

SMB Browse: Network folder visible on desktop

Read/Write: Can create files via SMB and see them on Pi

Permissions: www-data user can write to storage (for Celeste skills)

Mounts Persistent: Reboot the Pi and drives are still mounted

Architecture Overview

🍓 Pi Storage Layer

USB Drives: 58GB + 3.7TB physical storage

Mount: /var/www/html/storage/

Access: Apache webserver + Samba shares

🤖 Celeste Processing

OpenClaw: 177+ skills orchestrating tasks

I/O: Reads from storage, writes results back

Output: HTTP URLs for web clients

💻 Desktop Access

SMB Mounts: Network drives appear as local folders

Workflow: Drop files, Celeste processes, retrieve results

Real-time: See changes instantly across the network

🌐 Web Clients

HTTP Access: Fetch files via URLs

Public/Private: Configure Apache for both

Scalable: Celeste can serve files to apps, bots, services

Gotchas & Solutions

Mount Points Disappear After Reboot

Fix: Make sure both drives are in /etc/fstab with nofail option. Use UUIDs instead of device names for reliability.

Permission Denied Writing to Shares

Fix: Verify that www-data user and your Samba user are both in the group with write permissions: sudo chown -R :sambagroup /var/www/html/storage && sudo chmod -R g+w /var/www/html/storage

SMB Connection Drops

Fix: Add to /etc/samba/smb.conf in the [global] section: socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE

USB Drive Not Recognized After Disconnection

Fix: Use nofail in fstab to prevent boot failures, and manually remount: sudo mount -a

What's Next

  • SD Card Upgrade: Move from 32GB to 512GB A2-rated microSD for better performance under OpenClaw's heavy I/O workload.
  • Synergy Integration: Share keyboard/mouse across Pi and desktop for unified input experience.
  • Aaron Agent: Deploy a second OpenClaw instance on a VPS for distributed workload handling.
  • Automated Backups: Schedule rsync jobs to backup critical files from sethstudio2 to cloud storage.
  • Web Dashboard: Build a Flask/FastAPI dashboard on the Pi to monitor storage, Celeste status, and recent tasks.
  • OpenClaw Auto-Update: The framework just released v2026.4.11+ — plan the next upgrade carefully to avoid config schema breaks.
Futuristic AI agent ecosystem with multiple servers and cloud integration

Next-gen roadmap: Synergy, Aaron VPS agent, expanded cloud integration

Key Learnings

1. Storage is Upstream: Before spinning up complex agent workflows, nail the data pipeline. Today's 4-hour session paid for itself by eliminating future file access headaches.

2. Permissions Matter: Linux ownership and group permissions are non-negotiable. www-data, sambagroup, and your user all need clear boundaries.

3. Persistent Mounts: USB drives are convenient but fragile. Use /etc/fstab + UUIDs + nofail or face boot failures.

4. Bridging Layers: The webserver layer (HTTP) and file sharing layer (SMB) serve different audiences — Celeste, web clients, and humans. Design for all three.

Command Reference

sudo lsblk                              # List all block devices to find USB drives
sudo blkid                              # Show UUID of each drive
sudo mount /dev/sdX1 /mnt/point         # Mount a drive
sudo umount /mnt/point                  # Unmount a drive
sudo mount -a                           # Re-mount all fstab entries
sudo chown -R user:group /path          # Change ownership recursively
sudo systemctl restart apache2          # Restart webserver
sudo systemctl restart smbd             # Restart Samba daemon
sudo smbclient -L \\\\192.168.1.xxx    # List Samba shares from Linux
mount.cifs                              # Check if CIFS support is installed

📌 Important

All IP addresses in this guide (192.168.1.xxx) are placeholders. Replace with your actual Pi's IP address on your local network. Find it with hostname -I on the Pi.

Resources & Links

SolarBlu
Scroll to Top