Added backup and restore for packages