Compress and archive old Google Drive PDFs to AWS S3 cold storage with Slack reports
Consolidate and compress project archives for cost-optimized cloud storage
šÆ Description Optimize your cloud storage costs by using this automation to intelligently compress and migrate aging project documentation. This workflow allows you to achieve a professional data lifecycle policy by identifying "stale" files in active storage, applying high-ratio PDF compression, and migrating them to cold storage while maintaining a searchable audit trail.
A critical technical feature of this template is the Luxon-based lifecycle logic. By utilizing {{ $now.minus({ months: 6 }).toISODate() }}, the workflow dynamically filters for files that haven't been modified in over half a year. It then generates a unique archive path using {{ $now.toFormat('yyyy/MM_MMM') }}, ensuring your cold storage bucket remains perfectly indexed by year and month without any manual folder creation or renaming.
⨠How to achieve automated storage optimization You can achieve an enterprise-grade archiving system by using the available tools to:
Monitor and age-gate ā Use the Google Drive node to list project files and a Code node to compare file metadata against a 6-month "hot storage" threshold. Compress and verify ā Pass identified files through the HTML to PDF compression engine to reduce file size by up to 80% while maintaining document readability. Migrate to cold storage ā Stream the compressed binary directly to AWS S3 (or a dedicated archive folder), using dynamic naming conventions for organized retrieval. Log and notify ā Automatically alert the IT team via Slack upon batch completion, providing a report on the specific files migrated and the storage path used.
š” Key features Intelligent cost reduction** ā Automatically targets large, old files for compression, significantly reducing long-term "Cold Storage" billing. Dynamic indexing* ā Uses Luxon* to build a chronological folder structure in the cloud, making multi-year archives easy to navigate. Integrity assurance** ā The workflow ensures files meet specific age and type criteria before moving them, preventing accidental archival of active documents.
š¦ What you will need Google Drive ā Your "Hot" storage where active project files are kept. HTML to PDF Node ā Used here for the PDF compression and optimization engine. AWS S3 ā Your destination "Cold" storage for long-term archiving. Slack ā For automated reporting on storage optimization status.
Ready to optimize your cloud storage? Import this template, connect your credentials, and start saving on long-term data costs today.
Related Templates
Track Demo Bookings with Google Calendar to Meta Conversions API Integration
Who is this workflow for? If you're using Meta Ads to generate new leads to your sales pipeline, this workflow is for yo...
Transcribe & Summarize Audio with Whisper and GPT, from Google Drive to Notion
This workflow contains community nodes that are only compatible with the self-hosted version of n8n. Overview This work...
Reusable and Independently Testable Sub-workflow
Reusable and Independently Testable Sub-workflow This n8n workflow provides a standardized structure for building and te...
š Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments