Skip to content

Commit

Permalink
Updated instructions to reference cpstage4
Browse files Browse the repository at this point in the history
  • Loading branch information
TheChymera committed May 23, 2023
1 parent acd878f commit feb0cfd
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ The script can be run directly from its containing folder (and thus, is installe
```bash
git clone https://github.com/TheChymera/mkstage4.git /your/mkstage4/directory
cd /your/mkstage4/directory
chmod +x mkstage4.sh exstage4.sh
chmod +x cpstage4.sh exstage4.sh mkstage4.sh
```

For [Gentoo Linux](http://en.wikipedia.org/wiki/Gentoo_linux) and [Derivatives](http://en.wikipedia.org/wiki/Category:Gentoo_Linux_derivatives), mkstage4 is also available in [Portage](http://en.wikipedia.org/wiki/Portage_(software)) via the base Gentoo overlay.
Expand Down Expand Up @@ -46,6 +46,12 @@ Archive a system located at a custom mount point:
mkstage4 -t /custom/mount/point archive_name
```

Copy a system to a separate drive, e.g. for quick backup.

```bash
cpstage4 / /run/media/myuser/mybackupdrive
```

### Command line arguments

```console
Expand Down Expand Up @@ -76,7 +82,7 @@ If in doubt, use one of the explicit extraction methods described below.

Tarballs created with mkstage4 can be extracted with:

To preserve binary attributes and use numeric owner identifiers (considered good practice on Gentoo), you can simply append the relevant flags to the respective `tar` commands, e.g.:
To preserve binary attributes and use numeric owner identifiers, you can simply append the relevant flags to the respective `tar` commands, e.g.:

```bash
tar xvjpf archive_name.tar.bz2 --xattrs-include='*.*' --numeric-owner
Expand Down

0 comments on commit feb0cfd

Please sign in to comment.