On Thu, 14 Dec 2000, Mina Nozar wrote:
> Hi. I have just started using rsync and have a problem already.
> Am having a problem already...
>
> Am trying to back up the system disk on linux box A to a disk on linux
> box B.
>
> I run the following script on A:
> ===========
> # The name of the backup machine
> BACKUP=B
>
> # List of directories to backup from orion1:
> LIST="boot root var etc dev misc tmp lib usr bin sbin home mnt opt clas
> e852"
>
> # options
> OPTS="-x --verbose --checksum --archive"
>
> for d in $LIST; do
> rsync -e ssh $OPTS /$d/ $BACKUP:/orion1_backup/$d/
> done
> ===========
>
> Well, rsync starts out running but it gets "hung" on some directory or
> file and I have to do a ctrl-c out of it. There are no error messages.
Are you sure it is hanging and not just taking a long time? There is an
option to make rsync print info about what its doing as it does it, you
might want to use it since you are mirroring some big directories.
> I also can't run rsync if I mount B:/orion1_backup on A, changind the
> rsync command to
> rsync $OPTS /$d/ $BACKUP:/orion1_backup/$d/
>
> Is there any other way to bypass the 'typing of the root's passwd on B'
> so I could have this script
> run as a cron job ever day?
Set up ssh to allow passwordless login. Note that this is often a huge
security hole.
Good luck,
Britton