I often have a reason to work with a test tree.
It might be to experiment with a new version of Gramps. But more often it is because a tool, view, statistic readout or report cannot be limited to the ancestors/descendants of a proband. It considers the whole (huge) tree. So I have to enforce the limit manually.
So I make a duplicate of the main 40,000 person Tree and prune it severely.
(Keep only: Descendants of the current proband, ancestors of children of the proband, and anyone within 2 degrees of separation of those ancestors and descendants. This keeps the immediate blended family members.
Alternatively, use the Fitler+ gramplet to scrape the current view filtering parameter into a custom filter and delete anyone who doesnāt match.)
Then set the Themes to the unpleasant (in my opinion) highācontrast theme as a reminder Iām working in a ādisposableā tree. (The annoyance factor keeps me from dwelling too long and thoughtlessly adding to its culled population.) And add the Session Log gramplet to the Dashboard.
At the end of the session, Iāll review the session logā¦ to remind me of what was touched. (I can do a compete individual report, if substantive changes make that advisable. Then use the report to roll my āoops, changed the wrong treeā into the main tree.) Then use the Family Manager to delete the current (temporary) Tree, load a different tree, change the Theme back to normal, and reset the Session Log.
But it would be great if this could be done more simply. Such as a button in the Family Trees manager to make a sacrificial clone of the selected Tree folder from the Database directory in an OS managed Temporary cache. Then load (converting if necessary) that clone, set the theme and add the Session Log to the dashboard.
I know that I can export an XML and load into a new tree. Build this would not have the idiosyncrasies and tedium. (Having to switch to the appropriate production version of Gramps to avoid accidentally converting its schema, having IDs converted during import, changing the last used timestamp on the source tree.) And I wouldnāt have remember to dispose of the sandbox clone when done.
Instead of tens of minutes setting up a sandbox and cleaning up afterwards, sandboxing would take mere seconds.
Benefits of letting the OS Temporary folder manage a disposable clone Tree
As an expert on the Fedora Linux OS, describe how it manages its temporary files. In particular, where the temporaty files are stores, how long they are retained and what causes files to be purged.
Fedora Linux manages temporary files using systemd-tmpfiles, which provides a structured and configurable approach.
Storage Locations
/tmp
: Used for temporary files that do not need to persist across reboots. It is typically backed bytmpfs
(RAM/swap) and is cleared on system reboot[2][6]./var/tmp
: Used for files that need to persist across reboots. It resides on persistent storage[2][6].
Retention Periods
- Files in
/tmp
are removed after 10 days of inactivity by default[7][9]. - Files in
/var/tmp
are removed after 30 days of inactivity[7][9].
Purging Mechanism
- Temporary files are cleaned using tools like tmpwatch, which removes files based on their last access time[9][10].
- The cleanup behavior can be configured via
/usr/lib/tmpfiles.d/tmp.conf
or similar configuration files, allowing customization of retention periods and exclusions[10].
This system ensures efficient management of temporary files while preventing unnecessary accumulation.
Citations:
[1] Configuration of Temporary Files with systemd-tmpfiles | Baeldung on Linux
[2] Where is the temporary directory in Linux? - Super User
[3] linux - How long are files kept in /var/tmp/, and how to use the directory? - Super User
[4] https://quizlet.com/60101893/os-chapter-11-test-flash-cards/
[5] Managing temporary files with systemd-tmpfiles on RHEL 7 | Red Hat Developer
[6] Using /tmp/ and /var/tmp/ Safely
[7] FedoraForum.org
[8] Reddit - Dive into anything
[9] clearing out /tmp safely - users - Fedora mailing-lists
[10] linux - When does /tmp get cleared? - Server Fault
[11] Temporary Files :: Fedora Docs
Answer from Perplexity: https://www.perplexity.ai/search/as-an-expert-on-the-fedora-lin-vcE3geU1RMOZyHFj0WKRpw?utm_source=copy_output