Deploying Suse Linux Enterprise Server


Purchase "Deploying Suse Linux Enterprise Server"
at Lulu.com

Deploying BackupPC on SLES

Windows Clients

When backing up Windows clients you have an option between two XferMethods. The first one I will show you is the "Rsyncd" method. This method has the benefit of using the rsync program to transfer the files to backup. Because of this, I highly recommend using the rsyncd XferMethod to backup all of your Windows Clients.

The other method is the "smb" method, this method has the benefit of not having to install any program on the client machine as it simply uses Windows file sharing to access the files to backup. This method is quite a bit slower than the rsyncd method, but can be useful in certain situations.

Backing Up Windows Clients Using Rsyncd

To allow BackupPC to communicate with your Windows clients using Rscyncd, you must first download the appropriate files. You can find them at the Sourceforge page, or you can download my copy here.

Once you download and uncompress the files, ensure that they are in the C:\rsyncd\ directory. Then you want to edit the C:\rsyncd\rsyncd.conf file and change "auth users = backuppc_user" for each "share" defined, also change "read only = true" to false if you want to use BackupPC for restoration. Also adjust the [cDrive] "share" accordingly.

After you edit the rsyncd.conf file, you will want to edit the rsyncd.secrets file to something like:

backuppc_user:password

Finally, to ensure that no one will be able to see what the password you set is, change the rsyncd.secrets file to "Read-Only" and adjust the permissions so that only the "SYSTEM" account has Read permissions on the file.

Once everything is done, double-click on the "services.bat" file to install the service and start it.

Now on the BackupPC Server, you will want to add a clientname.pl file to the /etc/BackupPC/pc/ directory. This file should contain something along the lines of:

$Conf{XferMethod} = 'rsyncd';
$Conf{RsyncdUserName} = 'backuppc_user';
$Conf{RsyncdPasswd} = 'password';
$Conf{RsyncShareName} = 'cDrive';

To get the BackupPC Server to "see" that client, add the clientname to the /etc/BackupPC/hosts file, along with the username of any user you want to have access to it's backup files and restart the BackupPC daemon.

Backing Up Windows Clients Using Smb

Occasionally there are reasons not to use the Rsyncd method for Windows clients, maybe the workstation already has cygwin installed and it would be too much of a pain to setup rsyncd properly, or maybe you do not want to open the Rsync port for the Workstation. Reguardless, you can use standard Windows Shares to backup the data on your Workstations. First you must setup a share on the Workstation (or use the "Administrator" share C$). Then you must create the /etc/BackupPC/pc/hostname.pl file which should be similar to this:

$Conf{XferMethod} = 'smb';
$Conf{SmbShareName} = 'C$';
$Conf{SmbShareUserName} = 'Administrator';
$Conf{SmbSharePasswd} = 'p@ssw0rd';

Note: If you are going to use the "Administrative Shares", it is case sensitive.

Once you have the hostname.pl file created add the host to the /etc/BackupPC/hosts file by either editing the file directly, or using the Web Interface (covered in the next section). Then once you restart the BackupPC Service the host should be available to backup using BackupPC.

Next


Purchase "Deploying Suse Linux Enterprise Server"
at Lulu.com