Discussion:
[rsnapshot-discuss] Moving to a new disk
Thierry Lavallee
2015-07-02 05:23:57 UTC
Permalink
Hi, my 500GB destination disk is full.
I need to move it to a 3TB disk.
What is the best method to copy my content from a disk to a new one?
will simple cp do the work?
Thanks
Helmut Hullen
2015-07-02 07:16:00 UTC
Permalink
Hallo, Thierry,
Post by Thierry Lavallee
I need to move it to a 3TB disk.
What is the best method to copy my content from a disk to a new one?
will simple cp do the work?
What works:

Source=/Path/to/old/backup
Target=/Path/to/new/backup
mkdir -p $Target
rsync -axH ${Source}/. ${Target}


I've just transferred a backup with about 1 TByte from one disk to
another, needed more than 1 day.

And you should stop all "rsnapshot" jobs during that time.

Viele Gruesse!
Helmut
Tapani Tarvainen
2015-07-02 07:23:43 UTC
Permalink
Post by Helmut Hullen
Post by Thierry Lavallee
I need to move it to a 3TB disk.
What is the best method to copy my content from a disk to a new one?
will simple cp do the work?
Source=/Path/to/old/backup
Target=/Path/to/new/backup
mkdir -p $Target
rsync -axH ${Source}/. ${Target}
I've just transferred a backup with about 1 TByte from one disk to
another, needed more than 1 day.
And you should stop all "rsnapshot" jobs during that time.
Of course, if you're using LVM you can also use pvmove
and won't need to stop running rsnapshots either.
--
Tapani Tarvainen
David Cantrell
2015-07-02 10:56:59 UTC
Permalink
Post by Helmut Hullen
Hallo, Thierry,
Post by Thierry Lavallee
What is the best method to copy my content from a disk to a new one?
will simple cp do the work?
Source=/Path/to/old/backup
Target=/Path/to/new/backup
mkdir -p $Target
rsync -axH ${Source}/. ${Target}
If you've got GNU cp then cp -a will preserve hard links.

If you use rsync, then consider using -S as well, to get more efficient
handling of sparse files, or even of files that can be made sparse.
--
David Cantrell | http://www.cantrell.org.uk/david

Never attribute to malice that which can be explained by stupidity
-- Hanlon's Razor

Stupidity maintained long enough is a form of malice
-- Richard Bos's corollary
Loading...