Storage optimization: Difference between revisions
imported>Pinage404 m Re add moving store with a second step to remove the old store |
imported>Appetrosyan m Grammar + explained trailing slashes |
||
| Line 150: | Line 150: | ||
mount /dev/disk/by-label/nix /mnt | mount /dev/disk/by-label/nix /mnt | ||
</syntaxhighlight> | </syntaxhighlight> | ||
# Copy everything from <code>/nix</code> to <code>/mnt</code> ''Trailing | # Copy everything from <code>/nix</code> to <code>/mnt</code> ''Trailing slashes are important'', in that without them, <code>rsync</code> will create an additional directory of the same name at the destination. <syntaxhighlight lang="bash"> | ||
rsync --archive --acls --one-file-system --verbose /nix/store/ /mnt/store | rsync --archive --acls --one-file-system --verbose /nix/store/ /mnt/store | ||
rsync --archive --acls --one-file-system --verbose /nix/var/ /mnt/var | rsync --archive --acls --one-file-system --verbose /nix/var/ /mnt/var | ||