On Sun, Jan 21, 2007 at 09:04:08AM -0500, Jeff Abrahamson wrote:
> On every sync, jpilot-backup reports "Backup: Can't get last backup
> time." and does a backup.
>
> I sync daily.
>
> This behavior began a week ago when I moved $HOME/.jpilot/ to a new
> hard drive using rsync (from my laptop, which had been in a different
> time zone). The data appears to be the same, except that this
> behavior began.
The LatestArchive directory is actually a symlink to, well, the latest
Archive_xxx directory. If it is an actual directory instead of a
symlink, which could easily happen by moving the .jpilot directory with
rsync, then jpilot-backup would report the above message.
You can verify whether this is the problem with the following command:
ls -l ~/.jpilot/Backup
If LatestArchive is a symlink, it will look something like this:
lrwxrwxrwx 1 jday users 27 2007-01-19 16:53 LatestArchive ->
[EMAIL PROTECTED]:53:13
Otherwise, it will look just like another directory.
If LatestArchive is an actual directory, you can fix it by renaming it
and creating a symlink to the latest Archive directory. E.g.:
$ cd ~/.jpilot/Backup
$ mv LatestArchive LatestArchive.backup
$ ls -1
$ ln -s '[EMAIL PROTECTED]:55:37' LatestArchive
In the ln command above, you should use the latest Archive_xxx directory
as the target (and don't forget the single quotes). The "ls -1" command
will show the latest Archive directory at the bottom.
Thank you for reporting this. Obviously, I need to be a little more
careful about checking the symlink and return a more meaningful message
in this case.
Thanks,
Jason
--
Jason Day jasonday at
http://jasonday.home.att.net worldnet dot att dot net
"Of course I'm paranoid, everyone is trying to kill me."
-- Weyoun-6, Star Trek: Deep Space 9
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]