Legacy Folder Copy
This tool copies course folders in our legacy S3 bucket (lessons.solidprofessor.com).
When you run it on a folder like 25CSWAPE02_01, it creates a new copy called
26CSWAPE02_01 — bumping the year by one — and automatically finds every
SolidProfessor tutorial URL inside the HTML, CSS, JS, XML, and PDF files, replacing the old lesson IDs
with new ones from a CSV spreadsheet you provide. Images, videos, and other binary files are copied as-is.
Nothing changes until you say so. The tool runs in preview mode by default, showing you
exactly what it will do. You only add --execute when you're ready to make real changes.
First-time setup
Download the tool, install the AWS CLI, and configure your credentials.
Get startedI'm already set up
Jump straight to the usage guide — copy commands, batch mode, and flags.
Go to guideDownload
Click the button for your computer. The file will download immediately — no login required.
v1.0.0
One-Time Setup
You only need to do these steps once on your computer.
Step 1 — Install the AWS CLI
Windows
- Download the installer: AWSCLIV2.msi
- Double-click the downloaded file and follow the prompts to install.
- Close and reopen any Command Prompt or PowerShell windows you had open so they pick up the new installation.
Mac instructions
Open Terminal (search for "Terminal" in Spotlight) and paste:
brew install awscli
If you see "command not found: brew", install Homebrew first:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Then run brew install awscli again.
Step 2 — Configure your AWS credentials
Use the key provided to you, or reach out to the core platform team for keys.
Open Command Prompt (Windows) or Terminal (Mac) and run:
aws configure
It will ask four questions. Type each answer and press Enter:
AWS Access Key ID [None]: YOUR_ACCESS_KEY_HERE
AWS Secret Access Key [None]: YOUR_SECRET_KEY_HERE
Default region name [None]: us-west-1
Default output format [None]: json
Replace YOUR_ACCESS_KEY_HERE and YOUR_SECRET_KEY_HERE with your real keys.
Verify it worked
aws s3 ls s3://lessons.solidprofessor.com/
You should see a short list of folder names. If you get an error, double-check your keys.
Step 3 — Install the tool
Windows
- Click the Download .exe button above. The file saves to your Downloads folder automatically.
- Open Command Prompt (press the Windows key, type
cmd, press Enter). - Navigate to your Downloads folder and test the tool:
cd %USERPROFILE%\Downloads .\legacy-folder-copy-windows-amd64.exe version
Tip: To save typing, you can rename the file to lfc.exe. Then your commands
become: .\lfc.exe version
Mac instructions
- Click the correct Download button above for your Mac.
- Open Terminal and run:
# Apple Silicon (M1/M2/M3/M4): sudo cp ~/Downloads/legacy-folder-copy-darwin-arm64 /usr/local/bin/legacy-folder-copy # Intel Mac: sudo cp ~/Downloads/legacy-folder-copy-darwin-amd64 /usr/local/bin/legacy-folder-copy - Make it executable:
sudo chmod +x /usr/local/bin/legacy-folder-copy - Remove the macOS quarantine flag:
xattr -d com.apple.quarantine /usr/local/bin/legacy-folder-copy - Test it:
legacy-folder-copy version
xattr command in step 4 above.