On Fri, 4 Oct 2019 18:08:48 +1000, faeychild wrote:
I have done a little Google searching for rsync
One site suggest the obvious approach of mounting the backup media and running this sort of command
$ sudo rsync -aAXv /
--exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/ lost+found"}
/mnt
fair enough but
I have a question about exclusions
Are not some of the files in /dev and /sys required for boot and need
to be backed up.
Basically, what you are seeing are files that only exist in memory, or dynamically built, usually during boot or media insertion.
If you to not exclude those files, the rsync restore would create the
space on the drive and next boot, would still use the space from ram
and you are just wasting space on the disk.
Your example rsync is for a mounted/running / and I would not depend
on it working well upon a restore. For instance, your sql database
might not restore correctly.
Since I rotate three partitions for / (previous, current, next) installs,
I usually boot the previous install (mga6) and rsync mag7 into my
Production hot backup partition. No excludes required.
I have a nightly cron job checking all /lost+found partitions for any
lost files so I don't bother excluding it.
--- MBSE BBS v1.0.7.12A (GNU/Linux-x86_64)
* Origin: A noiseless patient Spider (2:250/1@fidonet)