Indigo Backup for 7.2?

Posted on
Sat Nov 03, 2018 1:00 pm
Korey offline
User avatar
Posts: 811
Joined: Jun 04, 2008
Location: Henderson, NV

Indigo Backup for 7.2?

Any live links to download the backup plugin?

They all seem to be 404.

Since I upgraded to 7.2 the plugin still is backing up my old 7.0 folders, any way to change this?

Thanks!

--
Korey

Posted on
Sat Nov 03, 2018 1:21 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Indigo Backup for 7.2?


joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Sat Nov 03, 2018 9:24 pm
Korey offline
User avatar
Posts: 811
Joined: Jun 04, 2008
Location: Henderson, NV

Re: Indigo Backup for 7.2?

Thanks for the tip!

using your utilities plugin already!

I'll start using the backup too.

Feature Request: when you are bored, add an option to back up everything in the:
/Library/Application Support/Perceptive Automation/Indigo 7.2
Folder
As well as Option to compress? (Zip)

Thanks!! :P

--
Korey

Posted on
Sun Nov 04, 2018 4:34 am
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Indigo Backup for 7.2?

It's not mine.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Sun Nov 04, 2018 3:39 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: Indigo Backup for 7.2?

it actually offers backup for sqlite, postres, and indigo config / prefs files. Everything else is almost static.

You could do a once a week zip manually or in a little script (schedule/action/server action/ execute script):
Code: Select all
import subprocess
subprocess.Popen("/usr/bin/zip  -r /users/YOURID/indigodir.zip '/Library/Application Support/Perceptive Automation/Indigo 7.2'  &",shell=True)


Karl

Posted on
Sun Nov 04, 2018 3:56 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Indigo Backup for 7.2?

Or just use Time Machine....

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Sun Nov 04, 2018 6:46 pm
Korey offline
User avatar
Posts: 811
Joined: Jun 04, 2008
Location: Henderson, NV

Re: Indigo Backup for 7.2?

Sorry got you guys mixed up, I thought Karl's plugin you mentioned was yours Joe!

I do backup to time machine, but this plugin was great as it would backup each day to a separate zip file so Backblaze could back up indigo, (Backblaze does not permit backing up of the Library folders :? )

I am actually using the Indigo Utilities plugin as well.
Attachments
Image 11-4-18 at 3.38 PM.jpg
Image 11-4-18 at 3.38 PM.jpg (44.38 KiB) Viewed 9551 times

--
Korey

Posted on
Sat Nov 17, 2018 8:10 am
Ramias offline
Posts: 272
Joined: Nov 24, 2015

Re: Indigo Backup for 7.2?

Just noticed this as I was checking a backup before attempting an upgrade to Mojave...

In the plugin folder for Indigo Backup, file plugin.py there is a function starting on line 80:

Code: Select all
         
 80           def     return_indigo_path ( self ):
 81         #
 82         #       Next Generation iws path calculation
 83         #
 84         #       Uses the Indigo Server version to generate the IWS path
 85         #
 86                 return r"/library/Application Support/Perceptive Automation/Indigo %s/" % (int(indigo.server.version[0]) )


Line 86 is only returning the first character (the "0" in the brackets) of Indigo Version, which is now 7.2.0 and using that for the path.

Changing that bracket to return the first three characters of the version string with a "[:3]" allows it to get the 7.2 and use that for the correct path to backup.

But that makes it no longer an int so need to change that to a str.

so make line 86 look like this:
Code: Select all
return r"/library/Application Support/Perceptive Automation/Indigo %s/" % (str(indigo.server.version[:3]) )

Posted on
Sat Nov 17, 2018 9:34 am
jay (support) offline
Site Admin
User avatar
Posts: 18199
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Indigo Backup for 7.2?

Or just use the built-in server method:

Code: Select all
indigo.server.getInstallFolderPath()


Which will always work... :D

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Sat Nov 17, 2018 11:22 am
Korey offline
User avatar
Posts: 811
Joined: Jun 04, 2008
Location: Henderson, NV

Re: Indigo Backup for 7.2?

Ramias wrote:
Just noticed this as I was checking a backup before attempting an upgrade to Mojave...

In the plugin folder for Indigo Backup, file plugin.py there is a function starting on line 80:

