This question is answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 5 - Pages: 1 - Last Post: 01-Jan-2018 20:22 Last Post By: karlmistelberger
RobM

Posts: 3,095
Registered: 4-Aug-2006
External tool: Config Manager
Posted: 29-Dec-2017 19:14
 
  Click to reply to this thread Reply
This tool will let you have multiple configuration sets of the following files:
accounts.xml
defaults.jap
recent-projects.txt
Skin-defaults

Post any questions over the next few weeks here.
karlmistelberger

Posts: 504
Registered: 5-Dec-2013
Re: External tool: Config Manager
Posted: 30-Dec-2017 06:53   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
RobM wrote:
This tool will let you have multiple configuration sets of the following files:
accounts.xml
defaults.jap
recent-projects.txt
Skin-defaults

When first run the tool will create a 'defaults' folder in your jAlbum configuration folder


Not exactly:
bsh.EvalError: Sourced file: inline evaluation of: ``/*Tool to manage mutliple configurations by RobM */ import se.datadosen.jalbum.* . . . '' : Typed variable declaration : Error constructing inner class instance: java.lang.reflect.InvocationTargetException : at Line: 86 : in file: inline evaluation of: ``/*Tool to manage mutliple configurations by RobM */ import se.datadosen.jalbum.* . . . '' : new ControlPanel ( ) { 
 in Config Manager.bsh at line number 86
RobM

Posts: 3,095
Registered: 4-Aug-2006
Re: External tool: Config Manager
Posted: 30-Dec-2017 11:30   in response to: karlmistelberger in response to: karlmistelberger
 
  Click to reply to this thread Reply
karlmistelberger wrote:
RobM wrote:
This tool will let you have multiple configuration sets of the following files:
accounts.xml
defaults.jap
recent-projects.txt
Skin-defaults

When first run the tool will create a 'defaults' folder in your jAlbum configuration folder

Not exactly:

bsh.EvalError: Sourced file: inline evaluation of: ``/*Tool to manage mutliple configurations by RobM */ import se.datadosen.jalbum.* . . . '' : Typed variable declaration : Error constructing inner class instance: java.lang.reflect.InvocationTargetException : at Line: 86 : in file: inline evaluation of: ``/*Tool to manage mutliple configurations by RobM */ import se.datadosen.jalbum.* . . . '' : new ControlPanel ( ) { 
 in Config Manager.bsh at line number 86
Sorry, last minute change introduced a basic error. Tool updated
karlmistelberger

Posts: 504
Registered: 5-Dec-2013
Re: External tool: Config Manager
Posted: 01-Jan-2018 10:15   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
RobM wrote:
karlmistelberger wrote:
RobM wrote:
This tool will let you have multiple configuration sets of the following files:
accounts.xml
defaults.jap
recent-projects.txt
Skin-defaults

When first run the tool will create a 'defaults' folder in your jAlbum configuration folder

Not exactly:

bsh.EvalError: Sourced file: inline evaluation of: ``/*Tool to manage mutliple configurations by RobM */ import se.datadosen.jalbum.* . . . '' : Typed variable declaration : Error constructing inner class instance: java.lang.reflect.InvocationTargetException : at Line: 86 : in file: inline evaluation of: ``/*Tool to manage mutliple configurations by RobM */ import se.datadosen.jalbum.* . . . '' : new ControlPanel ( ) { 
 in Config Manager.bsh at line number 86
Sorry, last minute change introduced a basic error. Tool updated

Following the instructions I got some nice backup of .jalbum accounts.xml recent-projects.txt and recent-projects.txt:
karl@erlangen:~> l -R .jalbum/defaults
.jalbum/defaults:
insgesamt 16
drwxr-xr-x 4 karl users 4096  1. Jan 10:03 ./ 
drwxr-xr-x 4 karl users 4096  1. Jan 10:03 ../ 
drwxr-xr-x 2 karl users 4096  1. Jan 10:03 Default/ 
drwxr-xr-x 2 karl users 4096  1. Jan 10:03 Test/ 
 
.jalbum/defaults/Default:
insgesamt 20
drwxr-xr-x 2 karl users 4096  1. Jan 10:03 ./ 
drwxr-xr-x 4 karl users 4096  1. Jan 10:03 ../ 
-rw-r--r-- 1 karl users 1070 28. Dez 08:44 accounts.xml
-rw-r--r-- 1 karl users 2571 30. Dez 06:34 defaults.jap
-rw-r--r-- 1 karl users  236 30. Dez 06:34 recent-projects.txt
 
.jalbum/defaults/Test:
insgesamt 20
drwxr-xr-x 2 karl users 4096  1. Jan 10:03 ./ 
drwxr-xr-x 4 karl users 4096  1. Jan 10:03 ../ 
-rw-r--r-- 1 karl users 1070 28. Dez 08:44 accounts.xml
-rw-r--r-- 1 karl users 2571  1. Jan 10:03 defaults.jap
-rw-r--r-- 1 karl users  236  1. Jan 10:03 recent-projects.txt
karl@erlangen:~> 

Made some changes to /home/Albums/Tiger/jalbum-settings.jap but failed to find a backup of this.
RobM

Posts: 3,095
Registered: 4-Aug-2006
Re: External tool: Config Manager
Posted: 01-Jan-2018 11:04   in response to: karlmistelberger in response to: karlmistelberger
 
  Click to reply to this thread Reply
karlmistelberger wrote:
Made some changes to /home/Albums/Tiger/jalbum-settings.jap but failed to find a backup of this.
The tool does not track projects, only the files mentioned within the configuration folder. The folders created by it are not ‘backups’ as such, they are ‘inactive configuration sets’. When you run the tool you are saving the current config files (to its named folder) and replacing them with those from another/new set.

The tool thus allows you to have, for example, multiple ‘recent projects’ so you can work on one set of projects, then switch to another set of projects.

You can have a configuration with jAlbum defaults and then switch to one with your preferred defaults - say for a specific set of projects.

If you have multiple websites you could have a configuration that keeps them separate, a set of recent projects, defaults, skin specific defaults for each site.
karlmistelberger

Posts: 504
Registered: 5-Dec-2013
Re: External tool: Config Manager
Posted: 01-Jan-2018 20:16   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
RobM wrote:
karlmistelberger wrote:
Made some changes to /home/Albums/Tiger/jalbum-settings.jap but failed to find a backup of this.
The tool does not track projects, only the files mentioned within the configuration folder.

The attached bash script save-jalbum-settings.sh saves jalbum-settings.jap for all projects to a hidden subdirectory whenever changes occur.

The user systemd runs the script every minute, see attached Unit file save-jalbum-settings.service
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums