Pack & Go running command before execution?

Started by maxbelloni, Today at 12:17:19 AM

Previous topic - Next topic

maxbelloni

Hello,

I keep a copy of the database (using, of course, Pack & Go) on an external device, using Samba. Since this device needs to be mounted in order to perform the database copy, it would be a great feature if a command could be run before running the procedure (ad well as running a command after the completion, which is already possible now), so that the Samba device could be mounted directly from Pack & Go using a simple procedure (avoding a manual operation to connect it before run Pack & Go).

It should be not so complicated to implement this feature in next releases.

What do you think about Mario?

Regards,

maxbelloni

Tveloso

Another option might be to configure Pack&Go to store the package on a local drive, and use the existing post-run command execution function, to mount the external device, and then move the Pack&Go package over to it...
--Tony

Mario

#2
Pack & Go is not a backup tool.
It's designed to transfer IMatch databases and settings between computers.
Pack & Go packages are usually short-lived (while you use it to transfer settings and the database to another PC.

Why not just include the entire %PROGRAMDATA% folder (which holds important data for all applications), the %APPDATA% folder and the folder containing your IMatch database in your daily backup?

I hope you do daily backups?

Anyway, as Tveloso suggested, the post run command will do what you need.

Write a small batch job or a PowerShell script that mounts your external drive and then copies the folder containing the P&G package onto it. Then run this script as the post-run command in Pack & Go. Should work nicely.

But, in that case, you could also just write a batch job or PowerShell script that mounts the drive and copies the IMatch program data folder, IMatch user folder and your databases to your drive. And run it when needed or as a scheduled task.

Mount external drive.
roobocopy IMatch database folder to external drive.
roobocopy %APPDATA%\photools.com\IMatch6 folder to external drive.
roobocopy %PROGRAMDATA%\photools.com\IMatch6 folder to external drive.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

maxbelloni

Yes, I do backups regularly. (I've been an IT system engineer for over 40 years: I've seen things you people wouldn't believe... ;D )

The idea to have a local copy and replicating it after is basically good, and having a copy of all the dat is even better.

Thanks,

maxbelloni

Mario

No problems with extra copies, or running Pack & Go in addition to a normal system backup.

With 40 years experience, writing a script that mounts the drive and copies the P&G package will be no problem for you.
Or skip Pack & Go and just run a backup as shown in my post above. Sans the database diagnosis, it does what Pack & Go does.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook