Home
| Calendar
| Mail Lists
| List Archives
| Desktop SIG
| Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings Linux Cafe | Meeting Notes | Linux Links | Bling | About BLU |
HI Everyone, I hate to post this in here, but I've been working on this for some time without a resolution. My problem is that when this program is executed by the super user, I'm always prompted for a password when the RSYNC connection is trying to be made. If I execute as non super user (ADMINISTRATOR), the archive is not created. *#!/bin/bash* * * *clear* *echo ---------------------------------------- >>/backup/backup.log* *echo BACKUP START `date` >> /backup/backup.log* *echo "Removing files older than five days (from today's date " `date +%Y-%m-%d` " )"* *find /backup/BACKUP* -mtime +5 -exec rm {} \;* * * *echo "Performing backup now..."* *tar -cvvf BACKUP-NEDS-LX-1-`date +%Y-%m-%d`.tar.gz /home >/dev/null 2>&1* *echo BACKUP END `date` >>/backup/backup.log* *echo* *echo "Local backup complete!"* *echo RSYNC START `date` >>/backup/backup.log* *echo "Begin RSYNC"* *#rsync -e ssh -varuzP /backup/ carn-use-lx-1:/backup/* *#rsync -e ssh -varuzP /backup/ administrator-Q0ErXNX1RuYmaKRe3I/nfg at public.gmane.org:/backup/ >> /backup/backup.log* *#rsync -e ssh -varuzP /backup/BACKUP-NEDS-LX-1-`date +%Y-%m-%d`.tar.gz administrator-Q0ErXNX1RuYmaKRe3I/nfg at public.gmane.org:/backup/* *#rsync -e ssh --password-file=/etc/.rsyncpassword -varuzP /backup/backup.log administrator-Q0ErXNX1RuYmaKRe3I/nfg at public.gmane.org:/backup/* *rsync -e ssh -varuzP /backup/BACKUP-NEDS-LX-1-`date +%Y-%m-%d`.tar.gz administrator-Q0ErXNX1RuYmaKRe3I/nfg at public.gmane.org:/backup/* *echo RSYNC END `date` >> /backup/backup.log* *echo ---------------------------------------- >>/backup/backup.log* Any thoughts about : A) How I could either give the administrator permission to backup the /home folder or B) Have the Rsync process know the password for the Administrator account so I'm not always prompted? Thanks!
BLU is a member of BostonUserGroups | |
We also thank MIT for the use of their facilities. |