Page 1 of 2

Indigo Backup for 7.2?

PostPosted: Sat Nov 03, 2018 1:00 pm
by Korey
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!

Re: Indigo Backup for 7.2?

PostPosted: Sat Nov 03, 2018 1:21 pm
by FlyingDiver

Re: Indigo Backup for 7.2?

PostPosted: Sat Nov 03, 2018 9:24 pm
by Korey
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

Re: Indigo Backup for 7.2?

PostPosted: Sun Nov 04, 2018 4:34 am
by FlyingDiver
It's not mine.

Re: Indigo Backup for 7.2?

PostPosted: Sun Nov 04, 2018 3:39 pm
by kw123
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

Re: Indigo Backup for 7.2?

PostPosted: Sun Nov 04, 2018 3:56 pm
by FlyingDiver
Or just use Time Machine....

Re: Indigo Backup for 7.2?

PostPosted: Sun Nov 04, 2018 6:46 pm
by Korey
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.

Re: Indigo Backup for 7.2?

PostPosted: Sat Nov 17, 2018 8:10 am
by Ramias
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]) )

Re: Indigo Backup for 7.2?

PostPosted: Sat Nov 17, 2018 9:34 am
by jay (support)
Or just use the built-in server method:

Code: Select all
indigo.server.getInstallFolderPath()


Which will always work... :D

Re: Indigo Backup for 7.2?

PostPosted: Sat Nov 17, 2018 11:22 am
by Korey
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..

Re: Indigo Backup for 7.2?

PostPosted: Tue Nov 20, 2018 9:51 pm
by Ramias
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.

Re: Indigo Backup for 7.2?

PostPosted: Wed Nov 21, 2018 10:53 am
by Korey
Thanks!

Re: Indigo Backup for 7.2?

PostPosted: Tue Nov 27, 2018 1:59 pm
by bschollnick2
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

Re: Indigo Backup for 7.2?

PostPosted: Tue Nov 27, 2018 6:09 pm
by jay (support)
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).

Indigo Backup for 2021.1

PostPosted: Sun Jul 25, 2021 1:24 pm
by Patje73
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'