Syncing Directories
Peter Gordon
peter at thecodergeek.com
Wed Apr 19 04:43:46 UTC 2006
[ CC: fedora-list, in case others are having similar troubles.]
Kostas Sfakiotakis wrote:
> > Assume that we have two directories on the very same host .
> one is
> /home/root/sources/ and the other one
> /mnt/OldDisk/root/sources
>
> and we want to sync those two .
>
> Are you suggesting that
>
> rsync /home/root/sources localhost:/mnt/OldDisk/root/sources/
>
> will do what we want ?
Pretty much. :)
I use the following:
$ rsync --archive --delete --sparse --stats /path/to/source /path/to/destination
Take a look at the rsync(1) man page for more information about its options and
parameters:
$ man 1 rsync
Hope that helps.
--
Peter Gordon (codergeek42)
GnuPG Public Key ID: 0xFFC19479 / Fingerprint:
DD68 A414 56BD 6368 D957 9666 4268 CB7A FFC1 9479
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 254 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20060418/5b15b6c3/attachment-0001.sig>
More information about the fedora-list
mailing list