Thursday, August 28, 2014

BackupPC installation guide on Debian

Best and easiest way to install and configure BackupPC, proceed with the Debain OS. Therefore install debian and then change the source list as follows.

vi /etc/apt/sources.list
Comment the CD-ROM source from the source list and then add extra source. Then source list should be look as below.

#
# deb cdrom:[Debian GNU/Linux 7.6.0 _Wheezy_ - Official amd64 DVD Binary-1 20140712-14:11]/ wheezy contrib main
#deb cdrom:[Debian GNU/Linux 7.6.0 _Wheezy_ - Official amd64 DVD Binary-1 20140712-14:11]/ wheezy contrib main
deb http://security.debian.org/ wheezy/updates main contrib
deb-src http://security.debian.org/ wheezy/updates main contrib
deb http://ftp.us.debian.org/debian stable main contrib

Last line of the list is generated through below link. You can use below link to generate source list that nearest to your country.

Then follow the below guide to install and configure the BackupPC and clients.


  • First update the debian server by using “apt-get update” command.
  • Then start the installation of backuppc with other dependency packages.
        • aptitude install backuppc rsync libfile-rsync-perl libfile-rsyncp-perl par2 bzip2
  • This will go through the BackupPC installation process and it will prompt some configuration details. Make sure those things are written down in a paper.
  • Then you have finished the installation you may access the backuppc via the web interface.

Configure the Backup time and schedule as required. You must need to specify the Share folder details, User, and Samba share user password in Xfer configuration. This can be done to individual PCs or for the whole system.



Window client Configuration

  • Create a user called “backuppc”
  • Share the folders with the share name “Backup”
  • Then permit the backuppc user to access the share folders.
Above are common configuration for all windows distribution. But for the Windows 7 you need to edit the registry and add new value.



  • Click “Start” Button –» All Programs –» Accessories
  • Right mouse click on “Command Prompt” –» choose “Run as administrator” –» Continue
  • Type “regedit” and press “Enter”, this opens the Registry editor with administrative privileges.
  • Navigate to the following folder:“HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System”
  • Add a new “DWORD (32-bit) Value” called “LocalAccountTokenFilterPolicy” (without the quotes).
  • Change the value from “0” to “1”

Finally reboot the Client PC. That'll be all and you can make backup successfully.





NT_STATUS_BAD_NETWORK_NAME error in BackupPC via samba

Error :
NT_STATUS_BAD_NETWORK_NAME error will generate when you try to backup Windows 8 client to BackupPC server via the SMB protocol.

Root cause :
If you browse the Windows 8 shared folder through another machine with in the network you will not see the  Shared folder that you have configured in the BackupPC under the “SmbShareName”. This is the root cause for the above error.

Solution :
http://www.addictivetips.com/windows-tips/windows-8-file-sharing-share-users-system-folders-on-network/

Use above link to share the folder correctly.