Skip to content

Instantly share code, notes, and snippets.

@RobCranfill
Created January 6, 2023 17:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RobCranfill/f10180d818f6e64d1d4286bf86a633cf to your computer and use it in GitHub Desktop.
Save RobCranfill/f10180d818f6e64d1d4286bf86a633cf to your computer and use it in GitHub Desktop.
Back up and document work from a circuitpython thumb drive
#!/bin/bash
# copy work files from thumbdrive to a folder here
# params: {new folder name}
NEWFOLDER="$1"
mkdir "$NEWFOLDER"
cp /mnt/f/*py "$NEWFOLDER"
ls -Al /mnt/f/lib >>"$NEWFOLDER"/liblist.text
tree /mnt/f/ >>"$NEWFOLDER"/dirtree.text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment