Rsync Error!

Posted by rkm11, 09-16-2007, 12:26 AM
I type rsync and after the man page, it says Any Ideas? Thanks! Ryan

Posted by tanfwc, 09-16-2007, 01:03 AM
what the command you type?

Posted by david510, 09-16-2007, 02:58 AM
Try this command. To copy /path/to/directory/file to /path/to/directory/ on remote server. rsync -avz -e ssh /path/to/directory/file root@domain.com:/path/to/directory/

Posted by foobic, 09-16-2007, 03:04 AM
That appears to be a bug in rsync (but a very minor one) when you type just "rsync". As David suggests, use the full command: "rsync [options] source destination".

Posted by rkm11, 09-16-2007, 11:06 AM
I'm attempting to run a PHP script that stores the daily backups for WHM to each of their days (folder under daily, monday, tuesday, wednesday...) When I run it (php -f 5day.php), I get the man page for rsync, and at the end: Thanks Ryan

Posted by foobic, 09-16-2007, 06:49 PM
Take out the line breaks in your rsync commands. I suspect it's not going to do what you want though - do you really want to copy everything from the daily directory (including the daily/monday daily/wednesday etc. directories)?

Posted by rkm11, 09-16-2007, 07:14 PM
Ah, dua Works. Yes, it does what it should, and as you described. How can I change this so it connects to a remote server and copies the files? I'm new to rsync. Thanks Ryan

Posted by foobic, 09-16-2007, 07:18 PM
To connect automatically to a remote server you'll need to set up ssh access with keys. This is a good tutorial.

Hjalp dette svar dig?

 Print denne artikel

Læs også

beating my head over a php/my_sql error

Posted by star_dancer, 01-16-2008, 06:15 PMI'm getting an error and I can't figure it out. I...

upgrade MySql and PHP

Posted by paul-naama, 09-16-2007, 04:55 AMApparently because i wanted LXADMIN HIAB they had to...

Protection against shell scripts ?

Posted by bin_asc, 09-14-2007, 12:24 PMI was wondering how do you guys protect your servers...

Domain names diferent servers.

Posted by shakybaky, 06-26-2008, 02:34 PMhello i have two nix vps's One of the vps is setup and...

Drop-down header (yahoo like?)

Posted by coume, 03-13-2010, 07:40 AMHello, I struggled to find the right title for the thread...