FreeBSD PKG Backup

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












As I'm finally getting around to reading through the FreeBSD Handbook, I discovered that PKG is taking daily backups of the package database (defined in periodic.conf). My questions are as follows:



  • Is a daily pkg backup necessary for a desktop environment?

  • What would be the downside to disabling the backup (daily_backup_pkgdb_enable="NO")?

  • Why would I ever need to restore a backup of the package database?









share|improve this question























  • The package database contains details of every port and package installed on the desktop. If it became corrupted, it may be difficult to update the desktop without doing a fresh installation. All of my installs are scripted, so if the package database became corrupted, I wouldn't even bother with the pkgdb backup.
    – Richard Smith
    Nov 28 at 17:50










  • Thanks Richard! Scripting installs sounds like a much better idea (once I settle on a core group of packages). Do you happen to know if the pkg db gets updated after each new package is installed? Or are the daily backup and manually running the backup process the only 2 options (aside from skipping this altogether and running install scripts of known packages)? Just trying to decide if I should keep it automated, or if I disable it, will I need to remember to backup the pkg db manually with each new install?
    – bgregs
    Nov 28 at 18:07










  • Why do you want to turn it off? Is there a problem you are attempting to solve?
    – Richard Smith
    Nov 28 at 18:27










  • There is no issue I'm trying to solve, I'm just a firm believer in trying to understand what's running in the background. This question stems from my lack of understanding definitely. When I read "automated backup", I got the impression of a lot of wasted space. If it only keeps one daily copy and just overwrites it each day, I'm fine with that approach. Ultimately, I just couldn't find any straightforward answer to the pkg db's role, and wanted to understand it.
    – bgregs
    Nov 28 at 18:36






  • 1




    It keeps about 7 copies. But it is configurable. See /usr/local/etc/periodic/daily/411.pkg-backup.
    – Richard Smith
    Nov 28 at 18:42














up vote
1
down vote

favorite












As I'm finally getting around to reading through the FreeBSD Handbook, I discovered that PKG is taking daily backups of the package database (defined in periodic.conf). My questions are as follows:



  • Is a daily pkg backup necessary for a desktop environment?

  • What would be the downside to disabling the backup (daily_backup_pkgdb_enable="NO")?

  • Why would I ever need to restore a backup of the package database?









share|improve this question























  • The package database contains details of every port and package installed on the desktop. If it became corrupted, it may be difficult to update the desktop without doing a fresh installation. All of my installs are scripted, so if the package database became corrupted, I wouldn't even bother with the pkgdb backup.
    – Richard Smith
    Nov 28 at 17:50










  • Thanks Richard! Scripting installs sounds like a much better idea (once I settle on a core group of packages). Do you happen to know if the pkg db gets updated after each new package is installed? Or are the daily backup and manually running the backup process the only 2 options (aside from skipping this altogether and running install scripts of known packages)? Just trying to decide if I should keep it automated, or if I disable it, will I need to remember to backup the pkg db manually with each new install?
    – bgregs
    Nov 28 at 18:07










  • Why do you want to turn it off? Is there a problem you are attempting to solve?
    – Richard Smith
    Nov 28 at 18:27










  • There is no issue I'm trying to solve, I'm just a firm believer in trying to understand what's running in the background. This question stems from my lack of understanding definitely. When I read "automated backup", I got the impression of a lot of wasted space. If it only keeps one daily copy and just overwrites it each day, I'm fine with that approach. Ultimately, I just couldn't find any straightforward answer to the pkg db's role, and wanted to understand it.
    – bgregs
    Nov 28 at 18:36






  • 1




    It keeps about 7 copies. But it is configurable. See /usr/local/etc/periodic/daily/411.pkg-backup.
    – Richard Smith
    Nov 28 at 18:42












up vote
1
down vote

favorite









up vote
1
down vote

favorite











As I'm finally getting around to reading through the FreeBSD Handbook, I discovered that PKG is taking daily backups of the package database (defined in periodic.conf). My questions are as follows:



  • Is a daily pkg backup necessary for a desktop environment?

  • What would be the downside to disabling the backup (daily_backup_pkgdb_enable="NO")?

  • Why would I ever need to restore a backup of the package database?









share|improve this question















As I'm finally getting around to reading through the FreeBSD Handbook, I discovered that PKG is taking daily backups of the package database (defined in periodic.conf). My questions are as follows:



  • Is a daily pkg backup necessary for a desktop environment?

  • What would be the downside to disabling the backup (daily_backup_pkgdb_enable="NO")?

  • Why would I ever need to restore a backup of the package database?






freebsd pkg






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 28 at 15:01









Rui F Ribeiro

38.4k1478127




38.4k1478127










asked Nov 28 at 13:18









bgregs

1379




