Help with backup script on DW site panel.

Ask a Question related to Macromedia Exchange Dreamweaver Extensions, Design and Development.

  1. #1

    Default Help with backup script on DW site panel.

    Has anyone figured out how to have DW JavaScript create a folder on the remote
    site and rename it? We need to backup a file before we work on it so I want to
    create an extension that allows me to right click on a file in remote view,
    select 'backup', have DW check for a 'backup' folder, make a folder and name it
    'backup' if there isn't, and copy the selected file to 'backup'. This makes
    the folder: if (site.makeNewFolder()){ alert('Created folder'); } else{
    alert('Unable to create folder'); } but I can't rename it. Since this leaves
    the cursor in the sitepanel in 'rename file/folder' mode I can't figure out how
    to progmatically rename the folder. Any ideas are greatly appreciated!
    Regards, Steve

    stevenlmas Guest

  2. Similar Questions and Discussions

    1. script to take backup
      Hello all, i want to create a script to take backup of specific directories. eg: abc, xyz and bcd directories in root directory cd / find ....
    2. Printing the Site Panel?
      "molly70" webforumsuser@macromedia.com wrote: I'm a Mac person and assume you're on Windows, but since it's urgent...... Press "Print screen"...
    3. udb backup script
      HTH Sathyaram #!/bin/ksh db2owner=<instance-owner> # DB2 instance owner cd ~${db2owner} ./sqllib/db2profile
    4. how to backup site definitions?
      hello, is there any way of backing up my site definitions? half of them disapeared a few months ago with all my ftp details etc, and i'm worried...
    5. HELP: SQL script to backup all databases
      I would greatly appreciate some help, or a point in the right direction, please. I am new to MS SQL Server administration, and specifically...
  3. #2

    Default Re: Help with backup script on DW site panel.

    stevenlmas wrote:
    > Has anyone figured out how to have DW JavaScript create a folder on the remote
    > site and rename it?
    Unfortunatley, the exposed API doesn't offer a way to do what you're looking to do.

    The only way I could imagine doing this would be with a scriptable 3rd part FTP program that you coudl invisibly pass the selected fodler name and connection info and it would then connect to the site see if there is a backup folder.

    Or perhaps you could handle things locally. take the remote selection, find its match locally, create the local back up folder and copy the local file into it and upload that local copy. That would then place the copy in a backup fodler and only create if it isn't already present.


    --
    Danilo Celic
    | Extending Knowledge Daily : [url]http://CommunityMX.com/[/url]
    | Team Macromedia for Dreamweaver : [url]http://macromedia.com/go/team/[/url]
    danilocelic *TMM* Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139