OK, I know the default behavior of HotSync is to back up databases. I wish
to not have this behavior. Lets just say that I don't want hotsync to back
up a certain database that my palm application creates... ever. So in the
hotsync application (on the device) under Conduit setup, I uncheck all the
check boxes. As I understand it, this means not to back up any databases. I
know, we are weird. No backups. I just don't want them back up. Again, EVER!
Anyhow, I deleted all my pdbs from my backup dir (on the PC) and did a
hotsync and viola, there they were. But again, I didn't want them backed up.
So then I changed my application to remove the dmHdrAttrBackup bit using
this bit o' code.....
UInt attr = 0;
iErr = DmDatabaseInfo( 0, m_dbID, NULL, &attr, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL);
if (!iErr)
{
attr &= ~dmHdrAttrBackup;
DmSetDatabaseInfo( 0, m_dbID, NULL, &attr, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL );
}
I then deleted my pdbs and I did a hotsync and once again, like David
Copperfield's magic, they all appeared. I would at least have hoped a that
the one db I changed the attribute on wouldn't have. So my question my
fellow guru's, what the 'f' do I need to do so that no db's get backed up
from my palm to my PC.
Thanks
Ralph Krausse
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/