This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision |
rethinking_my_backup_strategy [01.01.2021 22:39] – [self-made collection of other tools] Pascal Suter | rethinking_my_backup_strategy [01.01.2021 23:05] – [First POC - Burp + rsync] Pascal Suter |
---|
* ''server_can_restore = 0'' | * ''server_can_restore = 0'' |
* ''server_can_override_includes = 0'' | * ''server_can_override_includes = 0'' |
* a script on the burp server uses ''rsync -aAhHvXxR --numeric-ids --delete /var/spool/burp/./*/current/ rsync://user@offsite/current0'' to write backups to the offsite server | * a script on the burp server uses ''rsync -aAhHvXxR --numeric-ids --delete /var/spool/burp/./*/current/ rsync:%%//%%user@offsite/current0'' to write backups to the offsite server |
* on the offsite server, a script is called (somehow, haven't figured out yet how exactly this will be done) after the rsync from the burp server successfully finished. the script will use ''cp -alx /backups/current /backups/`date +%Y.%m.%d-%H%M`'' to create hardlinked copies of the current directory. by using this script, we can avoid to use the ''--link-dest'' option of rsync which in turn would make it necessary to at least include the latest completed backup also in the writable share. | * on the offsite server, a script is called (somehow, haven't figured out yet how exactly this will be done) after the rsync from the burp server successfully finished. the script will use ''cp -alx /backups/current /backups/`date +%Y.%m.%d-%H%M`'' to create hardlinked copies of the current directory. by using this script, we can avoid to use the ''%%--%%link-dest'' option of rsync which in turn would make it necessary to at least include the latest completed backup also in the writable share. |
| |
| to try it all out i used a bunch of [[ubuntu test docker image | ubuntu test docker containers]] |
| |
| docker network create burp |
| to create the custom network |
| docker run --net burp --name burpsrv -ti ubuntu-test:latest |
| to create the container for the burp server, and similar commands for the other servers. |