Re: [Evolution] Running the Evolution Backup plugin from the command line



On Sun, 2011-01-09 at 22:29 -0900, portsample wrote:
I'd like to be able to run the backup-restore plugin as a cron job
periodically. 

This command almost does the trick, 

/usr/lib/evolution/2.32/evolution-backup
--backup /home/portsample/EvolutionBackup_$(date +%T_%F)

Output from the command is:

** Message: evolution --quit
** Message: rm /home/portsample/.local/share/evolution/.running
rm: cannot remove `/home/portsample/.local/share/evolution/.running': No
such file or directory
** Message: gconftool-2 --dump /apps/evolution
/home/portsample/.local/share/evolution/backup-restore-gconf.xml
** Message: cd /home/portsample && tar chf
- .local/share/evolution .config/evolution .camel_certs evolution.dir |
gzip > '/home/portsample/EvolutionBackup_22:04:54_2011-01-09'
tar: .camel_certs: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
** Message: rm /home/portsample/evolution.dir

This command does not exit cleanly back to a shell prompt. 

Any suggestions regarding correcting the two error messages in the
second and third to last lines? 


Well the first one is because Evolution isn't running (the plugin is, of
course, usually run from within Evolution, so it assumes Evolution is
running, which it shouldn't be when it's being backed up).

The second is because a directory doesn't exist (~/.camel_certs).

Both errors are fairly benign and my guess is that it doesn't affect the
actual backup.  The second one is probably the one likely to cause
problems, just create the directory and it will go away (i.e. mkdir
~/.camel_certs).

P.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]