mirror of
https://github.com/borgbackup/borg.git
synced 2025-03-04 02:28:34 +00:00
use --numeric-ids in pull doc
replace flag --numeric-owner with --numeric-ids
This commit is contained in:
parent
791720407b
commit
1345f06f2b
1 changed files with 3 additions and 3 deletions
|
@ -58,7 +58,7 @@ completely in every aspect from such a backup.
|
||||||
mappings, assuming they only come from files (/etc/passwd and group).
|
mappings, assuming they only come from files (/etc/passwd and group).
|
||||||
This assumption might be wrong, e.g. if users/groups also come from
|
This assumption might be wrong, e.g. if users/groups also come from
|
||||||
ldap or other providers.
|
ldap or other providers.
|
||||||
Thus, it might be better to use ``--numeric-owner`` and not archive any
|
Thus, it might be better to use ``--numeric-ids`` and not archive any
|
||||||
user or group names (but just the numeric IDs) and not use chroot.
|
user or group names (but just the numeric IDs) and not use chroot.
|
||||||
|
|
||||||
Creating a backup
|
Creating a backup
|
||||||
|
@ -181,13 +181,13 @@ When doing a full restore, we restore all files (including the ones containing
|
||||||
the ID-to-name mapping, ``/etc/passwd`` and ``/etc/group``). Everything will be
|
the ID-to-name mapping, ``/etc/passwd`` and ``/etc/group``). Everything will be
|
||||||
consistent automatically if we restore the numeric IDs stored in the archive. So
|
consistent automatically if we restore the numeric IDs stored in the archive. So
|
||||||
there is no need for a chroot environment; we just mount the client file system
|
there is no need for a chroot environment; we just mount the client file system
|
||||||
and extract a backup, utilizing the ``--numeric-owner`` option:
|
and extract a backup, utilizing the ``--numeric-ids`` option:
|
||||||
|
|
||||||
::
|
::
|
||||||
|
|
||||||
sshfs root@host:/ /mnt/sshfs
|
sshfs root@host:/ /mnt/sshfs
|
||||||
cd /mnt/sshfs
|
cd /mnt/sshfs
|
||||||
borg extract --numeric-owner /path/to/repo::archive
|
borg extract --numeric-ids /path/to/repo::archive
|
||||||
cd ~
|
cd ~
|
||||||
umount /mnt/sshfs
|
umount /mnt/sshfs
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue