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

By neokrates, written on November 18, 2011

howto

Rate it
  • 1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
    Loading ... Loading ...
Ad
Poll
  • Who manages CI environment in your enterprise?

    • We don't use CI (92%, 11 Votes)
    • Dedicated person per team, teams decide on their own (8%, 1 Votes)
    • Everyone who can (0%, 0 Votes)
    • Employee, single Release or Config Manager (0%, 0 Votes)
    • Contractor, single Release or Config Manager (0%, 0 Votes)
    • Team, Release or Config Management (0%, 0 Votes)
    • External partner manages our CI (0%, 0 Votes)
    • Different answer (0%, 0 Votes)

    Total Voters: 12

    Vote

    Loading ... Loading ...
Feeds:
  • bodytext bodytext bodytext
Most popular search terms:

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:

[v] rsync version 2.6.8 protocol version 29
[v] 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….

 
Does that help to solve your problem?
VN:F [1.8.5_1061]
Rating: +1 (from 1 vote)
1 votes 'YES'  0 votes 'NO'

LEARN MORE (amazon bookstore)

TAGS

RELATED
Pages
Posts
    nope :(

SOCIAL
Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • bodytext
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • BlinkList
  • Blogosphere News
  • E-mail this story to a friend!
  • Furl
  • LinkArena
  • Live
  • MisterWong
  • Print this article!
  • StumbleUpon
  • Technorati
  • Webnews.de
  • YahooMyWeb

INCOMING SEARCH TERMS


Leave a Reply