[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Migrate OS to smaller drive?



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Sjoerd Hardeman wrote:
> Clive McBarton schreef:
>> Sjoerd Hardeman wrote:
>>> mount the new device (mount -odev /dev/newdevice), and do a
>>>  rsync -ax / /media/newdevice.
>> What exactly is the advantage of this approach over "cp -a" or "mv"?
> Added to the points others make the "don't cross filesystem
> borders"-option (-x), which makes it useful for the task at hand. Then
> again, now probably somebody will reply that cp can do that too...

Indeed. The option for cp even has exactly the same name as the option
for rsync, namely "-x" or "--one-file-system".
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkvDqfcACgkQ+VSRxYk4409OSwCfQUbrWYLwoNQME/98sIdFSzNd
Y+4AnRkojnSeHm77jVJzPi1g497+U+Yp
=VbRe
-----END PGP SIGNATURE-----


Reply to: