Another Ubuntu question from me - backup partition

Soldato
Joined
2 May 2004
Posts
19,950
Hi,

I just wondered how I make a backup partition so that if I do completley mess up Ubuntu I can login to the shell during startup and restore a complete backup from a /backup partition.

Thanks,
Craig.
 
don't know why you'd want to tbh, esp if the backup partition is to be on the same hard drive as your system.

I tend to set up machines with a seperate /home partition, that way I can safely hose the system or install a fresh system, even install a completely different distro and the stuff in /home won't be touched :)

Although to answer you're original question, probably the best way to do it is to set up a cron job to dd or copy the directories/partitions you're wanting to backup, preferably to a separate hard disk or even to a separate machine using scp/rcp.
 
M0KUJ1N said:
don't know why you'd want to tbh, esp if the backup partition is to be on the same hard drive as your system.

I tend to set up machines with a seperate /home partition, that way I can safely hose the system or install a fresh system, even install a completely different distro and the stuff in /home won't be touched :)

Although to answer you're original question, probably the best way to do it is to set up a cron job to dd or copy the directories/partitions you're wanting to backup, preferably to a separate hard disk or even to a separate machine using scp/rcp.

True, not much point if it's on the same disk as I can always easily start just the terminal or boot Ubuntu from CD to restore the backup. If the HDD failed I'd loose it all even with separate partitions.

I've got the backup on a different PC at the moment, I guess that's the best way to do it.

I guess to partition my main drive I'd need to boot Ubuntu from CD so that nothing's using the hard drive?
 
Back
Top Bottom