ManualTrigger Automate

For N8n, automate file management by creating scheduled backups in Google Drive every 4 hours. This workflow efficiently organizes data into folders, converts items to JSON files, and ensures old folders are deleted, streamlining your storage and enhancing data accessibility.

7/8/2025
10 nodes
Medium
schedulemediumn8nsplitinbatchesgoogle driveconverttofileschedule triggerfilterautomationfilesstoragecron
Categories:
Schedule TriggeredMedium Workflow
Integrations:
N8nSplitInBatchesGoogle DriveConvertToFileSchedule TriggerFilter

Target Audience

  • Business Professionals: Those who need to automate backup processes for their Google Drive files.
    - Content Creators: Users who regularly create and manage files and need an organized way to store their work.
    - Project Managers: Individuals who oversee projects and require regular updates and backups of project-related documents.
    - Developers: Tech-savvy users looking to integrate automated workflows into their existing systems for efficiency.
  • Problem Solved

  • This workflow automates the backup of files to Google Drive, ensuring that important documents are stored securely and organized in folders named by date.
    - It eliminates the need for manual intervention, reducing the risk of human error and saving time.
    - The scheduled execution every 4 hours ensures that backups are up-to-date without requiring constant monitoring.
  • Workflow Steps

  • Step 1: The workflow can be triggered manually or scheduled to run every 4 hours using the Schedule Trigger node.
    - Step 2: Upon execution, a new folder is created in Google Drive, named with the current date and time, ensuring organized backups.
    - Step 3: The workflow retrieves existing folders from Google Drive to check for any duplicates, filtering out folders that match the current backup folder's ID.
    - Step 4: Files are converted into JSON format for easy storage and management.
    - Step 5: The converted files are saved into the newly created folder in Google Drive.
    - Step 6: Any outdated or unnecessary folders can be deleted based on the filter conditions, maintaining a clean storage space.
  • Customization Guide

  • To modify the backup schedule, adjust the hoursInterval in the Schedule Trigger node to your preferred frequency.
    - To change the folder structure or naming convention, edit the name parameter in the create new folder node to fit your organizational needs.
    - For different file formats, update the Convert to File node parameters to convert files into formats other than JSON.
    - Users can add additional nodes to further process files before saving them to Google Drive, such as integrating with other services or applying transformations.