interact333
MIS
I'm trying a crate a script to backup a database and send a copy to a remote AIX system using backsnap and ssh
I've tried
backsnap -R -m /tmp/snapshot -s size=16M -0 -f /snapbup/test.bak /snapdir #create the backsnap by i-node
cat /snapbup/test.bak | ssh root@remote " ( cd /test; restore -xvaf - ) " #restore to remote system
backsnap -R -m /tmp/snapshot -s size=16M -i -f /snapbup/test.bak /snapdir #create the backsnap by name
cat /snapbup/test.bak | ssh root@remote " ( cd /test; restore -xvaf - ) " #restore to remote system
The backsnap by i-node works fine, however the restore fails with restore: 0511-123 The volume on - is not in backup format.
The backsnap by name prompts for Mount volume 1 on /snapbup/test.bak. Press Enter to continue. The restore works fine.
Can anyone workout why my i-node restore fails or how to bypass my press enter to continue in the backsnap by name.
I've tried
backsnap -R -m /tmp/snapshot -s size=16M -0 -f /snapbup/test.bak /snapdir #create the backsnap by i-node
cat /snapbup/test.bak | ssh root@remote " ( cd /test; restore -xvaf - ) " #restore to remote system
backsnap -R -m /tmp/snapshot -s size=16M -i -f /snapbup/test.bak /snapdir #create the backsnap by name
cat /snapbup/test.bak | ssh root@remote " ( cd /test; restore -xvaf - ) " #restore to remote system
The backsnap by i-node works fine, however the restore fails with restore: 0511-123 The volume on - is not in backup format.
The backsnap by name prompts for Mount volume 1 on /snapbup/test.bak. Press Enter to continue. The restore works fine.
Can anyone workout why my i-node restore fails or how to bypass my press enter to continue in the backsnap by name.