| |
microloft.co.uk |
HOWTO: Install BackupPC on Ubuntuto Backup Windows
A few notes to help me, and maybe others, to quickly setup BackupPC on Ubuntu to backup Windows I setup BackupPC on an Ubuntu Desktop box to backup a Windows 2003 Server. (I've no doubt that it will backup most Windows boxes.) I chose the simplest route to backup Windows which is to use the 'smb' method to backup Windows Shares. This means you will need to setup shares in Windows for everything you want to backup. You can of course choose to backup all of the C drive by selecting the hidden share called C$. You will also need to create the name of a Windows user with sufficient privaledges to access the files to be backed up. The method I've outlined below uses the web interface built into BackupPC VERY IMPORTANT - Ubuntu 8.10 will not run the web interface built into BackupPC due to a fault in the smbclient package and how it passes the password back to itself. I therefore used Ubuntu 8.04 and it worked fine 1 - Install Ubuntu on the backup box 2 - Install BackupPC on Ubuntu, the easiest way is to use the package manager but if you prefer the command line:
3 - If you want to change the password to something more memorable:
4 - BackupPC can now be managed through its web interface, so for example I typed the following into my web browser to access the BackupPC interface:
4a - If you don't get a login prompt then run this command:
4b - then go to http://192.168.0.100/backuppc/ and log in with the username backuppc and backuppc's password: 5 - Next we need to edit the hosts file to tell BackupPC which computer(s) to backup
6 - Now create the file /etc/backuppc/winserver.pl and add all options that are different from the ones in /etc/backuppc/config.pl
7 - Restart BackupPC with the following command:
8 - Then if you reload the BackupPC web interface you should find 'winserver' in the list of clients
That's it. You can now start the backup manually or wait for the pre-defined schedule to start Its worth reading /etc/backuppc/config.pl and /etc/backuppc/hosts where you will become familiar with all the configuration options, including how to define, how often and when BackupPC wakes up to back up the clients, when and how often it performs full or incremental backups, how many log files it should keep, etc. etc. |