Scheduling via launchd #64
polkwagner
started this conversation in
General
Replies: 4 comments
-
@polkwagner: Did you ever figure this out? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Nope. Never did.
Polk Wagner
Professor of Law ▪︎ University of Pennsylvania Law School
+1 215 917 6825
***@***.***
…On Fri, Oct 18, 2024 at 11:55 AM, Michael Sewell ***@***.***> wrote:
@polkwagner <https://github.com/polkwagner>: Did you ever figure this out?
—
Reply to this email directly, view it on GitHub
<#64 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BE3WPWC4PQUWYWEQSCFOYPDZ4EVNPAVCNFSM6AAAAABQGHVET6VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAOJYGU2DCMA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
0 replies
-
I got it to work on my machine by explicitly adding the path to the database file as an argument to <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.msewell.evernote-backup</string>
<key>ProgramArguments</key>
<array>
<string>/opt/homebrew/bin/evernote-backup</string> <!-- In my case, evernote-backup was installed using homebrew -->
<string>sync</string>
<string>--database</string>
<string>/Users/my_username/path/to/en_backup.db</string>
</array>
<key>StartInterval</key>
<integer>86400</integer> <!-- Runs every 24 hours -->
<key>RunAtLoad</key>
<true />
</dict>
</plist>
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you. I will give that a try!
Polk Wagner
Professor of Law ▪︎ University of Pennsylvania Law School
+1 215 917 6825
***@***.***
…On Thu, Oct 24, 2024 at 1:12 PM, Michael Sewell ***@***.***> wrote:
I got it to work on my machine by explicitly adding the path to the
database file as an argument to sync.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.msewell.evernote-backup</string>
<key>ProgramArguments</key>
<array>
<string>/opt/homebrew/bin/evernote-backup</string> <!-- In my case, evernote-backup was installed using homebrew -->
<string>sync</string>
<string>--database</string>
<string>/Users/my_username/path/to/en_backup.db</string>
</array>
<key>StartInterval</key>
<integer>86400</integer> <!-- Runs every 24 hours -->
<key>RunAtLoad</key>
<true />
</dict>
</plist>
—
Reply to this email directly, view it on GitHub
<#64 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BE3WPWEYWFGVC6B4QP4WCZLZ5ES7NAVCNFSM6AAAAABQGHVET6VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCMBUGM3DMNQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm having trouble getting the backup to run via schedule. I have created a launchAgent .plist, as follows:
I have loaded the .plist using launchctl. All seems fine. But then nothing. The DB does not get touched.
Everything works fine when I run manually from the terminal.
OSX 14.2.1 / installed via Homebrew.
Any advice?
Beta Was this translation helpful? Give feedback.
All reactions