Rsnapshot WARNING: Could not lchown() symlink "/path/to/file" Error and Solution

Posted on in Categories , , , , , , , , , , last updated November 3, 2009

I got rsnapshot based backup server up and running for my network under Debian Linux 5.x. But, whenever I run a backup job using the following command:

rsnapshot -v -c /root/rsnapshot.server1.conf hourly
I get the following messages on screen:

WARNING: Could not lchown() symlink “/nas/.rsnapshot/hourly.1/”
WARNING: Could not lchown() symlink “/nas/.rsnapshot/hourly.1/”
WARNING: Could not lchown() symlink “/nas/.rsnapshot/hourly.1/”
WARNING: Could not lchown() symlink “/nas/.rsnapshot/hourly.1/”

How do I fix this problem?

How To Back Up a Web Server

Posted on in Categories , , , , , , , , , , , , , , last updated August 2, 2008

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

How To Use rsync Command To Backup Directory Under Linux

Posted on in Categories , , , , , , , last updated April 2, 2008

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.

Linux install and configure an AMANDA backup client

Posted on in Categories , , , , last updated December 21, 2007

Q. We have central AMANDA backup server configured for tape backup. How do I add new client to AMANDA server? How do I configure CentOS Linux as an AMANDA backup client?

A.The Amanda-client package should be installed on any machine that will be backed up by AMANDA (including the server if it also needs to be backed up). You will also need to install the amanda package on each AMANDA client machine.
Continue reading “Linux install and configure an AMANDA backup client”

Howto install duplicity rpm under RedHat / CentOS / Fedora Core Linux

Posted on in Categories , , , last updated October 16, 2007

Q. I would like to use duplicity package to automatically encrypting and storing remote backups in a bandwidth efficient manner in our backup server. The server is already configured and I’d like to install the same under RedHat Enterprise Linux. How do I install duplicity w/o compiling from source code?

A. Duplicity is a piece of software which provides easy encrypted versioned remote backup of files requiring little of the remote server. It does this using GnuPG, tar, and rdiff. To transmit data it can use ssh/scp, local file access, rsync, ftp, and Amazon S3.

The best way to install it to use rpm files from DAG’s repo. For example RHEL 4 64 bit version can be installed using RPM command:
# wget
# rpm -ivh duplicity-0.4.2-1.el4.rf.x86_64.rpm

In order to use duplicity you need to create a GPG key:
# gpg --gen-key
Next run duplicity as follows to make backups:
# duplicity --encrypt-key="YOUR-KEY" /home scp:[email protected]/directory
You can verify backups with –verify option:
# duplicity --encrypt-key="YOUR-KEY" --verify scp:[email protected]/directory /home

Finally, if you need to restore file use command as follows:
# mkdir -p /disk3/resored.file
# duplicity --encrypt-key="YOUR-KEY" scp:[email protected]/directory /disk3/resored.file

Read the man page of duplicity and gpg for more information and command options.