Linked by Eugenia Loli on Sat 8th Jul 2006 04:54 UTC
General Unix Copying a live file system can be risky, especially if there are open files. You should also be careful to ensure that you don't accidentally overwrite a partition, or existing files, with the files you are trying to copy. With some careful thought, you can effectively migrate files reliably to take advantage of more space, even on a live system.
Thread beginning with comment 141304
To read all comments associated with this story, please click here.
The Correct Answer Was...
by Sphinx on Sat 8th Jul 2006 15:56 UTC
Member since:

cpio. Tar while working would not preserve hard links, handle special files, gives successful error codes, loses entire archive on single error, unless of course someone has fixed it in the last 15 years or more since I last looked.

Reply Score: 1

RE: The Correct Answer Was...
by g2devi on Sun 9th Jul 2006 00:14 in reply to "The Correct Answer Was..."
g2devi Member since:

Another alternative is rsync. It handles hard links and special files and allows you do do incremental backups so you don't have to copy files you've already copied (saving a great deal of time and cpu cycles) and provides an error log of all files that it couldn't copy properly because they were being written to at the time of the copy. I use it on my own system to maintain a mirror system so I can boot off it if ever my main system goes south (it's rare but has happened in the last 5 years). It works without a hitch.

Reply Parent Score: 1