Code: Select all
         
 80           def     return_indigo_path ( self ):
 81         #
 82         #       Next Generation iws path calculation
 83         #
 84         #       Uses the Indigo Server version to generate the IWS path
 85         #
 86                 return r"/library/Application Support/Perceptive Automation/Indigo %s/" % (int(indigo.server.version[0]) )


Line 86 is only returning the first character (the "0" in the brackets) of Indigo Version, which is now 7.2.0 and using that for the path.

Changing that bracket to return the first three characters of the version string with a "[:3]" allows it to get the 7.2 and use that for the correct path to backup.

But that makes it no longer an int so need to change that to a str.

so make line 86 look like this:
Code: Select all
return r"/library/Application Support/Perceptive Automation/Indigo %s/" % (str(indigo.server.version[:3]) )



Thanks for the tip! that fixed it!

I must have an older version of the plugin (0.96) as your line 86 is my line 60..

--
Korey

Posted on
Tue Nov 20, 2018 9:51 pm
Ramias offline
Posts: 272
Joined: Nov 24, 2015

Re: Indigo Backup for 7.2?

In case anybody is interested I have attached my edited version of plugin.py that fixes the path issue (Thanks Jay) and also changes the backup file name so it is just .zip and not .zip.zip. Copy this into your /Library/Application Support/Perceptive Automation/Indigo 7.2/Plugins/Indigo Backup.indigoPlugin/Contents/Server Plugin directory.

of course, drop the .txt extension.
Attachments
plugin.py.txt
(4.15 KiB) Downloaded 254 times

Posted on
Wed Nov 21, 2018 10:53 am
Korey offline
User avatar
Posts: 811
Joined: Jun 04, 2008
Location: Henderson, NV

Re: Indigo Backup for 7.2?

Thanks!

--
Korey

Posted on
Tue Nov 27, 2018 1:59 pm
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Indigo Backup for 7.2?

jay (support) wrote:
Or just use the built-in server method:

Code: Select all
indigo.server.getInstallFolderPath()


Which will always work... :D


Well, we learn something every day. I'll have to take a look and update my code...

- Ben

------
My Plugins for Indigo (v4, v5, and v6) - http://bit.ly/U8XxPG

Security Script for v4 - http://bit.ly/QTgclf
for v5 - http://bit.ly/T6WBKu

Support Forum(s) - http://www.perceptiveautomation.com/userforum/viewforum.php?f=33

Posted on
Tue Nov 27, 2018 6:09 pm
jay (support) offline
Site Admin
User avatar
Posts: 18199
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Indigo Backup for 7.2?

bschollnick2 wrote:
jay (support) wrote:
Or just use the built-in server method:

Code: Select all
indigo.server.getInstallFolderPath()


Which will always work... :D


Well, we learn something every day. I'll have to take a look and update my code...


Slight correction: it will always work on Indigo 6+ (was introduced in API v1.10 which was one of the Indigo 6 betas).

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Sun Jul 25, 2021 1:24 pm
Patje73 offline
Posts: 15
Joined: Jan 21, 2017

Indigo Backup for 2021.1

After the latest update I have been getting errors when using the backup plugin.
I seem to be the only one as I am not seeing similair errors on the forums.

Could you help?

I am getting the following from the log:

Reloading plugin "Backup 1.00"
Stopping plugin "Backup 1.00" (pid 29918)
Stopped plugin "Backup 1.00"
Starting plugin "Backup 1.00" (pid 30050)
Started plugin "Backup 1.00"
Backup Starting Backup, saving to /Users/Patrick/Documents/IndigoBackup
Backup archive filename /Users/Patrick/Documents/IndigoBackup/Indigo_Backup_07_25_2021__00_34_21.zip
Backup save path /library/Application Support/Perceptive Automation/Indigo 2
Backup Error Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
File "plugin.py", line 147, in runConcurrentThread
File "plugin.py", line 128, in run_Backup
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/archive_util.py", line 167, in make_zipfile
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/zipfile.py", line 1146, in write
OSError: [Errno 2] No such file or directory: '/library/Application Support/Perceptive Automation/Indigo 2'

Who is online

Users browsing this forum: No registered users and 4 guests