My way of fixing Client on Ubuntu (16)

I have been working hard to try to fix why I have not got the ubuntu client to urbackup to work. After many expriment, I came to the following, which solved many problems.

urbackupServer
Settings / File Backups / Default Folders to Save: -x -f -d /boot -n boot


Client ubuntu


sudo uninstall_urbackupclient
rm -Rf /usr/local/var/urbackup
sudo rm /usr/local/var/urbackup/server_idents.txt

sudo apt-key adv --recv-keys --keyserver keys.fedoraproject.org 370C85D709D26407
echo “deb [arch=amd64] https://cpkg.datto.com/datto-deb/public/$(lsb_release -sc) $(lsb_release -sc) main” | sudo tee /etc/apt/sources.list.d/datto-linux-agent.list
sudo apt-get update
sudo apt-get install dattobd-dkms dattobd-utils

sudo su
TF=mktemp && wget “https://hndl.urbackup.org/Client/2.2.5/UrBackup%20Client%20Linux%202.2.5.sh” -O $TF && sh $TF; rm $TF
sudo apt install -f

If you get three choices as well, option 1.

sudo urbackupclientctl add-backupdir -x -f -d /boot -n boot


Tips:
((sudo apt-get remove --purge urbackup-server))
sudo urbackupclientctl start --full --client 192.168.1.1XX (<–IPClient)
sudo urbackupclientbackend -i -v debug
sudo urbackupclientctl list-backupdirs

sudo urbackupclientctl add-backupdir -d /boot

The command:

echo “deb [arch=amd64] https://cpkg.datto.com/datto-deb/public/$ (lsb_release -sc) $(lsb_release -sc) main” | sudo tee /etc/apt/sources.list.d/datto-linux-agent.list

really f…ed me up good.
Now i can’t install anything or even use the command:

sudo apt-get update

I get:

E: Type ‘“deb’ is not known on line 1 in source list /etc/apt/sources.list.d/datto-linux-agent.list
E: The list of sources could not be read.

What is the solution for this?

I solved it by applying the command:

sudo rm /etc/apt/sources.list.d/datto-linux-agent.list

Be very careful when following these instructions.
My advice is, if you have urbackup server and client in the same machine and want to backup your ubuntu - don’t follow the instructions above and don’t use urbacku

Best to follow the instructions here for the Ubuntu section to install dattobd (if you want to use dattobd): https://github.com/datto/dattobd/blob/master/INSTALL.md

To install the Linux client here: https://www.urbackup.org/download.html#linux_all_binary

If you copy & paste the above there is probably a problem with quotes or something, since it is not in code tags.