Best practice. Securely copy huge directories with all attributes and permitions with rsync command ( linux ).

By neokrates, written on November 18, 2011

howto

  • Join date: 11-30-99
  • Posts: 224
View Counter:
  • 71 views
Rate it
Ad
Poll
  • Which SQL implementations are mostly used in your projects?

    View Results

    Loading ... Loading ...
Feeds:
  • bodytext bodytext bodytext

I have used following form of rsync to copy huge SVN repositories between locations on Linux. My customer uses the results for one year now, so, i guess that is a perfect copy.

Works for:

✔ rsync version 2.6.8 protocol version 29
✔ other stable rsync versions

I definitely recommend rsync and not copy or cp. Advantage of rsync is that if it fails you can continue, or you can copy a source increment later, after source has changed.

> rsync --owner --group --verbose  --progress --stats --recursive --times --perms --links --compress /var/www/dir/source  /mnt/storage/www/dir/destination 

This will also show the progress when it runs….

Be Sociable, Share!
 
Does that help to solve your problem?
VN:F [1.8.5_1061]
Rating: +2 (from 2 votes)
2 votes 'YES'  0 votes 'NO'


TAGS

SOCIAL
Be Sociable, Share!

INCOMING SEARCH TERMS


Leave a Reply