≡ Menu

Linux and Unix Backup and Restore

Tutorials, howtos, and general Linux / Unix tips about Backing and restoring the systems. This section guides sys admin with backing up data to enable recovery from data loss. ( rss feed )

Q. How do I move my Thunderbird email client settings from Debian Linux desktop to a new Ubuntu Linux laptop? I've installed Thunderbird on Ubuntu Linux but not able to find any import or export option. How do I move settings?
[click to continue…]

How To Back Up a Web Server

Q. I'm using Red Hat Enterprise Linux based Apache web server. How do I backup my Apache webserver, MySQL and PostgreSQL database to another disk called /backup and then copy it to other offsite backup ssh server called backup.example.com?
[click to continue…]

Q. I've HP RAID 6 server running RHEL 5.x. I'd like to act this box as a backup server for my other Red Hat DNS and Web server. The server must keep backup in hourly, daily and monthly format. How do I configure my Red Hat / CentOS Linux server as remote backup or snapshot server?
[click to continue…]

Q. How do I update my system using cvsup mirror? How do I upgrade from previous releases using FreeBSD 6.x or 7.x? How do I upgrade everything including kernel, userland utilities, and installed applications?
[click to continue…]

Q. When I run tar command it fails with an error that read as follows:

tar: /dev/st0: Cannot write: Invalid argument

How do I fix this error under CentOS / Debian / Fedora / RHEL Linux HP server systems?
[click to continue…]

Q. Can I use RAID as the only backup solution under Linux? Is RAID is reliable backup solution for server?
[click to continue…]

Q. How do I fix the following error under CentOS Enterprise Linux:

LVM error VG meta data inconsistent

How do I fix this problem?

A. You need to use lvm command, which provides the command-line tools for LVM2. In order to fix this problem boot your Linux into rescue mode or a single user mode:

First, you need to restore the VG Meta data, enter:
lvm vgcfgrestore VG

Now, you need to rescan for physical devices and vol groups (scan all disks for physical volume), enter:
lvm pvscan
lvm vgscan

Finally, make the volume group active, enter:
lvm vgchange -ay VG

For more information read lvm man page:
man lvm