Quantcast

Automatic backup?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Automatic backup?

Rich Gomes
Is there anyway to have Gramps automatically run a backup\export whenever
you close the program? Or to include it in a cronjob?


Thanks,
Rich


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Automatic backup?

Benny Malengier


2008/4/13, Rich Gomes <[hidden email]>:
Is there anyway to have Gramps automatically run a backup\export whenever
you close the program? Or to include it in a cronjob?

GRAMPS takes a dump backup on close which is binary database tables. The old xml backup on close was deemed to slow for larger family trees.

If you want an automatic backup with cronjob, read the man page: man gramps
You can do eg:

 gramps -O name_fam_tree -o backup.gramps

Perhaps add a timestamp in the backup name, and copy to a save place after this line. With 'gramps -l' you see a list of all family trees. Use -i if you do not want to touch the original database (takes still longer).
Use gpkg if you want the media files too, but that can take a lot longer to generate.

It would be great if you make a wiki page with this info and share the cron job. We recieve this question from time to time, and things changed with version 3.0.0

Benny


Thanks,
Rich


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Automatic backup?

Rich Gomes
Ok, I'll try that.
 
What is the filename and extension of the dump backup mentioned below?
What is included?


From: [hidden email] [mailto:[hidden email]] On Behalf Of Benny Malengier
Sent: Monday, April 14, 2008 3:18 AM
To: Rich Gomes
Cc: [hidden email]
Subject: Re: [Gramps-users] Automatic backup?



2008/4/13, Rich Gomes <[hidden email]>:
Is there anyway to have Gramps automatically run a backup\export whenever
you close the program? Or to include it in a cronjob?

GRAMPS takes a dump backup on close which is binary database tables. The old xml backup on close was deemed to slow for larger family trees.

If you want an automatic backup with cronjob, read the man page: man gramps
You can do eg:

 gramps -O name_fam_tree -o backup.gramps

Perhaps add a timestamp in the backup name, and copy to a save place after this line. With 'gramps -l' you see a list of all family trees. Use -i if you do not want to touch the original database (takes still longer).
Use gpkg if you want the media files too, but that can take a lot longer to generate.

It would be great if you make a wiki page with this info and share the cron job. We recieve this question from time to time, and things changed with version 3.0.0

Benny


Thanks,
Rich


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Automatic backup?

Benny Malengier


2008/4/14, Rich Gomes <[hidden email]>:
Ok, I'll try that.
 
What is the filename and extension of the dump backup mentioned below?

If you do on commandline
gramps -l
you get a list of all family trees and their directory position.

In my case, eg ~/.gramps/grampsdb/470ea791/
If you open that dir, you see .db files and .gbkp files. I never looked at that code (Don wrote it) and don't know how it works, but my guess is the gbkp files are the gramps backup files.

Again, those are probably not portable, but the dump tools should be able to extract information from them.

What is included?

The database tables, so all data.
A regular backup job of the .gramps hidden folder and of your media folder, and a cron job of your database to .gramps or .gpkg, should be 100% assurance to anyone (if you save on another PC in a different country ;-) ).

Benny


From: [hidden email] [mailto:[hidden email]] On Behalf Of Benny Malengier
Sent: Monday, April 14, 2008 3:18 AM
To: Rich Gomes
Cc: [hidden email]
Subject: Re: [Gramps-users] Automatic backup?



2008/4/13, Rich Gomes <[hidden email]>:
Is there anyway to have Gramps automatically run a backup\export whenever
you close the program? Or to include it in a cronjob?

GRAMPS takes a dump backup on close which is binary database tables. The old xml backup on close was deemed to slow for larger family trees.

If you want an automatic backup with cronjob, read the man page: man gramps
You can do eg:

 gramps -O name_fam_tree -o backup.gramps

Perhaps add a timestamp in the backup name, and copy to a save place after this line. With 'gramps -l' you see a list of all family trees. Use -i if you do not want to touch the original database (takes still longer).
Use gpkg if you want the media files too, but that can take a lot longer to generate.

It would be great if you make a wiki page with this info and share the cron job. We recieve this question from time to time, and things changed with version 3.0.0

Benny


Thanks,
Rich


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
<a href="http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Gramps-users mailing list
[hidden email]
<a href="https://lists.sourceforge.net/lists/listinfo/gramps-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">https://lists.sourceforge.net/lists/listinfo/gramps-users



-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
Loading...