stooovie,
@stooovie@mas.to avatar

When works, it can be enormously helpful.

Copilot wrote me a script that duplicates a pretty deep tree structure of 16TB worth of footage, AND only copy over files in subfolders with "Proxy" in filename.

It would taky hours to do manually, prone to errors.

stooovie,
@stooovie@mas.to avatar

Feel free to use it:

#!/bin/bash

Source directory containing the folder structure

source_dir="SOURCE PATH"

Destination directory where the structure will be copied

target_dir="TARGET PATH"

cd "$source_dir" && find . -type d -name "Proxy" -exec mkdir -p -- "$target_dir/{}" ;

Copy files from directories with "Proxy" in their names

find . -type f -path "Proxy" -exec cp -p -- {} "$target_dir/{}" ;

  • All
  • Subscribed
  • Moderated
  • Favorites
  • ai
  • ngwrru68w68
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • megavids
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • provamag3
  • JUstTest
  • All magazines