Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I need to do a full backup of my 250GB /dev/hdb. The target drive is a brand new 300GB external drive (/dev/hdd).
- Do I need to format the new drive in some particular fashion before I can backup data to it?
- Do I need to match the partition table of the source drive or anything, or will one standard Linux partition of 300GB be sufficient?
- What exactly does dump store on the target drive? Is it just a single massive file you pick apart using restore, or does it just copy the directory structure and files as they are?
Thanks
Last edited by nyle; 02-08-2008 at 09:15 AM.
Reason: dump formatting drive
If you just want to back up the drive, format it with the same filesystem as the source and use rsync to synchronize them. With rsync, updates will complete much faster than with tar, as it only transfers the changes.
rsync can do compression. That the -z option. But that's only compression when in-transfer, so it's only really useful to a remote machine (oh yes, rsync works over ssh as well ). The idea is that the two disks will be identical at the end.
If you just want to back up the drive, format it with the same filesystem as the source and use rsync to synchronize them. With rsync, updates will complete much faster than with tar, as it only transfers the changes.
rsync is definitely a plausible solution, but here is another question:
/dev/hdb consists of several partitions: /hdb1, /hdb2, /hdb3, /hdb5, and /hdb6. In order to use rsync in this manner, do I have to create partitions of identical size on my external drive?
No, rsync operates at the file-system level. I backup my /home and several other partitions to the same filesystem on an external drive on my computer.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.