• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

rsync help

Solidus

Well-known member
#1
Hey all.

I want to backup my forum to my backup server, but file permissions are not being copied. Here's the command,

Code:
rsync -arvz -e 'ssh -p xx' --progress  testing/ root@1.1.1.1:/foo/bar/backup/
Secondly, which method do you think is best?
1: rsync'ing the entire httpdocs uncompressed, I believe rsync ignores files which haven't changed so after the 1st run I'm only syncing files from XF updates/plugin updates.

2: gzip httpdocs and rsync that over, just 1 file.

what's better?

Thanks.
 

Mouth

Well-known member
#2
Never parse your ssh password in a cron or job command line, it will show on a processlist !
Never parse your ssh password in a cron or job command line, it will show on a processlist !


Option 1 is best, will save processing and bandwidth

I use
rsync -a --delete -e ssh
 
Last edited:

Solidus

Well-known member
#4
My understanding is that --password-file=pass.txt is the best option, correct?
Or maybe -i to include the private ssh key?
 

WSWD

Well-known member
#7
-p, --perms preserve permissions
-o, --owner preserve owner (root only)
-g, --group preserve group
-D, --devices preserve devices (root only)
-t, --times preserve times