Skip to content

A basic collection of terminal commands to back up folders as zip files on your Windows PC.

Notifications You must be signed in to change notification settings

DaFrankort/bup-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bUp - CLI

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.

Requirements

  • Windows OS (Not tested on other OS)
  • Python 3.11.5 (or later)
  • pip installed

Installation

  1. Clone the repository:
    git clone <repo-url>
  2. Navigate to the repository in your terminal:
    cd bup-cli
  3. Install the package:
    pip install --user .
  4. Verify the installation by running:
    bup
    This should display a list of available commands.

Usage

bUp provides several commands to manage folder backups. Each command can be invoked using its full name or its first letter.

ADD / A

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 (.).

DEL / D

Command:

bup del

or

bup d

Lists all folders marked for backup. Enter the corresponding number to remove a folder from the list.

LIST / L

Command:

bup list

or

bup l

Displays the list of folders set for backup along with the designated backup location.

SET / S

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 (.).

RUN / R

Command:

bup run

or

bup r

Starts 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.

Automating Backups

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:

  1. Press WIN + R
  2. Type shell:startup and press Enter
  3. Place a shortcut to bup_run.bat in this folder

This ensures backups run automatically when you start your PC.


Enjoy using bUp!

About

A basic collection of terminal commands to back up folders as zip files on your Windows PC.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published