[Android 5.1.1] Automate Daily Backup (by Automate Developer)

907 views
Skip to first unread message

Fellipe F.

unread,
May 11, 2015, 11:25:16 AM5/11/15
to automa...@googlegroups.com
Hi,

I'm using the preloaded flow to daily backup all my flows to GDrive, but when I try to restore this backup (Import or Restore Backup functionality) they don't work (appears shaded in grey on the list of backups files).

The flow utilize the following URI as parameter:
content://com.llamalab.automate.provider/backup

 Do you guys know how to properly create a backup of my flows in GDrive?

BR,
Fellipe F.

Automate developer

unread,
May 11, 2015, 1:40:33 PM5/11/15
to automa...@googlegroups.com, fellip...@gmail.com
Use the Content copy block to extract the backup from the database to a local file. Then you can do whatever you wish with the backup file, Zip it, e-mail it, FTP it, Google Drive upload it, etc.

To create a backup of a specific flow, use the Flow pick block to get Flow URI, then use the Content copy block as above.

Fellipe F.

unread,
May 11, 2015, 1:56:23 PM5/11/15
to automa...@googlegroups.com, fellip...@gmail.com
Hi,

I'm doing exactly like this, and the file is created and uploaded correctly. The problem is when I try to use this backup file, Automate doesn't import (restore) it. When I choose Restore backup from the Settings menu, and look at this backup file that I created, it's disabled, so I can't choose it to restore.

Do you know why this happens?

Thanks!
BR,

Fellipe F.

Automate developer

unread,
May 11, 2015, 2:42:54 PM5/11/15
to automa...@googlegroups.com, fellip...@gmail.com
It's a content-type issue, the Google Drive app i disables the "item" if the content-type doesn't match.

I thought i'd fixed it, i'll investigate.

Fellipe F.

unread,
May 11, 2015, 3:08:56 PM5/11/15
to automa...@googlegroups.com, fellip...@gmail.com
Hi,

Just to to help with your investigation, I found this:

AUTOMATE MAIN MENU > IMPORT MENU
  • If I choose GDrive as source of the backup file, I can't select the file (disabled);
  • After download the file from GDrive to the local folder Downloads, If I choose Downloads (shortcut) as source of the backup file, I can't select the file (disabled);
  • After download the file from GDrive to the local folder Downloads, If I choose the File Manager as source of the backup and navigate to the folder Downloads, I can select the file, but Automate says: "Corrupt flow format"
AUTOMATE MAIN MENU > SETTINGS > RESTORE BACKUP
  • If I choose GDrive as source of the backup file, I can select some random versions of the backup file (some are enabled and some aren't);
  • After download the file from GDrive to the local folder Downloads, If I choose Downloads (shortcut) as source of the backup file, I can't select the file (disabled);
  • After download the file from GDrive to the local folder Downloads, If I choose the File Manager as source of the backup and navigate to the folder Downloads, I can select the file, and restore successfully the backup file.
Now it's up to you discover those bugs x)

Thanks!
BR,

Fellipe F.

Automate developer

unread,
May 11, 2015, 3:59:43 PM5/11/15
to automa...@googlegroups.com, fellip...@gmail.com
The Main menu > Import option is only for importing separate flow .flo files, not backups.

When selecting a backup to restore or an flow file to import, Automate specifies which content-types it want's to get in return.
The Google Drive app sometimes seems to loose the content-type, and then disabling those files when selecting.
The File manager probably cant guess the correct type either.

I'll change it so Automate want's any type of file, it should solve the issue.

dbri...@gmail.com

unread,
Feb 18, 2018, 8:12:59 PM2/18/18
to Automate
I'm having the same problem with Automate 1.10.4

My upload to gdrive flow doesn't have a mime type set in the "content copy" block and two of the top backup flows in the community don't have anything either. What should the mime-type be?

(The only success I had was to manually create backup. That works even after manually uploading to gdrive.)

Thanks.

Henrik "The Developer" Lindqvist

unread,
Feb 18, 2018, 9:46:23 PM2/18/18
to Automate
The Content type output variable of the Content copy block is irrelevant and has nothing to do with the Google Drive upload block.
The issue is that Google Drive only support a limited number of MIME types, the custom Automate backup type is not included.
But this shouldn't be an issue, the backups are still valid, they just may no open directly in Automate when clicked in the Google Drive app. Please read:
http://llamalab.com/automate/doc/faq.html#i_cant_restore_backup
Reply all
Reply to author
Forward
0 new messages