Skip to content

Commit

Permalink
backup: remove the backup command which was confusing
Browse files Browse the repository at this point in the history
backup and backup -r was basically replicating the db, while we now
prefer a real sql dump.

with the backup command backuping a corrupted db will succesfully
backup it and pkg backup -r will sucessfully restore a corrupted db.
Making its usage quite useless.
  • Loading branch information
bapt committed Oct 4, 2022
1 parent aa683bf commit eea1a99
Show file tree
Hide file tree
Showing 50 changed files with 2 additions and 317 deletions.
16 changes: 0 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ Table of Contents:
* [Updating remote repositories](#pkgupdate)
* [Searching in remote package repositories](#pkgsearch)
* [Installing from remote repositories](#pkginstall)
* [Backing up your package database](#pkgbackup)
* [Creating a package repository](#pkgcreate)
* [Additional resources](#resources)

Expand Down Expand Up @@ -477,21 +476,6 @@ Or you could also install the packages using only one command, like this:
For more information on the remote package installs, please refer to
*pkg-install(1)*

<a name="pkgbackup"></a>
### Backing up your package database

It is a good idea that you backup your local package database on regular basis.

In order to backup the local package database, you should use the `pkg backup` command.

# pkg backup -d /path/to/pkg-backup.dump

The above command will create a dump of your local package database in
/path/to/pkg-backup.dump

For more information on backing up your local package database, please
refer to *pkg-backup(1)*

<a name="pkgcreate"></a>
### Creating a package repository

Expand Down
1 change: 0 additions & 1 deletion docs/Makefile.autosetup
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ MAN8= pkg-add.8 \
pkg-annotate.8 \
pkg-audit.8 \
pkg-autoremove.8 \
pkg-backup.8 \
pkg-check.8 \
pkg-clean.8 \
pkg-config.8 \
Expand Down
1 change: 0 additions & 1 deletion docs/pkg-add.8
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ See
.Xr pkg-annotate 8 ,
.Xr pkg-audit 8 ,
.Xr pkg-autoremove 8 ,
.Xr pkg-backup 8 ,
.Xr pkg-check 8 ,
.Xr pkg-clean 8 ,
.Xr pkg-config 8 ,
Expand Down
1 change: 0 additions & 1 deletion docs/pkg-alias.8
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ for alias
.Xr pkg-annotate 8 ,
.Xr pkg-audit 8 ,
.Xr pkg-autoremove 8 ,
.Xr pkg-backup 8 ,
.Xr pkg-check 8 ,
.Xr pkg-clean 8 ,
.Xr pkg-config 8 ,
Expand Down
1 change: 0 additions & 1 deletion docs/pkg-annotate.8
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,6 @@ Show all packages with the foo annotation:
.Xr pkg-alias 8 ,
.Xr pkg-audit 8 ,
.Xr pkg-autoremove 8 ,
.Xr pkg-backup 8 ,
.Xr pkg-check 8 ,
.Xr pkg-clean 8 ,
.Xr pkg-config 8 ,
Expand Down
1 change: 0 additions & 1 deletion docs/pkg-audit.8
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ See
.Xr pkg-alias 8 ,
.Xr pkg-annotate 8 ,
.Xr pkg-autoremove 8 ,
.Xr pkg-backup 8 ,
.Xr pkg-check 8 ,
.Xr pkg-clean 8 ,
.Xr pkg-config 8 ,
Expand Down
1 change: 0 additions & 1 deletion docs/pkg-autoremove.8
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ See
.Xr pkg-alias 8 ,
.Xr pkg-annotate 8 ,
.Xr pkg-audit 8 ,
.Xr pkg-backup 8 ,
.Xr pkg-check 8 ,
.Xr pkg-clean 8 ,
.Xr pkg-config 8 ,
Expand Down
108 changes: 0 additions & 108 deletions docs/pkg-backup.8

This file was deleted.

1 change: 0 additions & 1 deletion docs/pkg-check.8
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,6 @@ pkg check -sa
.Xr pkg-annotate 8 ,
.Xr pkg-audit 8 ,
.Xr pkg-autoremove 8 ,
.Xr pkg-backup 8 ,
.Xr pkg-clean 8 ,
.Xr pkg-config 8 ,
.Xr pkg-create 8 ,
Expand Down
1 change: 0 additions & 1 deletion docs/pkg-clean.8
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ See
.Xr pkg-annotate 8 ,
.Xr pkg-audit 8 ,
.Xr pkg-autoremove 8 ,
.Xr pkg-backup 8 ,
.Xr pkg-check 8 ,
.Xr pkg-config 8 ,
.Xr pkg-create 8 ,
Expand Down
1 change: 0 additions & 1 deletion docs/pkg-config.8
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ Getting the directories where the repositories configuration are read:
.Xr pkg-annotate 8 ,
.Xr pkg-audit 8 ,
.Xr pkg-autoremove 8 ,
.Xr pkg-backup 8 ,
.Xr pkg-check 8 ,
.Xr pkg-clean 8 ,
.Xr pkg-create 8 ,
Expand Down
1 change: 0 additions & 1 deletion docs/pkg-create.8
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,6 @@ Create package file for pkg:
.Xr pkg-annotate 8 ,
.Xr pkg-audit 8 ,
.Xr pkg-autoremove 8 ,
.Xr pkg-backup 8 ,
.Xr pkg-check 8 ,
.Xr pkg-clean 8 ,
.Xr pkg-config 8 ,
Expand Down
1 change: 0 additions & 1 deletion docs/pkg-delete.8
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ See
.Xr pkg-annotate 8 ,
.Xr pkg-audit 8 ,
.Xr pkg-autoremove 8 ,
.Xr pkg-backup 8 ,
.Xr pkg-check 8 ,
.Xr pkg-clean 8 ,
.Xr pkg-config 8 ,
Expand Down
1 change: 0 additions & 1 deletion docs/pkg-fetch.8
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ See
.Xr pkg-annotate 8 ,
.Xr pkg-audit 8 ,
.Xr pkg-autoremove 8 ,
.Xr pkg-backup 8 ,
.Xr pkg-check 8 ,
.Xr pkg-clean 8 ,
.Xr pkg-config 8 ,
Expand Down
1 change: 0 additions & 1 deletion docs/pkg-info.8
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,6 @@ See
.Xr pkg-annotate 8 ,
.Xr pkg-audit 8 ,
.Xr pkg-autoremove 8 ,
.Xr pkg-backup 8 ,
.Xr pkg-check 8 ,
.Xr pkg-clean 8 ,
.Xr pkg-config 8 ,
Expand Down
1 change: 0 additions & 1 deletion docs/pkg-install.8
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,6 @@ See
.Xr pkg-annotate 8 ,
.Xr pkg-audit 8 ,
.Xr pkg-autoremove 8 ,
.Xr pkg-backup 8 ,
.Xr pkg-check 8 ,
.Xr pkg-clean 8 ,
.Xr pkg-config 8 ,
Expand Down
1 change: 0 additions & 1 deletion docs/pkg-keywords.5
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@ being in the example case,
.Xr pkg-annotate 8 ,
.Xr pkg-audit 8 ,
.Xr pkg-autoremove 8 ,
.Xr pkg-backup 8 ,
.Xr pkg-check 8 ,
.Xr pkg-clean 8 ,
.Xr pkg-config 8 ,
Expand Down
1 change: 0 additions & 1 deletion docs/pkg-lock.8
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ See
.Xr pkg-annotate 8 ,
.Xr pkg-audit 8 ,
.Xr pkg-autoremove 8 ,
.Xr pkg-backup 8 ,
.Xr pkg-check 8 ,
.Xr pkg-clean 8 ,
.Xr pkg-config 8 ,
Expand Down
1 change: 0 additions & 1 deletion docs/pkg-lua-script.5
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ are be filtered out.
.Xr pkg-annotate 8 ,
.Xr pkg-audit 8 ,
.Xr pkg-autoremove 8 ,
.Xr pkg-backup 8 ,
.Xr pkg-check 8 ,
.Xr pkg-clean 8 ,
.Xr pkg-config 8 ,
Expand Down
1 change: 0 additions & 1 deletion docs/pkg-query.8
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,6 @@ List unmaintained packages:
.Xr pkg-annotate 8 ,
.Xr pkg-audit 8 ,
.Xr pkg-autoremove 8 ,
.Xr pkg-backup 8 ,
.Xr pkg-check 8 ,
.Xr pkg-clean 8 ,
.Xr pkg-config 8 ,
Expand Down
1 change: 0 additions & 1 deletion docs/pkg-register.8
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,6 @@ See
.Xr pkg-annotate 8 ,
.Xr pkg-audit 8 ,
.Xr pkg-autoremove 8 ,
.Xr pkg-backup 8 ,
.Xr pkg-check 8 ,
.Xr pkg-clean 8 ,
.Xr pkg-config 8 ,
Expand Down
1 change: 0 additions & 1 deletion docs/pkg-repo.8
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,6 @@ filename.
.Xr pkg-annotate 8 ,
.Xr pkg-audit 8 ,
.Xr pkg-autoremove 8 ,
.Xr pkg-backup 8 ,
.Xr pkg-check 8 ,
.Xr pkg-clean 8 ,
.Xr pkg-config 8 ,
Expand Down
1 change: 0 additions & 1 deletion docs/pkg-repository.5
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,6 @@ in
.Xr pkg-annotate 8 ,
.Xr pkg-audit 8 ,
.Xr pkg-autoremove 8 ,
.Xr pkg-backup 8 ,
.Xr pkg-check 8 ,
.Xr pkg-clean 8 ,
.Xr pkg-config 8 ,
Expand Down
1 change: 0 additions & 1 deletion docs/pkg-rquery.8
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,6 @@ for example usage.
.Xr pkg-annotate 8 ,
.Xr pkg-audit 8 ,
.Xr pkg-autoremove 8 ,
.Xr pkg-backup 8 ,
.Xr pkg-check 8 ,
.Xr pkg-clean 8 ,
.Xr pkg-config 8 ,
Expand Down
1 change: 0 additions & 1 deletion docs/pkg-script.5
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ Variable existing when the scripts is run in the context of an upgrade of the pa
.Xr pkg-annotate 8 ,
.Xr pkg-audit 8 ,
.Xr pkg-autoremove 8 ,
.Xr pkg-backup 8 ,
.Xr pkg-check 8 ,
.Xr pkg-clean 8 ,
.Xr pkg-config 8 ,
Expand Down
1 change: 0 additions & 1 deletion docs/pkg-search.8
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,6 @@ See
.Xr pkg-annotate 8 ,
.Xr pkg-audit 8 ,
.Xr pkg-autoremove 8 ,
.Xr pkg-backup 8 ,
.Xr pkg-check 8 ,
.Xr pkg-clean 8 ,
.Xr pkg-config 8 ,
Expand Down
1 change: 0 additions & 1 deletion docs/pkg-set.8
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ for further description.
.Xr pkg-annotate 8 ,
.Xr pkg-audit 8 ,
.Xr pkg-autoremove 8 ,
.Xr pkg-backup 8 ,
.Xr pkg-check 8 ,
.Xr pkg-clean 8 ,
.Xr pkg-config 8 ,
Expand Down
1 change: 0 additions & 1 deletion docs/pkg-shell.8
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ See
.Xr pkg-annotate 8 ,
.Xr pkg-audit 8 ,
.Xr pkg-autoremove 8 ,
.Xr pkg-backup 8 ,
.Xr pkg-check 8 ,
.Xr pkg-clean 8 ,
.Xr pkg-config 8 ,
Expand Down
1 change: 0 additions & 1 deletion docs/pkg-shlib.8
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ See
.Xr pkg-annotate 8 ,
.Xr pkg-audit 8 ,
.Xr pkg-autoremove 8 ,
.Xr pkg-backup 8 ,
.Xr pkg-check 8 ,
.Xr pkg-clean 8 ,
.Xr pkg-config 8 ,
Expand Down
1 change: 0 additions & 1 deletion docs/pkg-ssh.8
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ See
.Xr pkg-annotate 8 ,
.Xr pkg-audit 8 ,
.Xr pkg-autoremove 8 ,
.Xr pkg-backup 8 ,
.Xr pkg-check 8 ,
.Xr pkg-clean 8 ,
.Xr pkg-config 8 ,
Expand Down
1 change: 0 additions & 1 deletion docs/pkg-stats.8
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ See
.Xr pkg-annotate 8 ,
.Xr pkg-audit 8 ,
.Xr pkg-autoremove 8 ,
.Xr pkg-backup 8 ,
.Xr pkg-check 8 ,
.Xr pkg-clean 8 ,
.Xr pkg-config 8 ,
Expand Down
1 change: 0 additions & 1 deletion docs/pkg-triggers.5
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ the transaction.
.Xr pkg-annotate 8 ,
.Xr pkg-audit 8 ,
.Xr pkg-autoremove 8 ,
.Xr pkg-backup 8 ,
.Xr pkg-check 8 ,
.Xr pkg-clean 8 ,
.Xr pkg-config 8 ,
Expand Down
1 change: 0 additions & 1 deletion docs/pkg-triggers.8
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ See
.Xr pkg-annotate 8 ,
.Xr pkg-audit 8 ,
.Xr pkg-autoremove 8 ,
.Xr pkg-backup 8 ,
.Xr pkg-check 8 ,
.Xr pkg-clean 8 ,
.Xr pkg-config 8 ,
Expand Down
1 change: 0 additions & 1 deletion docs/pkg-update.8
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ See
.Xr pkg-annotate 8 ,
.Xr pkg-audit 8 ,
.Xr pkg-autoremove 8 ,
.Xr pkg-backup 8 ,
.Xr pkg-check 8 ,
.Xr pkg-clean 8 ,
.Xr pkg-config 8 ,
Expand Down
Loading

0 comments on commit eea1a99

Please sign in to comment.