mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
apt-clone: add page (#13901)
Co-authored-by: Wiktor Perskawiec <git@spageektti.cc> Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
This commit is contained in:
parent
ac3c978a0f
commit
7c8301032e
1 changed files with 24 additions and 0 deletions
24
pages/linux/apt-clone.md
Normal file
24
pages/linux/apt-clone.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
# apt-clone
|
||||
|
||||
> Clone/backup/restore the package state of a Debian-based system.
|
||||
> More information: <https://github.com/mvo5/apt-clone>.
|
||||
|
||||
- Clone the package state of the current system into a specified directory:
|
||||
|
||||
`apt-clone clone {{path/to/directory}}`
|
||||
|
||||
- Create a clone file (`tar.gz`) for backup purposes:
|
||||
|
||||
`apt-clone clone --destination {{path/to/backup.tar.gz}}`
|
||||
|
||||
- Restore the package state from a clone file:
|
||||
|
||||
`apt-clone restore {{path/to/backup.tar.gz}}`
|
||||
|
||||
- Show information about a clone file (e.g., the release, architecture):
|
||||
|
||||
`apt-clone info {{path/to/backup.tar.gz}}`
|
||||
|
||||
- Check if the clone file can be restored on the current system:
|
||||
|
||||
`apt-clone restore {{path/to/backup.tar.gz}} --destination {{path/to/restore}}`
|
Loading…
Add table
Reference in a new issue