Re: [GNC] Backup files in another folder - solution for Windows

2022-08-09 Thread Char_GNC
Thanks for replies.   1) My approach was to leave the GNC backup process as is 
and handle the files only (moving them out of the base dir).   2) I have many 
other files also in a folder where my budget database file resists, so I wanted 
to move backups instantly.   3) I also wanted not to create custom shortcuts 
which can break (if you move your database file) and you have to remember to 
open GNC with the shortcut only.   So the idea is to set this up once and 
forget – which means later "open/use GNC as you like, let the system run 
the task *automagically* whenever GNC is started (and end the task whenever it 
is closed/killed) and move the backup files *automagically* to keep the folder 
clean" (there are instructions inside the script) :)  Regards,  Char 
5.08.2022 17:12 Jack Lockard <  jelock...@outlook.com >:  You can also 
use a batch file to accomplish the task of moving the backup and log files. I 
have a batch file named "Start GNUcash.bat" that contains the 
following:   @ECHO OFF  ECHO Starting GNUcash  START "Starting GNUcash" 
/WAIT "C:\Program Files (x86)\gnucash\bin\gnucash.exe"  ECHO GNUcash 
closed  MOVE "C:\data file location\*.gnucash.*.gnucash" "C:\Backup 
file location"  MOVE "C:\data file location\*.log" "C:\Backup 
file location"  PAUSE  @ECHO ON  EXIT   The START command starts GNUcash 
and waits for it to close. Once it closes, it moves the backup and log files to 
the backup folder.  Obviously you would need to change the data file and backup 
file locations to suit your system. The file location spec does not need to be 
enclosed in quotes if there is no "White Space" in the file spec. Note 
that you cannot simply use "*.gnucash" for the backup file as that 
would move the main data file as well, so it must be 
"*.gnucash.*.gnucash".   Jack-Original Message-  From: 
gnucash-user  On 
Behalf Of Glenn Fowler   Thank you for sharing.  I do my backups with PS as 
well but just do a once daily run and check the file hash for changes. If 
it's changed then copy.   On Thu, Aug 4, 2022 at 6:47 PM GNC mailinglist 
 wrote:   Hi,    I'm new to GnuCash but, yep, I was 
disappointed by the multiple  backup and log files cluttering the directory 
where the main budget  file is stored. I've searched and found out nobody 
even made a  workaround. So I wrote a Powershell (Windows) script watching 
folder  for new files and moving them to another folder. Take a look at →    
github.com  nam12.safelinks.protection.outlook.com 
https://github.com/Kaligula0/FolderWatcher   .  The file has an  explanation 
but feel free to comment here or file a bug there.    Best  regards, Char
___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.


Re: [GNC] Backup files in another folder – solution for Windows

2022-08-05 Thread Glenn Fowler
Not at all! Just adding info for this great community and for the next
person that searches

On Fri, Aug 5, 2022 at 10:22 AM Adrien Monteleone <
adrien.montele...@lusfiber.net> wrote:

> Of course. Sorry if it seemed I implied otherwise.
>
> Regards,
> Adrien
>
> On 8/5/22 9:02 AM, Glenn Fowler wrote:
> > Even with the SQLite database you still need backups.
>
>
> ___
> gnucash-user mailing list
> gnucash-user@gnucash.org
> To update your subscription preferences or to unsubscribe:
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> -
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.
>
___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.


Re: [GNC] Backup files in another folder – solution for Windows

2022-08-05 Thread Jack Lockard
You can also use a batch file to accomplish the task of moving the backup and 
log files. I have a batch file named "Start GNUcash.bat" that contains the 
following:

@ECHO OFF
ECHO Starting GNUcash
START "Starting GNUcash" /WAIT "C:\Program Files (x86)\gnucash\bin\gnucash.exe"
ECHO GNUcash closed
MOVE "C:\data file location\*.gnucash.*.gnucash" "C:\Backup file location"
MOVE "C:\data file location\*.log" "C:\Backup file location"
PAUSE
@ECHO ON
EXIT

The START command starts GNUcash and waits for it to close. Once it closes, it 
moves the backup and log files to the backup folder.  Obviously you would need 
to change the data file and backup file locations to suit your system. The file 
location spec does not need to be enclosed in quotes if there is no "White 
Space" in the file spec. Note that you cannot simply use "*.gnucash" for the 
backup file as that would move the main data file as well, so it must be 
"*.gnucash.*.gnucash".

Jack


-Original Message-
From: gnucash-user  On 
Behalf Of Glenn Fowler
Sent: Thursday, August 4, 2022 7:12 PM
To: GNC mailinglist 
Cc: gnucash-user@gnucash.org
Subject: Re: [GNC] Backup files in another folder – solution for Windows

Thank you for sharing.
I do my backups with PS as well but just do a once daily run and check the file 
hash for changes. If it's changed then copy.

On Thu, Aug 4, 2022 at 6:47 PM GNC mailinglist  wrote:

