Hiring Coder who can Make .sh script to sync files on VPS1 to VPS2

Status
Not open for further replies.
7 comments
Perhaps permission problems...

The rsync options chosen are:
-g = preserve group
-o = preserve owner
-p = preserve permissions
-t = preserve modification times
-v = verbose (for the log)
-z = compress files during transfer
There is a similar example to your code: http://ksantema.wordpress.com/2009/...d-cron-to-syncronize-files-between-aix-hosts/

Honestly.... unless you try to explain better how files are "doubled"... and use a little better english is hard have an idea of the problem.
 
Did you checked if dupe files have different owners/group?
Run "ls -la" into /etc folder and check user/group of files (paste here output).
 
As you can see files aren´t exactly doubled, seems that rsync appends "?" at the end of the file name.

Try:
Code:
rsync -goptvz -e ssh /etc/passwd root@xx.xxx.xxx.xxx:/etc/passwd
 
Status
Not open for further replies.
Back
Top