1379











  • The package database contains details of every port and package installed on the desktop. If it became corrupted, it may be difficult to update the desktop without doing a fresh installation. All of my installs are scripted, so if the package database became corrupted, I wouldn't even bother with the pkgdb backup.
    – Richard Smith
    Nov 28 at 17:50










  • Thanks Richard! Scripting installs sounds like a much better idea (once I settle on a core group of packages). Do you happen to know if the pkg db gets updated after each new package is installed? Or are the daily backup and manually running the backup process the only 2 options (aside from skipping this altogether and running install scripts of known packages)? Just trying to decide if I should keep it automated, or if I disable it, will I need to remember to backup the pkg db manually with each new install?
    – bgregs
    Nov 28 at 18:07










  • Why do you want to turn it off? Is there a problem you are attempting to solve?
    – Richard Smith
    Nov 28 at 18:27










  • There is no issue I'm trying to solve, I'm just a firm believer in trying to understand what's running in the background. This question stems from my lack of understanding definitely. When I read "automated backup", I got the impression of a lot of wasted space. If it only keeps one daily copy and just overwrites it each day, I'm fine with that approach. Ultimately, I just couldn't find any straightforward answer to the pkg db's role, and wanted to understand it.
    – bgregs
    Nov 28 at 18:36






  • 1




    It keeps about 7 copies. But it is configurable. See /usr/local/etc/periodic/daily/411.pkg-backup.
    – Richard Smith
    Nov 28 at 18:42
















  • The package database contains details of every port and package installed on the desktop. If it became corrupted, it may be difficult to update the desktop without doing a fresh installation. All of my installs are scripted, so if the package database became corrupted, I wouldn't even bother with the pkgdb backup.
    – Richard Smith
    Nov 28 at 17:50










  • Thanks Richard! Scripting installs sounds like a much better idea (once I settle on a core group of packages). Do you happen to know if the pkg db gets updated after each new package is installed? Or are the daily backup and manually running the backup process the only 2 options (aside from skipping this altogether and running install scripts of known packages)? Just trying to decide if I should keep it automated, or if I disable it, will I need to remember to backup the pkg db manually with each new install?
    – bgregs
    Nov 28 at 18:07










  • Why do you want to turn it off? Is there a problem you are attempting to solve?
    – Richard Smith
    Nov 28 at 18:27










  • There is no issue I'm trying to solve, I'm just a firm believer in trying to understand what's running in the background. This question stems from my lack of understanding definitely. When I read "automated backup", I got the impression of a lot of wasted space. If it only keeps one daily copy and just overwrites it each day, I'm fine with that approach. Ultimately, I just couldn't find any straightforward answer to the pkg db's role, and wanted to understand it.
    – bgregs
    Nov 28 at 18:36






  • 1




    It keeps about 7 copies. But it is configurable. See /usr/local/etc/periodic/daily/411.pkg-backup.
    – Richard Smith
    Nov 28 at 18:42















The package database contains details of every port and package installed on the desktop. If it became corrupted, it may be difficult to update the desktop without doing a fresh installation. All of my installs are scripted, so if the package database became corrupted, I wouldn't even bother with the pkgdb backup.
– Richard Smith
Nov 28 at 17:50




The package database contains details of every port and package installed on the desktop. If it became corrupted, it may be difficult to update the desktop without doing a fresh installation. All of my installs are scripted, so if the package database became corrupted, I wouldn't even bother with the pkgdb backup.
– Richard Smith
Nov 28 at 17:50












Thanks Richard! Scripting installs sounds like a much better idea (once I settle on a core group of packages). Do you happen to know if the pkg db gets updated after each new package is installed? Or are the daily backup and manually running the backup process the only 2 options (aside from skipping this altogether and running install scripts of known packages)? Just trying to decide if I should keep it automated, or if I disable it, will I need to remember to backup the pkg db manually with each new install?
– bgregs
Nov 28 at 18:07




Thanks Richard! Scripting installs sounds like a much better idea (once I settle on a core group of packages). Do you happen to know if the pkg db gets updated after each new package is installed? Or are the daily backup and manually running the backup process the only 2 options (aside from skipping this altogether and running install scripts of known packages)? Just trying to decide if I should keep it automated, or if I disable it, will I need to remember to backup the pkg db manually with each new install?
– bgregs
Nov 28 at 18:07












Why do you want to turn it off? Is there a problem you are attempting to solve?
– Richard Smith
Nov 28 at 18:27




Why do you want to turn it off? Is there a problem you are attempting to solve?
– Richard Smith
Nov 28 at 18:27












There is no issue I'm trying to solve, I'm just a firm believer in trying to understand what's running in the background. This question stems from my lack of understanding definitely. When I read "automated backup", I got the impression of a lot of wasted space. If it only keeps one daily copy and just overwrites it each day, I'm fine with that approach. Ultimately, I just couldn't find any straightforward answer to the pkg db's role, and wanted to understand it.
– bgregs
Nov 28 at 18:36




There is no issue I'm trying to solve, I'm just a firm believer in trying to understand what's running in the background. This question stems from my lack of understanding definitely. When I read "automated backup", I got the impression of a lot of wasted space. If it only keeps one daily copy and just overwrites it each day, I'm fine with that approach. Ultimately, I just couldn't find any straightforward answer to the pkg db's role, and wanted to understand it.
– bgregs
Nov 28 at 18:36




1




1




It keeps about 7 copies. But it is configurable. See /usr/local/etc/periodic/daily/411.pkg-backup.
– Richard Smith
Nov 28 at 18:42




It keeps about 7 copies. But it is configurable. See /usr/local/etc/periodic/daily/411.pkg-backup.
– Richard Smith
Nov 28 at 18:42















active

oldest

votes











Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f484663%2ffreebsd-pkg-backup%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Unix & Linux Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f484663%2ffreebsd-pkg-backup%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown






Popular posts from this blog

How to check contact read email or not when send email to Individual?

Displaying single band from multi-band raster using QGIS

How many registers does an x86_64 CPU actually have?