Notifications
How to be told when a transfer finishes or fails, or when a schedule is switched off: by email, in your browser, on Telegram, in Slack or Discord, or at a webhook of your own.
In this chapter
- What notifications are for
- Kinds of channel
- Which events you can hear about
- Adding a channel
- Testing, pausing and changing channels
- What a message contains
- When messages do not arrive
- When a schedule is switched off
What notifications are for
Transfers keep running after you close ShiftMyData, and schedules run while you are away. A notification channel tells you how they went, so you do not have to keep checking the transfers list.
Open Notifications in the sidebar. Each channel is one place messages go, and you choose which events each one hears about. Only the account owner has this page.
Kinds of channel
- Email me
- A short email to the address on your ShiftMyData account. It cannot be sent anywhere else. Your address must be confirmed first, and email must be set up on this service.
- This browser
- A notification from your browser, even when ShiftMyData is not open, as long as the browser is running. Choose it in the browser you want told, press Get notifications in this browser, and allow notifications when the browser asks. Clicking one opens your transfers. If you later block notifications or clear the site's data, the channel switches itself off; turn it on again the same way.
- Telegram
- A message from this service's Telegram bot, in a private chat or a group. Press Get a Telegram link, open the link in the chat you want, and press Start. The channel appears within a minute. The link works once and expires after 15 minutes. If you block the bot or remove it from the group, the channel switches itself off. Only offered when the operator has set up a bot.
- Slack
- A message in a Slack channel, through an incoming webhook you create in your Slack workspace. The address starts https://hooks.slack.com/services/.
- Discord
- A message in a Discord channel, through a webhook from the channel's settings (Integrations, then Webhooks). The address starts https://discord.com/api/webhooks/.
- Webhook
- Signed JSON sent to an address of your own, for your own tools and scripts. It must be a public http or https address.
Which events you can hear about
- A transfer finished
- A job ended successfully. This includes copies, moves and syncs, scheduled runs, downloads from links, Telegram transfers, email migrations and team migrations.
- A transfer failed
- A job ended with an error. This is the one most people want, and it is ticked for you when you add a channel.
- A schedule was switched off
- ShiftMyData turned a schedule off because it could no longer run, and says why. See the last section of this chapter.
- A transfer you cancel yourself sends nothing: you already know.
- A transfer that hits a passing problem and is retried automatically is not reported until it really ends.
- A team migration sends one message when the whole migration ends, not one per person.
Adding a channel
- Open Notifications and press Add a channel.
- Under Send to, choose Email me, Slack, Discord or Webhook.
- Give it a Name, such as “Ops channel”. This is what it is called in your list. If you leave it empty, the kind's name is used.
- For Slack, Discord or Webhook, paste the address into the URL box. For Email me, the box shows the address messages will go to.
- Under Tell me when, tick the events this channel should hear about. At least one must be ticked.
- Press Add channel.
- Press Send a test on the new channel to check that messages arrive.
The address you paste is stored encrypted and never shown again. The list shows only the start of it, such as https://hooks.slack.com/…, so you can recognise it. To change the address, delete the channel and add it again.
If Email me says Confirm your address first, press Send confirmation link, open the link from your inbox, then come back and add the channel. If it says email is not set up on this deployment yet, use Slack, Discord or a webhook instead.
Testing, pausing and changing channels
Each channel in the list shows its name, its kind, whether it is Active or Paused, and the time of its Last delivery.
- Send a test
- Sends a message titled Test notification saying “If you can read this, ShiftMyData can reach this channel.” The button shows Sent once the test is on its way. It may take a few seconds to arrive.
- The event buttons
- Under each channel, one button per event. Highlighted buttons are the events it hears about; press one to switch it on or off. The last one cannot be switched off: delete the channel instead.
- Pause and Resume
- Pause stops messages to this channel without losing it. Resume starts them again and clears its last error.
- Delete
- Removes the channel straight away, without asking first.
What a message contains
Email, Slack and Discord messages are written for people. Each has a headline and a few lines:
- The headline, such as Transfer finished, Transfer failed, Team migration finished, or Schedule “Nightly backup” was switched off.
- From: and To: — the source and destination folders.
- Moved: — how many files and how much data.
- Started by a schedule. when a schedule started it.
- For a failure, Error: with the reason, shortened if it is very long.
- For a switched-off schedule, the reason it was switched off.
- A link to open ShiftMyData.
Emails arrive with the subject “ShiftMyData:” followed by the headline. Messages never contain passwords, keys or links to your files.
A Webhook channel receives the same facts as JSON, sent by POST. The body has an event name (job.succeeded, job.failed, schedule.disabled, or notification.test for a test) and the time, plus the job's or schedule's details. Three headers come with it:
- X-ShiftMyData-Event
- The event name.
- X-ShiftMyData-Timestamp
- When it was sent, as Unix time in seconds.
- X-ShiftMyData-Signature
- sha256= followed by an HMAC-SHA256, made with your signing secret, of the timestamp, a full stop, and the body exactly as received. Check it to be sure the message came from ShiftMyData.
When messages do not arrive
If a delivery fails, the channel shows the reason in a yellow box under it, for example “The receiver answered 404.” or “The receiver could not be reached.”
- If the receiver timed out, could not be reached, or answered that it was busy, ShiftMyData tries twice more, about 30 seconds and then 5 minutes later. The box says retrying in while it waits.
- Redirects are not followed. If your address redirects, use the address it redirects to.
- Addresses on your own computer or private network are refused.
- A channel can receive at most 20 messages a minute. Messages beyond that are dropped and counted as failures.
- That is not a Slack webhook URL. / That is not a Discord webhook URL.
- The address is not an incoming webhook of that service. Copy the webhook address again from Slack or Discord.
- Your email address is not verified, so nothing is sent to it.
- Confirm your address from the banner at the top of the page or on the Account page, then press Resume if the channel was switched off.
- You already have (a number of) notification channels.
- There is a limit on channels. Delete one you no longer use.
When a schedule is switched off
A schedule that can no longer run is switched off by ShiftMyData rather than left failing again and again. On the Schedules page it shows Paused, with the reason in a yellow box. Channels that hear A schedule was switched off get a message with the schedule's name and that reason.
This happens the moment ShiftMyData tries to run the schedule and finds it cannot. Typical reasons:
- One of the accounts no longer exists.
- The saved transfer is no longer valid, for example because it breaks a rule that has changed.
- The transfer would now be refused, for example because the destination has become read-only. The reason is the same message a one-off transfer would show.
- For a schedule that watches a Telegram chat: the Telegram account stopped working or lost access to the chat.
- A run skipped because the previous run had not finished is not a switch-off. The schedule says Skipped: the previous run had not finished. and tries again at its next time.
- A Telegram schedule waiting for more transfer allowance is not switched off either. It says Waiting: this month's transfer allowance is used up. and carries on once there is allowance.
- When you remove a Telegram account yourself, the schedules that watch its chats are switched off at once, with the reason The Telegram account was removed. No message is sent for this, because you did it.
To start a switched-off schedule again, fix the cause (reconnect the account, for example), then press Resume on the schedule. If it is switched off again straight away, read the new reason.
Try it
Everything here is in ShiftMyData's Help too, once you are signed in. Start free
← Sub-accounts and team transfers · Apps, the API and integrations → · Every chapter