Skip to content

backups your folder to your preferred local or network destination using a gitignore file.

License

Notifications You must be signed in to change notification settings

SermetPekin/backupp-rep

Repository files navigation

backupp

Python package

backupp is a Python package that automates the backup of folders to a specified local or network destination. It intelligently utilizes or generates a .gitignore file to manage which files or folders should be ignored during the backup process.

Installation

Install the latest version of backupp using pip:

pip install backupp -U  # Alternatively, you can use pip3

Usage

Console (Windows) / Terminal (Linux/Mac)

To backup specific folders to a designated backup folder, use:

backupp /path/to/source_folder /path/to/backup_folder

Examples:

  • Backup a specific folder:

    backupp /some_folder/that_folder my_backup_folder
  • Backup the current folder:

    backupp . path/to_my_backup_folder
  • Backup the parent folder:

    backupp .. path/to_my_backup_folder

Handling .gitignore

The backupp package searches for an existing .gitignore file in the source directory. If it doesn't find one, it will create a default .gitignore file. You can modify this file to customize which files or folders should be excluded from backups, similar to how Git uses .gitignore.

Setup Global Backup Folder

To set a default backup folder, which can be used for subsequent backup operations without specifying a path each time:

backupp --setup /path/to/my_favorite_backup_folder

Backup to favorite folder

backupp path/source/somefolder   

Backup current folder to favorite backup folder

backupp . 

Check Backup Setup

To display your current backup configuration and preferences:

backupp --check

About

backups your folder to your preferred local or network destination using a gitignore file.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages