# create
dd if=/dev/zero of=/tmp/sparse_file bs=1 count=0 seek=512M
sudo losetup /dev/loop10 /tmp/sparse_file
sudo zpool create test /dev/loop10
sudo zpool status test
# write
sudo zfs create test/fs
sudo dd if=/dev/urandom of=/test/fs/bigfile bs=1M count=400 status=progress
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
| #!/usr/bin/env bash | |
| ## move away CR2 and AAE files | |
| cd /data/ | |
| SRC="./Fotos-Mediathek.photoslibrary/Masters/" | |
| DEST="./additional-files/Masters/" | |
| sudo mkdir -p "$DEST" | |
| sudo rsync -av \ | |
| --remove-source-files \ |
OlderNewer