Results 1 to 4 of 4

Thread: rsync help

  1. #1
    Join Date
    Sep 2004

    rsync help

    i am transferring cpanel's weekly backup to another backup server. i tried the following:

    rsync -rt --password-file=/root/backuppass --delete --progress /backup/cpbackup/daily/ [email protected]:/home/backup/
    it is working fine except, prompt for password. i have given --password-file=/root/backuppass. password is written there. the single line of content contains only password. no other string there. password is in plain text. why still it asks for password? i want to set it as cron, so i can't enter the password.

    also, I get error when I use --del instead od --delete. --delete removes all files before starting transfer. however as per manual, --del is removes during copy. i get same error in case of --delete-during.

    thanks in advance.

  2. #2
    Join Date
    Mar 2003
    Moved > Technical & Security Issues .
    Specially 4 You
    JoneSolutions.Com ( Jones.Solutions ) is on the net 24/7 providing stable and reliable web hosting solutions and services since 2001

  3. #3
    --password-file is used when connecting to rsyncd.
    It looks like you use rsync over SSH and therefore you are prompted for the SSH password. To solve this and make it work from crontab you should setup keys for the login on the remote backup server, ~/.ssh/authorized_key
    Or make sure rsyncd is running on the remote server and use rsync://... as the destination.

  4. #4
    Join Date
    Aug 2006
    Duluth, GA
    Here is how you create a nologin ssh:

    1) Create the private{4} and public{5} keyssh-keygen -t dsa

    You will be prompted for a key location, the default is fine so just press enter.

    Then you are asked to enter a passphrase. From man ssh-keygen:

    2) Copy the public key to the server (you will need to enter the password):

    cat ~/.ssh/ | ssh [email protected] "cat - >> ~/.ssh/authorized_keys"

    3) That's it, to test it just ssh to the other server and you shouldn't need a password.

    If you entered a passphrase then you need will need to enter it when prompted:

Similar Threads

  1. [Rsync Palace] Remote Rsync Backups.
    By -OY- in forum Other Hosting Offers
    Replies: 8
    Last Post: 12-26-2007, 11:31 PM
  2. [Rsync Palace] Remote Rsync Backups.
    By -OY- in forum Other Hosting Offers
    Replies: 6
    Last Post: 11-25-2007, 06:13 PM
  3. Rsync - $0.0674/GB - Last week - [Rsync Palace]
    By -OY- in forum Other Hosting Offers
    Replies: 6
    Last Post: 07-15-2007, 03:56 PM
  4. Double more space - Rsync Palace - Rsync Backups - $4.95/mo.
    By -OY- in forum Other Hosting Offers
    Replies: 38
    Last Post: 05-18-2007, 10:34 AM
  5. $4.95 - 30 GB - Rsync Backup - Rsync Palace
    By -OY- in forum Other Web Hosting Related Offers
    Replies: 0
    Last Post: 04-28-2007, 01:44 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts