SSTS Blog

Some news and tidbits that we share

Rsync across a network to preserve permissions

by SSTS
SSTS
Server Side Technology Solutions is a consulting firm that specializes in databa
User is currently offline
on Mar 26 in Blog 0 Comments
Recently I had to copy a directory structure including a mysql database. The problem I ran into was permissions were not preserved (despite using the -a option). I then came across an option to sudo which preserved the permissions.
  • time rsync -avh -E --progress --rsync-path="sudo rsync" user@remote_hist:/mnt/database-backups/BAK
Tags: Untagged
Hits: 7951

About the author

SSTS

Server Side Technology Solutions is a consulting firm that specializes in database design, development and support.

Comments

Please login first in order for you to submit comments