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.
- 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.
- Upload to Windows Shared Drive:
- Uploads the compressed zip archive to a specified remote Windows shared folder using SMB protocol.
- Upload to Google Drive:
- Optionally uploads the zip archive to a specified folder in Google Drive.
- Python: Ensure Python 3.7 or higher is installed.
- Google Cloud Credentials:
- Obtain a client_secrets.json file from your Google Cloud Console.
- Enable the Google Drive API for your project.
- Windows Shared Drive Access: Ensure you have the correct credentials and permissions to access the remote shared folder.
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
pip install -r requirements.txt
- Place your Google Drive API credentials (client_secrets.json) in the project directory.
- Ensure access to the remote Windows shared drive with correct username and password. 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 ```