Re: [vox-tech] simple backup and restore

2004-11-01 Thread Jay Strauss
Tim Riley wrote:
Jay Strauss wrote:

Hi,
I just want to do a simple backup, write the backup file to the system
disk or an NFS mount.  Then restore from that file.
I'm not sure what I should backup.  I figure I can exclude: /tmp /dev
/mnt /proc
If I do:
cd /
tar zcvf backup.tar.gz bin boot etc home initrd initrd.img lib media opt
root sbin  srv  sys  usr  var  vmlinuz
How would I restore, such that I get the previous image, and not a
combination of the restored files and the new files?

Instead of backing up individual system files and directories, consider
making an image backup of the entire filesystem:
# dd if=/dev/hda1 bs=10k | gzip  backup.dd.gz
Then upon restore, you're guaranteed to get the previous image.
Thanks Tim,  I tried dd but it was taking forever.  tar took 3.5 minutes 
to write and dd took 15 before I cancelled it.  I'll try again with the 
bs=10k

Jay
___
vox-tech mailing list
[EMAIL PROTECTED]
http://lists.lugod.org/mailman/listinfo/vox-tech


Re: [vox-tech] simple backup and restore

2004-11-01 Thread Jonathan Stickel
I use rsync to keep the entire root filesystem of several computers 
identical.  See this post:

http://lugod.org/mailinglists/archives/vox-tech/2004-03/msg00252.html
You could do similar to backup your entire root.
Jonathan
Ken Herron wrote:
You could use rsync to backup and restore. Rsync has flags to delete 
files from the destination that don't exist in the source.
___
vox-tech mailing list
[EMAIL PROTECTED]
http://lists.lugod.org/mailman/listinfo/vox-tech

___
vox-tech mailing list
[EMAIL PROTECTED]
http://lists.lugod.org/mailman/listinfo/vox-tech


Re: [vox-tech] simple backup and restore

2004-11-01 Thread Jay Strauss
Jonathan Stickel wrote:
I use rsync to keep the entire root filesystem of several computers 
identical.  See this post:

http://lugod.org/mailinglists/archives/vox-tech/2004-03/msg00252.html
You could do similar to backup your entire root.
Jonathan

Thanks Jonathan.  I'll try that, thanks.  Looks like rsync can do a lot
thanks
Jay
___
vox-tech mailing list
[EMAIL PROTECTED]
http://lists.lugod.org/mailman/listinfo/vox-tech


[vox-tech] simple backup and restore

2004-10-31 Thread Jay Strauss
Hi,
I just want to do a simple backup, write the backup file to the system 
disk or an NFS mount.  Then restore from that file.

I'm not sure what I should backup.  I figure I can exclude: /tmp /dev 
/mnt /proc

If I do:
cd /
tar zcvf backup.tar.gz bin boot etc home initrd initrd.img lib media opt 
root sbin  srv  sys  usr  var  vmlinuz

How would I restore, such that I get the previous image, and not a 
combination of the restored files and the new files?

What I want to do is install some software, do a backup, try installing 
some other software, restore to the old backup, try installing again...

Thanks
Jay
___
vox-tech mailing list
[EMAIL PROTECTED]
http://lists.lugod.org/mailman/listinfo/vox-tech