Steve Mysterious <
tink...@gmail.com> writes:
> I am interested in what other people think might be good for me to make regular backups of.
>
Mint 20.2 MATE
I have a 'localhostbak' script that I use nightly to back up the following:
-- Personal /home/<user> directory -
This contains only stuff that I am actively working on, plus personal
documents. I try to keep this directory below about 12GB. These /home
backups are tarred and compressed and those are then split into 2GIG files
that are capable of being transferred on FAT filesystem thumbdrives.
I do not store stuff like photos, music, computer programs sources, magazine
PDFs, etc in my /home directory; they belong in an archive partition, and
are backed up separately on a daily basis.
-- /usr/local directory -
Contains some individual stuff that I like to keep, but not a lot.
-- /etc directory -
Contains most of the system's config files
-- Dump of mysql databases (mainly taxation data, plus a few others) -
-- Personal git repositories -
Contains personal source files
-- Mint/Debian list of installed packages -
Contains both the initial system packages plus my extra Synaptic-loaded
packages.
-- Crontabs -
Both root and personal crontabs.
-- Firewall configuration -
-- EFI partition backup -
I have been known to stuff up my EFI configurations rarely. This has been
worth its weight in gold at those trying times.
Partition table of main system disk -
Just in case I need to reconstruct a damaged partition table. But have never
done that yet.
-- Some other intrinsic info
Not really part of the backup, more for ID purposes when looking at the
backup directory at a later date.
I store these backups in numbered and dated directories that are aged and
removed according to a 'reverse exponential' (for want of a better term)
algorithm. There are more of the recent backups, and fewer of the older
backups. This set goes back almost 10 years, and is stored in only 13
directories:
11G 0000-120623centrepoint
11G 2048-180131centrepoint
16G 2560-190627centrepoint
14G 3072-201120centrepoint
9.6G 3328-210803centrepoint
7.7G 3392-211006centrepoint
8.5G 3424-211107centrepoint
8.5G 3456-211209centrepoint
8.7G 3472-211225centrepoint
8.6G 3476-211229centrepoint
8.6G 3478-211231centrepoint
8.6G 3479-220101centrepoint
8.6G 3480-220102centrepoint
Looking at the 3480-220102centrepoint backup directory, these are the
contents:
-rw-r--r-- 1 root root 30 Jan 2 01:10 backup.time.centrepoint.220102
-rw-r--r-- 1 root root 43K Jan 2 01:39 debian.pkgs.centrepoint.220102
-rw-r--r-- 1 root root 2.3M Jan 2 01:38 etc.centrepoint.220102.tgz
-rw-r--r-- 1 root root 1.3G Jan 2 01:39 git.220102.tgz
-rw-r--r-- 1 root root 2.0G Jan 2 01:35 jvs.centrepoint.220102.tgz-a
-rw-r--r-- 1 root root 2.0G Jan 2 01:36 jvs.centrepoint.220102.tgz-b
-rw-r--r-- 1 root root 2.0G Jan 2 01:36 jvs.centrepoint.220102.tgz-c
-rw-r--r-- 1 root root 1.2G Jan 2 01:36 jvs.centrepoint.220102.tgz-d
-rw-r--r-- 1 root root 1.3K Jan 2 01:10 jvs_crontab.centrepoint.220102
-rw-r--r-- 1 root root 0 Jan 2 01:10 Linux_Mint_20.2_Uma
-rw-r--r-- 1 root root 98M Jan 2 01:10 local.centrepoint.220102.tgz
-rw-r--r-- 1 root root 554 Jan 2 01:39 my_installed_pkgs
-rw-r--r-- 1 root root 3.3M Jan 2 01:10 mysql.centrepoint.220102.sql
-rwxr-xr-x 1 root root 2.6K Jan 2 01:39 new-system-etc-copy
-rw-r--r-- 1 root root 1.9K Jan 2 01:39 partition_tables.centrepoint.220102
-rw-r--r-- 1 root root 4.5K Jan 2 01:10 root_bashrc.centrepoint.220102
-rw-r--r-- 1 root root 2.9K Jan 2 01:10 root_crontab.centrepoint.220102
-rw-r--r-- 1 root root 260M Jan 2 01:38 sda2-EFI.centrepoint.220102.img
-rw-r--r-- 1 root root 1.5K Jan 2 01:39 ufw_status.centrepoint.220102
-rw-r--r-- 1 root root 109 Jan 2 01:39 uname-a.centrepoint.220102
With that stuff backed up, I can rebuild a crashed system disk within less
than 2 hours to get back to how things were at the time of that last backup.
I have done this several times, especially as I prefer to install a new
version of the OS 'from clean' rather than an OS version update.
I mentioned before that the archive directory is where all sorts of 'write
once, keep forever' stuff is stored. (music, photos, computer sources,
videos, print publications, etc, etc, etc) Those directories plus the daily
backups as mentioned above get rsynced daily to several external USB
drives.
Regards,
Jack.
--
"My mother says I don't know what good, clean fun is.
She's right. I don't know what good it is."
- Laugh-In, 1968