[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Backup/Restore (WAS:Help needed)



On Mon, 14 Mar 2011 07:13:46 -0500 (CDT)
Blair Mason <rbmj@verizon.net> wrote:

[Please wrap long lines.]

> Mar 14, 2011 04:48:22 AM, balaji.pcat@gmail.com wrote:
> > Hi,
> > I am using Debian Lenny, kernel version: 2.6.26-1-686.
> > I am very new to linux.
> > Can you please let me know the steps for backing up my linux PC (maybe to a CD) and later restoring from it when required.
> > Also let me know if I can install any Open source S/W that can do the above task (something like scheduled backup).
> > Thanks in Advance,
> > BALAJI
> 
> Your best bet would probably be rsync.  You can use it for pretty much anything...  Basically, you use `rsync file dest`.  You also probably want the -avz options.  So, the easiest solution is to just do something akin to the following:

For a longer term solution, a front-end to rsync, such as rsnapshot,
might be easier. 

> 1. Mount the backup media (I will assume /mnt/bkup, adjust accordingly)
> 2. run something like this:
> rsync -avz / /mnt/bkup --exclude /mnt/bkup
> or, if backing up to a server over ssh
> rsync -avz -e ssh / user@hostname:~/backup
> 
> A restore is as simple booting live media, mounting all your drives the in the same structure (say on /mnt/restore), and then
> rsync -av /mnt/bkup /mnt/restore
> 
> Now what would be really cool is plan-9 like filesystems so we could rsync over *anything*.

What kind of 'anything' do you have in mind?

> rbmj

Celejar
-- 
foffl.sourceforge.net - Feeds OFFLine, an offline RSS/Atom aggregator
mailmin.sourceforge.net - remote access via secure (OpenPGP) email
ssuds.sourceforge.net - A Simple Sudoku Solver and Generator


Reply to: