Set up the base directory structure

A consistent directory hierarchy is the backbone of a professional digital asset workflow. For DG Micro bag photography, where files range from high-resolution RAW captures to color-graded exports, organization prevents data loss and speeds up post-production. We will use Linux command-line tools to build a scalable structure that separates raw captures from processed files and final exports.

The root directory serves as the container for all DG Micro projects. Inside, we create a year-based folder to manage archival data, followed by specific folders for brand identity and unique shoot identifiers. This nested approach ensures that every image, regardless of the shoot date, lands in a predictable location.

Execute the following commands to establish this structure. Replace 2026 with the current year and shoot_001 with your specific project code.

DG Micro
1
Create the root project directory

Open your terminal and navigate to your primary storage mount. Create the main dg-micro directory using mkdir -p. The -p flag ensures parent directories are created if they do not exist, preventing errors if the parent path is missing.

Shell
Shell
mkdir -p /dg-micro
2
Organize by year and brand

Inside the root, create a year-specific folder (e.g., 2026) and a brand subdirectory. This structure allows you to aggregate all DG Micro projects from a specific year in one place while keeping brand-specific assets distinct from other fashion lines.

Shell
Shell
mkdir -p /dg-micro/2026/brand
DG Micro
3
Define the shoot identifier

Create a unique shoot_id folder within the brand directory. Use an alphanumeric code (e.g., shoot_001) to distinguish between different lighting setups, locations, or bag variations. This ensures that assets from a "Red Calfskin" shoot do not mix with a "Black Patent" shoot.

Shell
Shell
mkdir -p /dg-micro/2026/brand/shoot_001
DG Micro
4
Create raw, processed, and exports folders

Finally, create the three core subdirectories for asset management: raw, processed, and exports. The raw folder stores unedited camera files. The processed folder holds edited TIFFs or PSDs. The exports folder contains final JPEGs or PNGs ready for web or print use. This separation keeps your working environment clean and reduces clutter.

Shell
Shell
mkdir -p /dg-micro/2026/brand/shoot_001/{raw,processed,exports}

This structure provides a clear, logical path for your files. By adhering to this hierarchy, you ensure that every DG Micro photograph is stored in a location that is both human-readable and machine-parseable, facilitating efficient backups and retrieval.

Name files with consistent metadata

Consistent naming conventions are critical for maintaining order in high-volume fashion shoots. Instead of generic filenames like DSC001.CR3, use a structured format that includes the shoot ID, sequence number, and file type. This allows for rapid sorting and filtering within Linux.

Use rename or a simple bash loop to batch-process your raw files immediately after import. This step eliminates the need for manual renaming later and ensures that your raw directory remains pristine.

DG Micro
1
Install rename utility

Ensure you have the rename utility installed. On Debian/Ubuntu systems, this is often part of perl-rename.

Shell
Shell
sudo apt install rename
DG Micro
2
Batch rename raw files

Navigate to your raw directory and apply a naming scheme that includes the shoot ID (shoot_001) and a zero-padded sequence number. This command renames DSC_001.CR3 to shoot_001_001.CR3.

Shell
Shell
rename 's/^DSC_/shoot_001_/' *.CR3
DG Micro
3
Verify naming consistency

List the files to confirm the new structure. Use ls -1 to view one file per line for easy scanning.

Shell
Shell
ls -1 shoot_001_*.CR3

Sort images by shoot date and type

After renaming, you may need to sort files based on metadata or creation date if your initial import order was inconsistent. Linux tools like find and sort can help organize assets by date ranges or file types.

DG Micro
1
Find files by date range

Use find to locate files modified within a specific timeframe. This is useful for isolating files from a specific shooting session.

Shell
Shell
find . -name "*.CR3" -mtime -1
DG Micro
2
Sort by file extension

Group files by extension to verify that all RAW, TIFF, and JPEG files are in their respective directories.

Shell
Shell
find . -type f | sort -t. -k2
DG Micro
3
Move files to correct directories

If files are misplaced, move them to their designated folders (raw, processed, or exports) using mv.

Shell
Shell
mv *.TIFF processed/

Back up DG Micro assets to external drives

Backups are non-negotiable for professional photographers. Use rsync for efficient, incremental backups that preserve file permissions and timestamps. This ensures that your data is safe without wasting time or bandwidth.

  • Verify the basics
    Confirm the core specs, condition, and fit before comparing extras.
  • Price the downside
    Look for the repair, maintenance, or replacement cost that would change the decision.
  • Compare alternatives
    Check at least two comparable options before treating one listing as the benchmark.

Final Verification for DG Micro File Hygiene

Before archiving your shoot, run through this concise checklist to ensure your digital assets are organized and backed up. This process mirrors the precision required when handling luxury fashion photography; every file must be accounted for, correctly named, and stored in a redundant location.

  • Directory Structure Created: Verify your root folder (e.g., DG_Micro_S01) contains subdirectories for RAW, Edited, Exports, and Backups.
  • Files Renamed: Ensure all files follow a consistent naming convention (e.g., DG001_001.CR3) to maintain chronological order.
  • Sorted by Date: Confirm that file creation dates match the shoot timeline and that any duplicates have been removed.
  • Backed Up via rsync: Execute your final backup command to your secondary drive or cloud storage to guarantee data integrity.
DG Micro

Common Linux file errors for DG Micro

High-volume shoots generate thousands of high-resolution RAW files, turning standard Linux file management into a logistical bottleneck. When organizing a library for DG Micro photography, you will likely encounter permission conflicts and storage limits that stall your workflow.

Permission Denied

The most frequent error occurs when transferring files from a camera card to a mounted drive. If the mount point lacks write permissions for your user group, attempts to move or rename files will fail. Resolve this by adjusting ownership with chown and setting appropriate permissions with chmod to ensure your creative tools can access the assets without sudo privileges.

File System Limits

Large batches of RAW images can quickly exhaust inodes on ext4 or xfs file systems, especially if you are archiving thousands of small, fragmented shots. Monitor inode usage with df -i to prevent "No space left on device" errors even when disk capacity appears sufficient. Consider using a file system that handles high inode counts efficiently or consolidate files into tar archives for long-term storage.