How To
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).
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
https://forums.urbackup.org/t/how-to-remove-client/19/4
How to speed up backup
Try unchecking run with background priority
https://forums.urbackup.org/t/client-never-stops-indexing/2554/16
Try to update to 2.1.x
https://forums.urackup.org/t/slow-backup-speeds/2733
with image backups , try disabling compression
https://forums.urbackup.org/t/slow-backup-speeds/2733/10
delete the folder /subvolume then cleanup urbackup data folder
https://forums.urbackup.org/t/how-to-manually-delete-backups/1147/5
https://www.urbackup.org/administration_manual.html#x1-9500011.4
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
Delete the file or set to empty the values in /usr/local/etc/urbackup/snapshot.cfg.
https://forums.urbackup.org/t/disable-dattobd-after-install/2442
https://forums.urbackup.org/t/disable-dattobd-after-install/2442/1
How to monitor urbackup
https://forums.urbackup.org/t/metrics-reports/2468/3
https://github.com/uroni/urbackup-server-python-web-api-wrapper
Avoid error on missing backup path
https://forums.urbackup.org/t/missing-backup-path/2000/10
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
https://forums.urbackup.org/t/silent-install-in-windows-domain/1072/6
verify a client backup integrity
urbackupsrv verify-hashes -v CLIENTNAME/160702-1406
https://forums.urbackup.org/t/validation-of-backups/2401/2
How to backup windows XP or 2003 32b
You need to run the 1.4xx version of urbackup
https://forums.urbackup.org/t/client-starting-backup-failed/2632
https://sourceforge.net/projects/urbackup/files/Client/
How to give a name to the backed up folder
https://forums.urbackup.org/t/linux-client-not-cleaning-up-overlay-files/2351
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
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