> Hi,I'm new to GnuCash but, yep, I was disappointed by the multiple
> backup and log files cluttering the directory where the main budget 
> file is stored. I've searched and found out nobody even made a 
> workaround. So I wrote a Powershell (Windows) script watching folder 
> for new files and moving them to another folder. Take a look at →  
> github.com
> https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FKaligula0%2FFolderWatcher&data=05%7C01%7C%7C10814a96c5234a88fdd908da766fffb6%7C84df9e7fe9f640afb435%7C1%7C0%7C637952520658959336%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=1zcfSLQK%2FBI%2FJM%2FzuATFplweHxp73T0VzqPdDuaN%2FxI%3D&reserved=0
>   .  The file has an
> explanation but feel free to comment here or file a bug there.Best
> regards, Char
> ___
> gnucash-user mailing list
> gnucash-user@gnucash.org
> To update your subscription preferences or to unsubscribe:
> https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Flist
> s.gnucash.org%2Fmailman%2Flistinfo%2Fgnucash-user&data=05%7C01%7C%
> 7C10814a96c5234a88fdd908da766fffb6%7C84df9e7fe9f640afb435%
> 7C1%7C0%7C637952520658959336%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwM
> DAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&
> sdata=7kiTV0Ag43AFHk9sPXvDM8dxCH1yoFaO3okyHXzfDJg%3D&reserved=0
> -
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.
>
___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.gnucash.org%2Fmailman%2Flistinfo%2Fgnucash-user&data=05%7C01%7C%7C10814a96c5234a88fdd908da766fffb6%7C84df9e7fe9f640afb435%7C1%7C0%7C637952520658959336%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=7kiTV0Ag43AFHk9sPXvDM8dxCH1yoFaO3okyHXzfDJg%3D&reserved=0
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.
___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.


Re: [GNC] Backup files in another folder – solution for Windows

2022-08-05 Thread Adrien Monteleone

Of course. Sorry if it seemed I implied otherwise.

Regards,
Adrien

On 8/5/22 9:02 AM, Glenn Fowler wrote:

Even with the SQLite database you still need backups.



___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.


Re: [GNC] Backup files in another folder – solution for Windows

2022-08-05 Thread Glenn Fowler
Even with the SQLite database you still need backups.

One could use the built-in backup scheme to guard against user error or
database corruption and then also a copy to other media (cloud, external
drive, etc.) to guard against hardware failure.

On Fri, Aug 5, 2022 at 9:37 AM Adrien Monteleone <
adrien.montele...@lusfiber.net> wrote:

> An alternative is to use the SQLite backend. There is no file
> cluttering, and the added bonus of instant saves rather than periodic.
> I'm not sure how easy that is to set up on Windows, however.
>
> Regards,
> Adrien
>
> On 8/4/22 5:47 PM, GNC mailinglist wrote:
> > Hi,I'm new to GnuCash but, yep, I was disappointed by the
> multiple backup and log files cluttering the directory where the main
> budget file is stored. I've searched and found out nobody even made a
> workaround. So I wrote a Powershell (Windows) script watching folder for
> new files and moving them to another folder. Take a look at →  github.com
> https://github.com/Kaligula0/FolderWatcher  .  The file has an
> explanation but feel free to comment here or file a bug there.Best
> regards, Char
>
>
> ___
> gnucash-user mailing list
> gnucash-user@gnucash.org
> To update your subscription preferences or to unsubscribe:
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> -
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.
>
___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.


Re: [GNC] Backup files in another folder – solution for Windows

2022-08-05 Thread Adrien Monteleone
An alternative is to use the SQLite backend. There is no file 
cluttering, and the added bonus of instant saves rather than periodic. 
I'm not sure how easy that is to set up on Windows, however.


Regards,
Adrien

On 8/4/22 5:47 PM, GNC mailinglist wrote:

Hi,I'm new to GnuCash but, yep, I was disappointed by the multiple backup 
and log files cluttering the directory where the main budget file is stored. 
I've searched and found out nobody even made a workaround. So I wrote a 
Powershell (Windows) script watching folder for new files and moving them to another 
folder. Take a look at →  github.com https://github.com/Kaligula0/FolderWatcher  .  The 
file has an explanation but feel free to comment here or file a bug there.Best 
regards, Char



___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.


Re: [GNC] Backup files in another folder – solution for Windows

2022-08-04 Thread Glenn Fowler
Thank you for sharing.
I do my backups with PS as well but just do a once daily run and check the
file hash for changes. If it's changed then copy.

On Thu, Aug 4, 2022 at 6:47 PM GNC mailinglist  wrote:

> Hi,I'm new to GnuCash but, yep, I was disappointed by the multiple
> backup and log files cluttering the directory where the main budget file is
> stored. I've searched and found out nobody even made a workaround. So I
> wrote a Powershell (Windows) script watching folder for new files and
> moving them to another folder. Take a look at →  github.com
> https://github.com/Kaligula0/FolderWatcher  .  The file has an
> explanation but feel free to comment here or file a bug there.Best
> regards, Char
> ___
> gnucash-user mailing list
> gnucash-user@gnucash.org
> To update your subscription preferences or to unsubscribe:
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> -
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.
>
___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.