vault-cli: commit one-off migration scripts before extraction to standalone repo
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Final placement pass for the 8 flagged/reviewed _unsorted items."""
|
||||
import os, shutil, sys
|
||||
|
||||
U = "/data/_unsorted"
|
||||
D = "/data"
|
||||
|
||||
MOVES = [
|
||||
# (src relative to _unsorted, dst absolute under /data)
|
||||
("1 Life admin/10 Management of area 10-19/10.09 Archive for area 10-19/SMS Backups as of 2026-04-07/data",
|
||||
"R Ryan/R.1 Life admin/R.11 Identity & vital records/R.11.55 SMS backups"),
|
||||
("1 Life admin/11 Me & other living things/11.09 Archive for category 11/2025-08-07 AI Deck for Jen.pdf",
|
||||
"J Jen/J.0 Meta/J.00 Meta/J.00.01 Inbox for Jen/2025-08-07 AI Deck for Jen.pdf"),
|
||||
("1 Life admin/11 Me & other living things/11.43 My family/Moms Anandi Book & Screenplay/America's Niece - Proposal.pdf",
|
||||
"F Family/F.5 People/F.50 Family/F.50.20 Pandyas/F.50.21 Nandini Pandya/America's Niece - Proposal.pdf"),
|
||||
("1 Life admin/11 Me & other living things/11.71 My career sales pitch/Ryan_Pandya_Resume___2024_10-1.pdf",
|
||||
"R Ryan/R.2 Career/R.20 Curiosity/R.20.02 Resume/Ryan_Pandya_Resume___2024_10-1.pdf"),
|
||||
("1 Life admin/11 Me & other living things/11.71 My career sales pitch/Ryan_Pandya_Resume.pdf",
|
||||
"R Ryan/R.2 Career/R.20 Curiosity/R.20.02 Resume/Ryan_Pandya_Resume.pdf"),
|
||||
("1 Life admin/12 Home, house, and transport/12.01 Inbox for category 12/2021-03-08 - 6 Dorothy sheet from Jason.pdf",
|
||||
"F Family/F.1 Home, household & finances/F.11 Home & property/F.11.09 Old Homes/2021-2026 Dorothy/2021-03-08 - 6 Dorothy sheet from Jason.pdf"),
|
||||
("1 Life admin/13 Money earned, spent, saved, & owed/13.01 Inbox for category 13/Voided check.jpg",
|
||||
"R Ryan/R.1 Life admin/R.13 Personal finance/R.13.01 Inbox/Voided check.jpg"),
|
||||
("1 Life admin/13 Money earned, spent, saved, & owed/13.41 Bank accounts/Ryan Wells Fargo direct deposit instructions.pdf",
|
||||
"R Ryan/R.1 Life admin/R.13 Personal finance/R.13.01 Inbox/Ryan Wells Fargo direct deposit instructions.pdf"),
|
||||
("1 Life admin/14 My digital life/14.14 My data storage & backups/Google backup key.pdf",
|
||||
"R Ryan/R.1 Life admin/R.14 My digital life/R.14.01 Inbox/Google backup key.pdf"),
|
||||
("3 Hobbies & interests/30 Management for Hobbies/30.01 Inbox for Hobbies/elixirbook.pdf",
|
||||
"R Ryan/R.3 Hobbies & interests/R.35 Computers/R.35.21 Computer & programming language textbooks/elixirbook.pdf"),
|
||||
]
|
||||
|
||||
execute = "--execute" in sys.argv
|
||||
for rel_src, rel_dst in MOVES:
|
||||
src = os.path.join(U, rel_src)
|
||||
dst = os.path.join(D, rel_dst)
|
||||
exists = os.path.exists(src)
|
||||
print(f"{'OK ' if exists else 'MISS'} {src} -> {dst}")
|
||||
if execute and exists:
|
||||
os.makedirs(os.path.dirname(dst), exist_ok=True)
|
||||
shutil.move(src, dst)
|
||||
|
||||
if execute:
|
||||
print("Done.")
|
||||
else:
|
||||
print("\n(dry run -- pass --execute)")
|
||||
Reference in New Issue
Block a user