RSync backup issue

Chris O'Connell omegahalo-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Thu Nov 12 15:14:15 EST 2009


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!





More information about the Discuss mailing list