sund / auto-gitlab-backup

A simple script to backup your Gitlab data. This script will copy the backup archives of your gitlab installation via rsync, or scp. Also, you can copy backups to Backblaze’s B2 Cloud Storage service.
http://sund.github.io/auto-gitlab-backup/
GNU General Public License v2.0
317 stars 73 forks source link

How to save ssh remote password? #25

Closed Sub028 closed 8 years ago

Sub028 commented 8 years ago

Hi, first of all, i want to thank you for this helpful script! It works fine manually but each time I launch your script with "/usr/local/sbin/auto-gitlab-backup/auto-gitlab-backup.sh", it asks me the remote ssh password. In fact, I can't find option in "auto-gitlab-backup.conf" which refers to remote password. Is it "rsync_password_file"? Thanks

sund commented 8 years ago

Are you using sshkeys? Make sure the user the cron job runs as has access to the key file.

Sub028 commented 8 years ago

Thanks, it works! By using "ssh-keygen -t rsa" (on local server), i got a ssh public key which i have pasted in "~/.ssh/authorized_keys" (on the remote server).