Skip to content

prem3402/Automated-File-Compression-and-Cloud-Upload-System-Using-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Automated File Compression and Cloud Upload System Using Python (Automated Backup Tool)

This project is a Python-based system that automates file compression and uploads the compressed archive to a Windows shared drive and optionally to Google Drive. It utilizes SMB protocol for Windows share operations and Google Drive API for cloud uploads.


Features

  1. Compress Files:
    • Compresses files and directories into a zip archive with the current date as part of the filename.
    • Deletes original files and folders after compression.
  2. Upload to Windows Shared Drive:
    • Uploads the compressed zip archive to a specified remote Windows shared folder using SMB protocol.
  3. Upload to Google Drive:
    • Optionally uploads the zip archive to a specified folder in Google Drive.

Prerequisites

  1. Python: Ensure Python 3.7 or higher is installed.
  2. Google Cloud Credentials:
    • Obtain a client_secrets.json file from your Google Cloud Console.
    • Enable the Google Drive API for your project.
  3. Windows Shared Drive Access: Ensure you have the correct credentials and permissions to access the remote shared folder.

Setup

Step 1: Clone the Repository

git clone https://github.com/prem3402/Automated-File-Compression-and-Cloud-Upload-System-Using-Python.git

cd Automated-File-Compression-and-Cloud-Upload-System-Using-Python

Step 2: Install the Dependencies

pip install -r requirements.txt

Step 3: Configure the Credentials

  1. Place your Google Drive API credentials (client_secrets.json) in the project directory.
  2. Ensure access to the remote Windows shared drive with correct username and password.
  3. Step 4: Run the Script

    Modify the input_paths, remote_computer, shared_folder, destination_path, user_name, user_password, and other parameters in the script as needed. Then, execute: ```bash python main.py ```

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages