My simple backup infrastructure
My simple infrastructure for easy and systematic remote backup of local files.
First, it provides a local directory in which members of the mybackup user group
can write backup files; any kind of file and directory structure is allowed, but
file system and database dumps is what it was made for. Secondly, a cron job
automatically copies the local backup files to a second backup location
(typically on a remote system, and assumed to have ample space) at regular
intervals. Third, old backup files are eventually removed from local storage in
order to put some limit on its size.
Unlike much more sophisticated backup systems which mirror directory trees, and
how they evolve over time, mybackup is intended only as a simple, systematic,
and reusable way to apply cron and rsync.