备份Gapps源码 [英] Backing up Gapps source

查看:51
本文介绍了备份Gapps源码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我陷入了(意外)从脚本编辑器中删除所有脚本的陷阱。在本课中失去了3周的工作。我(也许)不会再这样做,但它提出了一个问题:什么是Gapps源的完整备份解决方案?

当然,我可以创建一个在编辑器中或Google驱动器中复制我的脚本。然而,我问我的(非常复杂的)用户界面(使用GUIBilder构建)是否受到保护。到目前为止,我一直无法找到GUI Builder引发的代码。



另请注意,无法在GDrive中下载应用程序脚本,因此如何获得我的工作产品的个人副本?



=====
澄清 - 我知道如何复制和粘贴脚本的来源,但这不捕获使用GUI Builder构建的200个小工具GUI。



至于编辑器中的陷阱门 - 我有几个版本 - 我突出显示了ONE in左边的列表,并请求删除(使用Google脚本编辑器)文件/删除 - 魔术 - 所有的脚本消失。我永远不会再次触摸File / Delete菜单。

解决方案

在某些情况下,您应该可以重新获取代码。 (编辑 - 除了看起来,你从脚本编辑器中删除的任何脚本文件,以及任何与GUI生成器或表单相关的自动生成的代码 - 哎呀!)



您的选择取决于您从脚本编辑器中删除所有脚本的含义。


  1. 如果您只是在编辑器中删除了脚本的文本,例如按Ctrl-A + del,那么您可以在编辑器中恢复它。 文件 - 查看修订历史记录会弹出一个对话框,让您可以在脚本完好时返回到时间。


  2. 如果您从Google云端硬盘中删除了该文件,那么该文件位于垃圾文件夹中,并且可以从该文件夹中恢复。您可以在云端硬盘导航树中找到垃圾箱文件夹。




  3. 如果您从编辑器中删除了一个脚本文件,那么直到Google修复问题1424:不可能恢复脚本文件/项目

  4. >如果您删除了与GUI Builder或Forms相关的任何自动生成的代码,则无法将它们还原。 (表单不包括在从修订历史恢复中

如果您想将脚本存储在其他地方,那么这是一个好主意 - 为项目1至3提供额外的安全性,但不幸的是不是4.您需要将文本从编辑器复制到另一个文件或在线存储库(例如Github)。养成在您的评论中包含有关图书馆信息的习惯,因为无法备份这些资源链接。


I have fallen into the trap of (accidentally) deleting all scripts from the script editor. Lost 3 weeks of work in this lesson. I (maybe) will not do that again, but it raises the question "What is a complete backup solution for Gapps source?"

I, of course, can make a copy of my script either in the editor, or within Google drive. I however question if my (very complex) User interface (built using GUIBilder) is protected. So far, I have been unable to locate the code GUI Builder throws.

Also note it is not possible to download an apps script in GDrive, so how do I get a personal copy of my work product?

===== To clarify - I know how to copy and paste the source of a script BUT this does not capture the 200 gadget GUI that was built using GUI Builder.

As to the trap door in the editor -- I had several versions of this development -- I highlighted ONE in the left hand list and requested delete (from withing the Google script editor) file/delete -- magic -- ALL SCRIPTS DISAPPEARED. I will never touch the File/Delete menu again.

解决方案

In some cases, you should be able to get your code back. (EDIT - except, it seems, any script file you delete from within the script editor, and any auto-generated code related to the GUI Builder, or Forms. -- Ouch!)

Your options depend on what you mean by deleting all scripts from the script editor.

  1. If you only deleted the text of your script while in the editor, say by Ctrl-A + del, then you can recover it within the editor. File - See Revision History will bring up a dialog that lets you time-travel back to when your script was intact.

  2. If you deleted the file from Google Drive, then it's in a trash folder, and can be recovered from there. You'll find the Trash folder in the Drive navigation tree.

  3. If you deleted a script "file" from within the editor, you're out of luck until Google fixes Issue 1424: There is no possibility to recover script files/projects.

  4. If you deleted any auto-generated code related to the GUI Builder, or Forms, you can't get them back. (Forms are not included in Restore from Revision History)

If you want to store your scripts some other place, that's a good idea - that will provide additional safety for items 1 to 3, but unfortunately not 4. You will need to copy the text from the editor into another file or online repository (e.g. Github). Get into the habit of including info about Libraries in your comments, because there is no way to back up those resource links.

这篇关于备份Gapps源码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