Skip to content

Instantly share code, notes, and snippets.

@mohit242
Created June 3, 2021 18:29
Show Gist options
  • Save mohit242/c6809458758f1d205f9e4e15ee149817 to your computer and use it in GitHub Desktop.
Save mohit242/c6809458758f1d205f9e4e15ee149817 to your computer and use it in GitHub Desktop.
sudo mount -t xfs -o discard /dev/md0 /mnt/temp
sudo mount /dev/sdb /mnt/staging
sudo rm /mnt/temp/* || true
# add python script for dynamic hdd destination loading and copying over staging to destination
screen -dm -S staging bash -c "python copy-script.py"
screen -dm -S logging bash -c "while sleep 600; do plotman status >> plotman_log.txt; done"
screen -dm -S plotting bash -c "plotman plot"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment