* [Matt Brown] 

> With backed up files consisting of hard links, I usually use dd to copy
> the file systems at the block level
>
> # dd if=/dev/sda of=/dev/sdb bs=20M
>
> and then expand the file system. This is because I found that tools like
> rsync, while usually fast, are extremely slow when dealing with millions
> of hard linked files.
>
> This could also be used for btrfs to keep its snapshots.

If you can (temporarily) attach the old and new drives to the same
computer, putting the ext4 BackupPC store on LVM and moving the LV
around might be more convenient, or at least feel more "high level".

For btrfs with lots of snapshots, I believe "btrfs device add" of the
new device followed by "btrfs device remove" of the old one would be the
most convenient.

One advantage of using LVM and btrfs multi device support in this way is
that the actual downtime is minimal -- you can keep the filesystems
online.  Even on cheap hardware, the only downtime should be to
attach/remove disks.

Øystein
-- 
If it ain't broke, don't break it.

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to