2 ms·
I have several large(ish) external USB HDDs, and every few days I cycle them around the machines. * On each disk is a directory called "Backups"; * Within tha
by ColinWright 5y ago
I have several large(ish) external USB HDDs, and every few days I cycle them around the machines.
* On each disk is a directory called "Backups";
* Within that is a directory for each machine on my home network;
* Within each of those is a directory for each time of backup;
* Those are named YYYYMMDDhhmmss;
* Every hour I run a script;
* If the most recent backup is on the same day, the script terminates;
* Otherwise the script runs an rsync;
PREV=$( ls ${Machine} | grep ^20 | sort | tail -1 )
THIS=$NOW
rsync -avziPH \
--exclude ".cache" \
--link-dest=../$PREV \
/home \
${Machine}/$THIS
Thus each disk has backups from each machine. Each backup is complete in and of itself, but for unchanged files has a hardlink to the previous version.