A basic CLI tool to back up folders as zip files on your Windows PC.
Note: This is a personal project and may not cover all edge cases. Use at your own risk.
- Windows OS (Not tested on other OS)
- Python 3.11.5 (or later)
pipinstalled
- Clone the repository:
git clone <repo-url>
- Navigate to the repository in your terminal:
cd bup-cli - Install the package:
pip install --user . - Verify the installation by running:
This should display a list of available commands.
bup
bUp provides several commands to manage folder backups. Each command can be invoked using its full name or its first letter.
Command:
bup add <path>or
bup a <path>Adds a folder to the backup list. You can provide either an absolute or relative path.
Default Behavior: If no path is provided, it defaults to the current directory (.).
Command:
bup delor
bup dLists all folders marked for backup. Enter the corresponding number to remove a folder from the list.
Command:
bup listor
bup lDisplays the list of folders set for backup along with the designated backup location.
Command:
bup set <path>or
bup s <path>Sets the specified path as the backup storage location.
Default Behavior: If no path is provided, it defaults to the current directory (.).
Command:
bup runor
bup rStarts the backup process. It checks for changes in the marked folders and creates a zip archive for any modified folders, storing them in the designated backup location.
Backup File Naming: Backups are stored within a /Backups folder in your specified directory, using the folder path as name: e.g., C_Users_UserName_Pictures.zip.
bUp does not include an automatic scheduling feature. However, you can automate backups by placing a shortcut to the bup_run.bat file in the Windows Startup folder:
- Press
WIN + R - Type
shell:startupand pressEnter - Place a shortcut to
bup_run.batin this folder
This ensures backups run automatically when you start your PC.
Enjoy using bUp!