Backup entire system on usb disk

Gilboa Davara gilboad at gmail.com
Tue Jan 23 17:38:24 UTC 2007


On Tue, 2007-01-23 at 18:10 +0100, Zacharie Elcor wrote:
> Hi all, 
> 
> I made a fedora install on a bootable usb disk to have a system backup
> in case my laptop internal disk crashes.
> This works ok but I'd like to be able to perform regular updates of
> the usb disk (including packages installed or updated by yum and
> personal files) so that the usb disk is almost up to date when I boot
> on it. 
> Does it make sense to rsync the entire file system ? I think some
> directories shouldn't be copied this way (eg /boot, /dev).
> 
> Thanks in advance for help or links.
> 
> -- 
> fedora-list mailing list
> fedora-list at redhat.com
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

I'd use tar once in a while.

$ mkdir /mn/backup
$ mount /dev/sda1 /mnt/backup
$ tar -cvzpf backup-$(date +"%Y-%m-%d").tgz --exclude=dev/*
--exclude=proc/* --exclude=sys/* --exclude=tmp/* --exclude=media/*
--exclude=autofs/* --exclude=mnt/* 
$ umount /mnt/backup

- Gilboa





More information about the users mailing list