Re: Backup/Restore (WAS:Help needed)

2011-03-14 Thread Blair Mason

Mar 14, 2011 04:48:22 AM, balaji.p...@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 Ican install any Open source S/W that can do the above task (something like scheduled backup).
 Thanks in Advance,
 BALAJIYour 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:1. Mount the backup media (I will assume /mnt/bkup, adjust accordingly)2. run something like this:rsync -avz / /mnt/bkup --exclude /mnt/bkupor, if backing up to a server over sshrsync -avz -e ssh / user@hostname:~/backupA restore is as simple booting live media, mounting all your drives the in the same structure (say on /mnt/restore), and thenrsync -av /mnt/bkup /mnt/restoreNow what would be really cool is plan-9 like filesystems so we could rsync over *anything*.Hope this helps!---rbmj


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1500907210.251008.1300104826716.JavaMail.root@vznit170136



Re: Backup/Restore (WAS:Help needed)

2011-03-14 Thread Alex Mestiashvili

On 03/14/2011 01:13 PM, Blair Mason wrote:

Mar 14, 2011 04:48:22 AM, balaji.p...@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:


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*.


Hope this helps!

---
rbmj
-- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with 
a subject of unsubscribe. Trouble? Contact 
listmas...@lists.debian.org Archive: 
http://lists.debian.org/1500907210.251008.1300104826716.JavaMail.root@vznit170136 


I would suggest backuppc .
for step by step installation look at /usr/share/doc/backuppc/ or just 
google for it .


Regards ,
Alex


Re: Backup/Restore (WAS:Help needed)

2011-03-14 Thread Celejar
On Mon, 14 Mar 2011 07:13:46 -0500 (CDT)
Blair Mason r...@verizon.net wrote:

[Please wrap long lines.]

 Mar 14, 2011 04:48:22 AM, balaji.p...@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


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20110314152043.22c4d792.cele...@gmail.com



Re: Backup/Restore (WAS:Help needed)

2011-03-14 Thread Robert Holtzman
On Mon, Mar 14, 2011 at 07:13:46AM -0500, Blair Mason wrote:

  ..snip.

 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:
 
 1. Mount the backup media (I will assume /mnt/bkup, adjust accordingly)
 2. run something like this:
 rsync -avz / /mnt/bkup --exclude /mnt/bkup

This would keep the backup on the hard drive. Not a good idea in case of
a disk failure. Better to a USB drive.

 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

Wouldn't that dump the entire system into /mnt/restore? 

I'll take this opportunity to reveal my ignorance. Up until now I've
never had to restore an entire system. What would happen if I ran, on a
clean install:

rsync -avz /media/disk/backup /? Would that repopulate the existing
directories or would it install the entire system in /, duplicating the
existing directories? 

-- 
Bob Holtzman
Key ID: 8D549279
If you think you're getting free lunch,
 check the price of the beer


signature.asc
Description: Digital signature