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