Disk management: Difference between revisions
No edit summary |
add Mirror a folder |
||
Line 1: | Line 1: | ||
== List all disks and partitions == | |||
* ''Last tested on Ubuntu 14.04.2 LTS (trusty)'' | * ''Last tested on Ubuntu 14.04.2 LTS (trusty)'' | ||
< | <syntaxhighlight lang="bash" highlight="1"> | ||
$ sudo lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL | $ sudo lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL | ||
NAME FSTYPE SIZE MOUNTPOINT LABEL | NAME FSTYPE SIZE MOUNTPOINT LABEL | ||
sda1 ext3 38G / | sda1 ext3 38G / | ||
sda2 swap 2G [SWAP] | sda2 swap 2G [SWAP] | ||
</ | </syntaxhighlight> | ||
== Mirror a folder == | |||
* ''Last tested on Ubuntu 16.04 LTS (xenial)'' | |||
<syntaxhighlight lang="bash" highlight="1"> | |||
$ rsync -azv /folder_a/ /folder_b/ | |||
</syntaxhighlight> | |||
[[Category:System administration]] | [[Category:System administration]] |
Revision as of 09:00, 8 August 2016
List all disks and partitions
- Last tested on Ubuntu 14.04.2 LTS (trusty)
$ sudo lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL
NAME FSTYPE SIZE MOUNTPOINT LABEL
sda1 ext3 38G /
sda2 swap 2G [SWAP]
Mirror a folder
- Last tested on Ubuntu 16.04 LTS (xenial)
$ rsync -azv /folder_a/ /folder_b/