Backups: Difference between revisions
No edit summary |
No edit summary |
||
| Line 4: | Line 4: | ||
<li><strong>Operational</strong>: Routine (e.g. daily) backups - especially in a networked multi-user environment for operational resiliency and efficiency</li> | <li><strong>Operational</strong>: Routine (e.g. daily) backups - especially in a networked multi-user environment for operational resiliency and efficiency</li> | ||
<li><strong>File</strong>: "Full" file system archive to online storage before re-building a host (completely reformatting disks and partitions)</li> | <li><strong>File</strong>: "Full" file system archive to online storage before re-building a host (completely reformatting disks and partitions)</li> | ||
<li><strong>System Image</strong>: A complete operating system image to allow either cloning to new hardware, or full system restoration</li> | <li><strong>System Image</strong>: A complete operating system image to allow either [[cloning]] to new hardware, or full system restoration</li> | ||
</ol> | </ol> | ||
== Example Use Cases == | == Example Use Cases == | ||
| Line 86: | Line 86: | ||
shows you what file system types are supported under your currently running kernel | shows you what file system types are supported under your currently running kernel | ||
So if you've identified the disks you want to backup, and mounted them, you also need to be aware of the parts you DO NOT want to backup. On a Linux system, the list of EXCLUSIONS would include | So if you've identified the disks you want to backup, and mounted them, you also need to be aware of the parts you DO NOT want to backup. On a Linux system, the list of EXCLUSIONS would include | ||
* /proc/ | * /proc/ | ||
* /tmp/ | * /tmp/ | ||
* /sys/ | * /sys/ | ||
<source lang="bash"> | <source lang="bash"> | ||
sudo rsync -ravlHz --progress --stats --exclude=/mnt/usbdrive/* --exclude=tmp*** --exclude=/proc/** --exclude=/sys/** --cvs-exclude --dry-run / /mnt/usbdrive/backups/liberty | sudo rsync -ravlHz --progress --stats --exclude=/mnt/usbdrive/* --exclude=tmp*** --exclude=/proc/** --exclude=/sys/** --cvs-exclude --dry-run / /mnt/usbdrive/backups/liberty | ||
</source> | </source> | ||
I added the --dry-run option in there because you should always test first, and because I do not want anyone blindly copy and pasting this command without testing and tweaking it. | I added the --dry-run option in there because you should always test first, and because I do not want anyone blindly copy and pasting this command without testing and tweaking it. | ||
== System Image aka Backups for Disaster Recovery == | == System Image aka Backups for Disaster Recovery == | ||
So, when it came to using a backup program, I chose [http://www.mondorescue.org/index.html Mondo Rescue] because it can backup to CD, DVD, disk (e.g. external USB drive) or other mediums like tape drives. Plus, it can create a restore disk for you which is what I want... in the case of catastrophic system failure, I want to be able to recreate my computer on new hardware. | So, when it came to using a backup program, I chose [http://www.mondorescue.org/index.html Mondo Rescue] because it can backup to CD, DVD, disk (e.g. external USB drive) or other mediums like tape drives. Plus, it can create a restore disk for you which is what I want... in the case of catastrophic system failure, I want to be able to [[cloning|recreate my computer on new hardware]]. | ||
I have an external USB hard drive with a terabyte of storage that I have mounted at /media/disk | I have an external USB hard drive with a terabyte of storage that I have mounted at /media/disk | ||