I use rsync to back up certain folders. I'm OK with re-installing Linux if my hard drive crashes.
A snapshot of your computer with dd, pv and gzip - Part 1
11–20 of 34 posts
Re: A snapshot of your computer with dd, pv and gzip - Part 1
#12Consider using Clonezilla [1] instead. While dd will produce a sector-by-sector image of your medium (which can be terribly inefficient if you're using considerably less than 100% of its available space) Clonezilla is file system-aware for a number of common file systems and has built-in support for compression as well. It resembles the recently discontinued Norton Ghost this way but is fully FOSS. I normally run it…
Re: A snapshot of your computer with dd, pv and gzip - Part 1
#13On the restore side, you can just use pv like cat, and don't have to provide a size param:
pv my.img.gz | pigz -d | dd (or hopefully tar xf - instead)...
In an ideal world a tool like pv could just look at /proc/fd/fdinfo/ instead of shuffling all the data through itself but I haven't found a tool that clever yet.Re: A snapshot of your computer with dd, pv and gzip - Part 1
#14Re: A snapshot of your computer with dd, pv and gzip - Part 1
#15I just use BackInTime though, like TimeMachine I guess. It's really, really useful.
Re: A snapshot of your computer with dd, pv and gzip - Part 1
#16Consider using Clonezilla [1] instead. While dd will produce a sector-by-sector image of your medium (which can be terribly inefficient if you're using considerably less than 100% of its available space) Clonezilla is file system-aware for a number of common file systems and has built-in support for compression as well. It resembles the recently discontinued Norton Ghost this way but is fully FOSS. I normally run it…
I'd also recommend SysRescueCD that has these types of tools ready to be used as a bootable USB/CDrom image. http://www.sysresccd.org/System-tools I've used the imaging tools on the boot cd a few times to clone/restore hosts a few times without any issues. Very handy.
Re: A snapshot of your computer with dd, pv and gzip - Part 1
#17(1) Defrag - built-in / maybe SysInternals contig http://technet.microsoft.com/en-us/sysinternals/bb897428
(2) Defrag the page file - SysInternals PageDefrag http://technet.microsoft.com/en-us/sysinternals/bb897426
(3) Zero unused space - SysInternals SDelete http://technet.microsoft.com/en-us/sysinternals/bb897443.asp...
(4) Shrink volume (if backup is filesystem-aware, and disk is one large volume) - http://technet.microsoft.com/en-us/magazine/gg309169.aspx
(5) After transfer, expand volume to fit target disk
Pretty much any utility automating these steps is acquired by the various virtualization vendors, or heads directly to the enterprise market (kind of like how inexpensive screencast creation software always disappears!).
Re: A snapshot of your computer with dd, pv and gzip - Part 1
#18dd if=/dev/da0 | ssh user@rsync.net "dd of=backup.dd"
or maybe:
pg_dump -U postgres db | ssh user@rsync.net "dd of=db_dump"
Re: A snapshot of your computer with dd, pv and gzip - Part 1
#19This is an incredibly naive way of backing up your system. I use rsync to back up certain folders. I'm OK with re-installing Linux if my hard drive crashes.
Re: A snapshot of your computer with dd, pv and gzip - Part 1
#20I don't always backup an entire system with 'dd', but when I do: dd if=/dev/da0 | ssh user@rsync.net "dd of=backup.dd" or maybe: pg_dump -U postgres db | ssh user@rsync.net "dd of=db_dump"