From 1171e455888502f9be46aa3b12a915d3cf2ad103 Mon Sep 17 00:00:00 2001 From: kneutron <50146127+kneutron@users.noreply.github.com> Date: Thu, 6 Jun 2024 10:40:28 -0600 Subject: [PATCH] Create 0HOWTO-install-these-scripts.txt --- 0HOWTO-install-these-scripts.txt | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 0HOWTO-install-these-scripts.txt diff --git a/0HOWTO-install-these-scripts.txt b/0HOWTO-install-these-scripts.txt new file mode 100644 index 0000000..f644352 --- /dev/null +++ b/0HOWTO-install-these-scripts.txt @@ -0,0 +1,29 @@ +Click the green Code button and download the .zip + +https://github.com/kneutron/ansitest/tree/master + +Code: +mkdir -pv /root/bin/boojum + +Put the BKPDEST.mrg in that directory, the rest can run from /root/bin if you want. +Install midnight commander if you want an easy way to copy/move things around (it's also the safest way to recursively delete directories) + +If /root/bin is not already in your PATH ( echo $PATH # to check ) you will need to add something like this to /root/.bashrc: + + +Code: +export PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/usr/local/games:/usr/games:/root/bin:/root/bin/boojum:/usr/X11R6/bin:/usr/NX/bin: + +and then ' source ~/.bashrc '# for it to take effect in the current shell + +For good measure, ' chmod -R 750 /root/bin ' # make scripts executable + +Then you want to edit /root/bin/boojum/BKPDEST.mrg and define the target for your backups. +This will probably also need to be a mountpoint defined in /etc/fstab, unless you're using sshfs. +The BKPDEST will attempt to mount it if it isn't already active. + +This target mountpoint CANNOT be root on the same system (or preferably, not even a separate partition on the same root disk) - needs to be separate media or NAS. +(If your root disk dies, you still want access to the backup.) + +Now, you should be able to run the bkpcrit script. +I recommend that you put it nightly in cron, and also run it ad hoc before ANY system changes - this includes package upgrades.