diff options
Diffstat (limited to 'packages/meshbay-hub/src/meshbay_hub/static/phone-sync.js')
| -rw-r--r-- | packages/meshbay-hub/src/meshbay_hub/static/phone-sync.js | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/packages/meshbay-hub/src/meshbay_hub/static/phone-sync.js b/packages/meshbay-hub/src/meshbay_hub/static/phone-sync.js index 2c34af0..dcfb6f9 100644 --- a/packages/meshbay-hub/src/meshbay_hub/static/phone-sync.js +++ b/packages/meshbay-hub/src/meshbay_hub/static/phone-sync.js @@ -1,7 +1,8 @@ -// Contacts and messages backup: a copy of this phone's address book, and the -// text messages added since the last copy, sent to `<folder>/<account>-contacts` -// and `-messages` of the destination every backup shares (sync-destination.js), -// once a day when there is something new (docs/MESHBAY_DESIGN.md §9.13). +// Contacts, calendar and messages backup: a copy of this phone's address book +// and calendars, and the text messages added since the last copy, sent to +// `<folder>/<account>-contacts`, `-calendar` and `-messages` of the destination +// every backup shares (sync-destination.js), once a day when there is +// something new (docs/MESHBAY_DESIGN.md §9.13). // // The same split as photos (photo-sync.js): the phone writes what is new into // one file and remembers what the node took; this module decides when a run @@ -30,12 +31,13 @@ const RETRY_MS = 15 * 60 * 1000; */ export const KINDS = { contacts: { sync: platform.contactSync, heading: 'contactsync.heading', suffix: 'contacts' }, + calendar: { sync: platform.calendarSync, heading: 'calendarsync.heading', suffix: 'calendar' }, messages: { sync: platform.messageSync, heading: 'messagesync.heading', suffix: 'messages' }, }; // Refusals that will hold at the next run too: said once (a notification, // from the phone) and retried a day later, never at every opening. -const LASTING = { +export const LASTING = { disk_full: 'phonesync.fail_disk_full', root_read_only: 'phonesync.fail_read_only', no_writable_root: 'phonesync.fail_read_only', |