Last active
September 25, 2017 18:14
-
-
Save mumblepins/cc3a426417dfb59d5fd1e57c1c339ba1 to your computer and use it in GitHub Desktop.
moving a folder to a new filesystem, rsync, change mount point, move to temporary folder, zfs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rsync -avh /var/log/ /tmp/var/log/ \ | |
&& umount /tmp/var/log \ | |
&& sed -i 's|/tmp/var/log|/var/log|' /etc/fstab \ | |
&& mv /var/log /var/logbak \ | |
&& mkdir /var/log \ | |
&& mount /var/log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment