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/server1.example.com/etc/alternatives/locate”
WARNING: Could not lchown() symlink “/nas/.rsnapshot/hourly.1/server1.example.com/etc/alternatives/nc.1.gz”
WARNING: Could not lchown() symlink “/nas/.rsnapshot/hourly.1/server1.example.com/etc/alternatives/jexec-binfmt”
WARNING: Could not lchown() symlink “/nas/.rsnapshot/hourly.1/server1.example.com/etc/alternatives/servertool”

How do I fix this problem?

UNIX / Linux Dump Command Exclude Directories / Files

Posted on in Categories , , , , , , , , , , last updated June 20, 2009

I‘m using dump command to backup file systems to tape and remote server. However, I’m not able to find any option that will allow me to exclude files or directories from backup. How do I force UNIX / Linux / FreeBSD dump command to exclude selected files (such as /var/cache or /usr/basejails) which I don’t want to backup?

Freebsd Mount a NAS via SMB / CIFS

Posted on in Categories , , , , , , , last updated January 25, 2009

Q. I want to use our NAS server to store backups. Our NAS supports FTP and CIFS / SMB sharing technology. How do I mount and store files on NAS using FreeBSD? How do I automate entire procedure using a shell script? Is that doable? If so, what’s the easiest solution ftp or CIFS?

Tar Extract a Single File(s) From a Large Tarball

Posted on in Categories , , , , , , , , , , , , , last updated December 6, 2008

Q. I’ve couple of large tarballs such as www.tar and images.tar. Is it possible to extract a single file or a list of files from a large tarball such as images.tar instead of extracting the entire tarball? How do I extract specific files under Linux / UNIX operating systems?

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 backup.example.com?

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

Posted on in Categories , , , , , , , last updated July 7, 2008

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?