Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
| my_new_backup_solution_with_burp [20.09.2021 22:01] – [setup a backup report script] Pascal Suter | my_new_backup_solution_with_burp [04.02.2026 11:32] (current) – [Offsite-Backup server] Pascal Suter | ||
|---|---|---|---|
| Line 111: | Line 111: | ||
| Now download my [[rclone wrapper to create offsite backups of a burp server]] and set up a cron job for it. (currently this script is a WIP, so come back later when it's done) | Now download my [[rclone wrapper to create offsite backups of a burp server]] and set up a cron job for it. (currently this script is a WIP, so come back later when it's done) | ||
| + | |||
| + | ===== Disaster Recovery fron the offsite backup ===== | ||
| + | this is the process after we have lost it all.. say a fire has hit our facility and everything is gone except for our offsite backup or maybe even only the tape has survived | ||
| + | |||
| + | ==== Restore the " | ||
| + | we assume that we have a backup of our former burp server and that the backup name is " | ||
| + | === 1.) setup temporary burp server === | ||
| + | for this tutorial we will use an ubuntu docker container as our temporary burp server to restore the actual backup server from it. | ||
| + | |||
| + | first from the offsite or tape backup, copy the '' | ||
| + | |||
| + | start the docker container: | ||
| + | docker run -ti --rm -p 4971:4971 --name burp-server -v ~/ | ||
| + | |||
| + | this will open a shell inside the container. In this shell, we will install burp and get the burp server configured and running: | ||
| + | |||
| + | apt update && apt install burp | ||
| + | sed -i ' | ||
| + | echo " | ||
| + | no joke, the password set here is the default in the sample client config, because we are lazy and this is a temporary server only, we will set it on the server side to match the client so we don't need to adjust it on the clinet later on :) | ||
| + | |||
| + | start burp server | ||
| + | burp -c / | ||
| + | |||
| + | |||
| + | === restore " | ||
| + | boot future " | ||
| + | |||
| + | make sure it is connected to the same network as our burp docker container above. | ||
| + | |||
| + | open a shell and become root | ||
| + | sudo su - | ||
| + | install burp | ||
| + | apt update | ||
| + | add-apt-repository universe | ||
| + | apt insatll burp | ||
| + | | ||
| + | temp0raryPW | ||
| + | |||
| + | sed -i ' | ||
| + | sed -i ' | ||
| + | sed -i ' | ||
| + | replace the "< | ||
| + | |||
| + | run burp client to list the available backup. amongst all the lines of output there should be a line that start with '' | ||
| + | |||
| + | burp -a l | grep " | ||
| + | |||
| + | this should sow something like | ||
| + | Backup: 0000002 2021-08-09 06:04:07 +0200 (deletable) | ||
| + | where 0000002 is the number of the backup. | ||
| + | |||
| + | now restore ''/ | ||
| + | burp -a r -b 2 -r " | ||
| + | |||
| + | NOTE, if the backup server is still a legacy booted machine, so there is no UEFI partition to be made, instead craete a 1MB "BIOS Boot" type id 4 partition at the begining of the partition table, then simply a root partition and a swap partition, that's it. | ||
| + | |||
| + | now format the root partition with ext4 | ||
| + | |||
| + | mount the root partitioin to ''/ | ||
| + | |||
| + | and now restore the backup to the new disk: | ||
| + | burp -a r -b 2 -d /mnt/ | ||
| + | now chroot into the restored disk to setup the rest: | ||
| + | for d in dev sys proc ; do mount -o bind /$d /mnt/$d; done | ||
| + | chroot /mnt/ | ||
| + | use mkswap to format the swap partition | ||
| + | mkswap / | ||
| + | update the UUID's in fstab. for example, dump the uuid's into fstab, then edit the file and move them to the right place: | ||
| + | blkid >> /etc/fstab | ||
| + | nano /etc/fstab | ||
| + | now install grub | ||
| + | grub-install | ||
| + | grub-mkconfig | ||
| + | finally reboot and boot from the harddisk | ||
| + | exit | ||
| + | umount /mnt/* | ||
| + | umount /mnt | ||
| + | reboot | ||
| + | |||
| + | finally, stop the temporary burp server docker image, just press ctrl+c and then type exit. | ||
| + | |||