Create a directory called /amandamove to hold amanda files during the upgrade:
[root@vmredhatclient ~]# mkdir /amandamove
Run this command on the backup server to determine where the gnutar-lists are placed on the client:
-sh-3.00$ amadmin x version | grep listed_incr_dir listed_incr_dir="/var/lib/amanda/gnutar-lists"
Tar up the gnutar-lists usually located in /usr/local/var/amanda in to the /amandamove directory:
[root@vmredhatclient gnutar-lists]# tar -cvf /amandamove/gnutar_list.tar * vmredhatclient.zmanda.com_boot_0.new [root@vmredhatclient gnutar-lists]#
Copy the /var/lib/amanda/.amandahost to /amandamove:
[root@vmredhatclient gnutar-lists]# cp /var/lib/amanda/.amandahosts /amandamove
Remove the old user amanda from the passwd and shadow files:
[root@vmservercomm ~]# cat /etc/passwd | grep amanda amanda:x:501:6::/var/lib/amanda:/bin/bash [root@vmservercomm ~]# cat /etc/shadow | grep amanda amanda:!!:13276:0:99999:7:::
Remove the old user amanda from the groups:
disk:x:6:root,amanda
Locate the existing amanda rpm packages:
[root@vmredhatclient ppragin]# rpm -q amanda amanda-2.4.5-2 [root@vmredhatclient ppragin]# rpm -q amanda-client amanda-client-2.4.5-2 [root@vmredhatclient ppragin]# rpm -q amanda-server package amanda-server is not installed [root@vmredhatclient ppragin]#
Uninstall the existing amanda rpm packages:
[root@vmredhatclient ppragin]# rpm -e amanda-2.4.5-2 error: Failed dependencies: libamanda-2.4.5.so is needed by (installed) amanda-client-2.4.5-2.i386 amanda = 2.4.5 is needed by (installed) amanda-client-2.4.5-2.i386 [root@vmredhatclient ppragin]# rpm -e amanda-client-2.4.5-2 warning: /etc/xinetd.d/amanda saved as /etc/xinetd.d/amanda.rpmsave [root@vmredhatclient ppragin]# rpm -e amanda-2.4.5-2 warning: /var/lib/amanda/.amandahosts saved as /var/lib/amanda/.amandahosts.rpmsave [root@vmredhatclient ppragin]#