Hi Guros,
I'm trying to write a script to remotely backup a directory on another server (tied by ssh)
When I do the following it doesn't work:
But when i do it this way it works:
Any idea What should be done to make it working using the first command?
Regards,
Khalid
I'm trying to write a script to remotely backup a directory on another server (tied by ssh)
When I do the following it doesn't work:
Code:
tape=$(ssh Machine2 lsdev -C | grep rmt | grep Ultr | cut -d' ' -f1)
ssh Machine2 eval 'cd /; find /bkup \
-print | backup -iqf/dev/$tape.1'
But when i do it this way it works:
Code:
ssh Machine2 'cd /; find /bkup \
-print | backup -iqf/dev/rmt1.1'
Any idea What should be done to make it working using the first command?
Regards,
Khalid