How To

Save backups on different storages

setup a second urbackup server and tell the client to backup to the 2 servers using different policies.

setup to backup one client to two server https://www.urbackup.org/faq.html


With 2.1.x you can store images in a different ZFS dataset (see testing category) when using cow-raw images.

https://forums.urbackup.org/t/saving-backups-on-different-storages/2583/4

Upgrade

As always: Replace the executables (via the installers) and the database of the server/client will be updated on first running it.

Place the files from the update directory into C:\Program Files\UrBackupServer\urbackup or/var/urbackup to auto-update clients. Disable Download client from update server in the server settings to prevent the server from downloading the current version.

On Linux e.g. with:

cd /var/urbackup && wget -r -l1 --no-parent --reject "index.html*" -nH -nd -N "https://ssl.webpack.de/beta.urbackup.org/Client/2.1.3%20beta/update/"

Another option :

https://github.com/ptempier/get_urbackupclient/blob/master/updateclient.sh

Downgrade (server)

Stop the UrBackup server, restore C:\Program Files\UrBackupServer\urbackup or /var/urbackupfrom a backup before upgrade and then install the previous version over the beta release.

Check urbackup internal database

sqlite3 backup_server_settings.db "PRAGMA integrity_check"

https://forums.urbackup.org/t/sqlite-disk-i-o-error-errorcode-522-backup-server/2235/6

Update the restore iso

As work-around you can use any 32-bit Linux live system (preferably Debian based, e.g. Ubuntu) and download and run http://buildserver.urbackup.org/restore_cd_2.tar.xz2 (or build this yourself using the source checkout and ./update_restore.sh).

https://forums.urbackup.org/t/restore-image-does-not-support-the-intel-i217-lm-and-the-i210-gb-cards/2545

Cleanup urbackup data folder

remove_unknown.bat 

on the client run the uninstaller (works on linux too)

on the status page at the left of the client click remove

How to speed up backup

Try unchecking run with background priority

Try to update to 2.1.x
with image backups , try disabling compression

How to recover the server login password

There is a reset_pw.bat in UrBackupServer installation folder which will allow you to reset it.

https://forums.urbackup.org/t/need-to-change-the-password/1848

Fix client won’t connect /timout

on the serer setting

the server url  on the server tab us an http:// url

on the internet tab the server ip/name  is an ip or fqdn, without http://

How to add clients from the commandline

Create the addclient.py  file

import urbackup_api
import sys

server = urbackup_api.urbackup_server("http://hostname:55414/x", "admin", "password")
server.add_extra_client(sys.argv[1])

Now call :

python .\addclient.py hostname

https://forums.urbackup.org/t/windows-command-for-adding-discovery-ip-hostname/2473/5


see also the api:

https://github.com/uroni/urbackup-server-python-web-api-wrapper


see also generate custom preconfigureed client

https://urbackup.atlassian.net/wiki/display/US/Download+custom+client+installer+via+Python1


How to change the snapshot mechanism on Linux client

edit the file /usr/local/etc/urbackup/snapshot.cfg.

https://forums.urbackup.org/t/how-to-change-the-snapshot-mechanism-on-linux-client/2487

Disable dattobd ?

Delete the file or set to empty the values in /usr/local/etc/urbackup/snapshot.cfg.

How to monitor urbackup

Avoid error on missing backup path

mark the path as optional with :

Under Filebackups add the following as path:

C:\path\you\want\to\backup|NAMEHERE/optional

or
in the server setting, tick , do not fial backup in case of has mismatch or read error

start/restart the client on ubuntu

the client is not shipped with init.d scripts, but with systemctl ones, so:
stemctl  stop urbackupclientbackend
stemctl  start urbackupclientbackend

how to list the folders being backed up clientside

urbackupclientctl list

how to add folder to be backed up clientside

urbackupclientctl add-backupdir -d /path
where are the client setting loocated on linux
/usr/local/var/urbackup/

install the windows client silently

verify a client backup integrity

urbackupsrv verify-hashes -v CLIENTNAME/160702-1406

How to backup windows XP or 2003 32b

You need to run the 1.4xx version of urbackup

How to give a name to the backed up folder

if you do not want to follow symlinks outside of the backup dir you set e.g. default directories to backup to /|root/symlinks_optional,share_hashes

this backup directory / with name root with options symlinks_optional share_hashes

How to give specify option per backed up folder

Client side it s easyier using backupctl, severside, use a coma :

if you do not want to follow symlinks outside of the backup dir you set e.g. default directories to backup to /|root/symlinks_optional,share_hashes

how to monitor the urbackup backup results from commandline

https://forums.urbackup.org/t/master-server-with-multiple-urbackup-servers-rolling-up-backup-data/617/3

with urbackup python api:


import urbackup_api
import os


def checkserver():
s = open('servers.txt', 'r')
c = open('status.txt', 'w')
#print(s.read())
for line in s.read().split('\n'):
print(line)
server = urbackup_api.urbackup_server("http://%s:55414/x" % line, "user", "pass")
for client in server.get_status():
c.write("Server name:")
c.write(client['name'])
c.write(os.linesep)
c.write("Last Backup")
c.write(client['lastbackup'])
c.write(os.linesep)
c.write('**************************')
c.write(os.linesep)


s.close()
c.close()


if name == 'main':
checkserver()

How to reset the admin password

on the urbackup server :

start_urbackup_server --reset_pw (newpassword)


How to restore a huge number of small files

Do not use the web UI to download the zip file.

Instead use the restore from the urbackup client


How do i use wildcards for backups

it s in the faq

Use a colon

c:\users\:\documents;c:\users\:\desktop


How to move the urbackup data store

UrBackup 2.1.x has a new live migration feature  See the 2.1.x admin manual section 10.8.

stop urbackup server

create a file named migrate_storage_to at the root of the data store 

inside put the path of the new storage path

start urbackup server, watch the progress on the status page

when it s done, fix the mountpoint/symlink/data store path



How to automate urbackup client install on windows via chocolatey

https://chocolatey.org/install

@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"

https://chocolatey.org/packages/urbackup-client

choco install urbackup-client

choco upgrade urbackup-client