Re: quick and dirty backup

2012-02-21 Thread Jon Dowland

On 20/02/12 15:54, Rob Owens wrote:

I'd also exclude lost+found


If there's anything in there, then it could have been recovered from 
anywhere on the filesystem, and could be valuable.  I'd include it.



--
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/4f436372.3030...@debian.org



Re: quick and dirty backup

2012-02-20 Thread Claudius Hubig
Hey,

Bonno Bloksma b.blok...@tio.nl wrote:
   tar -zcf /mnt/backup/linXXX-lenny.tar.gz / --exclude /mnt --exclude 
 /proc --exclude /sys
Is there anything else I need to exclude? Using Lenny with kernel 2.6.26-2-686 
it seems my backup is running forever

I would suggest also excluding /dev, /tmp, /var/tmp and maybe /media, depending 
upon your needs.

Best regards,

Claudius
-- 
Your step will soil many countries.
Please use GPG: ECB0C2C7 4A4C4046 446ADF86 C08112E5 D72CDBA4
http://chubig.net/ http://nightfall.org



-- 
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/20120220154807.59042...@ares.home.chubig.net



Re: quick and dirty backup

2012-02-20 Thread Rob Owens
On Mon, Feb 20, 2012 at 03:48:07PM +0100, Claudius Hubig wrote:
 Hey,
 
 Bonno Bloksma b.blok...@tio.nl wrote:
tar -zcf /mnt/backup/linXXX-lenny.tar.gz / --exclude /mnt --exclude 
  /proc --exclude /sys
 Is there anything else I need to exclude? Using Lenny with kernel 
 2.6.26-2-686 it seems my backup is running forever
 
 I would suggest also excluding /dev, /tmp, /var/tmp and maybe /media, 
 depending upon your needs.
 
I'd also exclude lost+found

-Rob


-- 
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/20120220155426.gc24...@aurora.owens.net



Re: quick and dirty backup

2012-02-20 Thread keitho
I found this webpage useful for describing how to use tar for full backups:

http://www.aboutdebian.com/tar-backup.htm

Keith Ostertag


 On Mon, Feb 20, 2012 at 03:48:07PM +0100, Claudius Hubig wrote:
 Hey,

 Bonno Bloksma b.blok...@tio.nl wrote:
tar -zcf /mnt/backup/linXXX-lenny.tar.gz / --exclude /mnt
 --exclude /proc --exclude /sys
 Is there anything else I need to exclude? Using Lenny with kernel
 2.6.26-2-686 it seems my backup is running forever

 I would suggest also excluding /dev, /tmp, /var/tmp and maybe /media,
 depending upon your needs.

 I'd also exclude lost+found

 -Rob




--
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/111f3c4a557a4ea0bc50f314a9fbb14b.squir...@webmail.strucktower.com



Re: quick and dirty backup

2012-02-20 Thread Marc Auslander
Bonno Bloksma b.blok...@tio.nl writes:

 Hi,

 My Debian machines have almost no data, just packages and config files. Just 
 before a major upgrade, and a few othe times, I'd like to have a quick and 
 dirty backup of most files including logfiles, run files like dhcp.leases 
 etc. So what I do is a simple:
tar -zcf /mnt/backup/linXXX-lenny.tar.gz / --exclude /mnt --exclude 
 /proc --exclude /sys
 A while ago I noticed I needed to add the /sys directory to that exclusion.

 Is there anything else I need to exclude? Using Lenny with kernel 
 2.6.26-2-686 it seems my backup is running forever but maybe I'm just 
 impatient. ;-)
 I am going to upgrade this system to Squeeze later today so the kernel will 
 probably end up being 2.6.32-5-686 at the end of the day.

 Bonno


What I do is to tar just the root filesystem, not the stuff mounted on
top of it.  You can either use --one-file-system option, or bind mount
root someplace else and to the tar there.  I just tar everything,
since it's not really that big.

I have restored and booted root's saved this way and it works.


-- 
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/87ehtp5o0w@aptiva.optonline.net



Re: quick and dirty backup

2012-02-20 Thread David Christensen

On 02/20/2012 05:40 AM, Bonno Bloksma wrote:
 My Debian machines have almost no data, just packages and config 
files. Just before a major upgrade, and a few othe times, I'd like to 
have a quick and dirty backup of most files including logfiles, run 
files like dhcp.leases etc. So what I do is a simple:
 tar -zcf /mnt/backup/linXXX-lenny.tar.gz / --exclude /mnt 
--exclude /proc --exclude /sys


Given the above tarball and a blank hard drive, have you created a 
functionally-equivalent system to what you started with?  E.g. have you 
validated your recovery process?



My approach is to put the O/S, applications, configuration files, etc., 
on one hard drive (system drive), put pictures, music, video, etc., on a 
second drive (data drive), use Norton Ghost 2003 to take/ restore images 
of the system drive as desired (after a fresh installation, prior to 
upgrades, etc.), and Perl-driven tar/ gzip/ rsync to do daily backups of 
/home, data, etc..  I assume FOSS tools may be used instead of Ghost 
2003, but if it ain't broke...



Backup  Recovery Inexpensive Backup Solutions for Open Systems is a 
worthwhile purchase and read:


http://shop.oreilly.com/product/9780596102463.do


HTH,

David


--
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/4f42a55d.4070...@holgerdanske.com