Nethserver-urbackup need testers

Hi,

a little bit of time is gone and I finally found the time to setup a Nethserver with UrBackup. I am using it to backup all clients once and after bigger changes.
What I archived so far is

  • Install it on Nethserver
  • Mount a CIFS/SMB Share that is password protected to store the Backups
  • Silent remote install of the UrBackup Client (Windows)
  • Backup every client

What I still want to do is:

  • Store a generalized Backup for deployment on new machines that is not related to any existing PC. But I don’t know if this is possible with UrBackup.

What I did was the following:

  1. To install it on Nethserver I followed the instructions by @stephdl in this thread and in several Wikis. So I think it is useful that I am writing this.
    I executed the following commands on the console to install UrBackup:

    yum install http://mirror.de-labrusse.fr/NethServer/7/x86_64/nethserver-stephdl-1.0.2-1.ns7.sdl.noarch.rpm
    yum install nethserver-urbackup --enablerepo=stephdl

This installs UrBackup which is accessable via https://myserver/urbackup/ (the final / is important regarding the Wiki)! It is also added to the applications tab of the Nethserver WebGUI.

  1. To mount a CIFS/SMB share that is password protected you have to install the cifs-utils package first

    yum install cifs-utils

After that you can mount the share with this two commands:

mkdir /mnt/backup
mount.cifs //mynas/BackupDisk /mnt/backup -o username=backup,domain=mynas,password=mypassword

This mounts the share “BackupDisk” on the system “mynas” to the directory /mnt/backup. The -o parameter provides username, domain and password. All three must be set. I left the domain-part and the command didn’t worked anymore.
If you leave it like this, your mount is gone after restart. You can do the following, if you are the only one that has access to the nethserver. The password is stored in cleartext:
Start the vi editor

 vi /etc/fstab

press i (insert mode). And set the cursor to a free line. Enter the following text. The seperator between the blocks are Tabs.

 //mynas/BackupDisk	/mnt/backup	cifs	username=backup,password=mypassword,domain=mynas,iocharset=utf8,sec=ntlm	0	0

Press Ctrl+c(cancel insert) and ZZ(Upper case, Save and exit).
Now your share should be connected even after a restart.

  1. Silent remote deployment. This was harder than expected because I had troubles using the psexec -c -f parameter. It copies the file you want to run to the target systems system32-folder before execution. The problem is, that if you run the UrBackup Client setup from that folder - even manually through the UI - the setup just shows an error. So I created a script that copies the setup “manually” to the Windows Temp folder. If you run it from there, it works.
    This is my final batch-script, that is located in a folder where the UrBackup Client 2.1.15.exe and the psexec.exe is located next to the script:

    set /p remotepc=PC to deploy [Hostname/IP address]:
    net use j: \%remotepc%\c$\Windows\Temp
    copy “UrBackup Client 2.1.15.exe” j:
    net use j: /delete
    start psexec.exe \%remotepc% -s “c:\Windows\Temp\UrBackup Client 2.1.15.exe” /S /D=
    PAUSE

  2. Finally I configured the UrBackup Server and after the remote deployment the machines came online in the UrBackup interface and I was able to start a full Image Backup

4 Likes