≡ 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 )

Thunderbird Move Mail / Settings From Desktop Computer To Laptop

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…]

How To Set Red hat / CentOS Linux Remote Backup / Snapshot Server

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…]

FreeBSD cvsup: Update The FreeBSD From Previous Releases Using Source Code

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…]

Linux tar: /dev/st0: Cannot write: Invalid argument error and solution

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…]

Can RAID Act As The Reliable BACKUP Solution For Linux / UNIX / Windows Server?

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

Linux LVM error VG meta data inconsistent and Solution

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

How To Use rsync Command To Backup Directory Under Linux

Q. How do I use rsync command to back up a home directory under Linux operating system?

A. rsync command easily backup your home directory to local secondary hard disk or remote server using ssh protocol. rsync is a software application for Unix systems which synchronizes files and directories from one location to another while minimizing data transfer using delta encoding when appropriate.

Task: Backup /home/tom to /mnt/usbpen

Assuming that USB pen or external USB hard disk is mounted at /mnt/usbpen, enter the following command to backup (sync) new files and changes to existing files but don't remove files in backup directory:
$ rsync -au /home/tom /mnt/usbpen
To delete files in backup directory that no longer exist in directory being backed up, enter:
$ rsync -au --delete /home/tom /mnt/usbpen

See our previous article about using rsync for transferring files under Linux or UNIX from local or remote network computer.

I'd like to configure my Debian box to backup two remote servers using rsnapshot software. It should make incremental snapshots of local and remote filesystems for any number of machines on 2nd hard disk located at /disk1 ( /dev/sdb2).
[click to continue…]

Creating A tar File in Linux Via Command Line Options

How do I create a tar file under Linux using command line options?
[click to continue…]