Back ups your folder to your preferred local or network destination reading or creating a gitignore file.
Project description
backupp
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
Check Backup Setup
To display your current backup configuration and preferences:
backupp --check
Backup with Commit
This feature allows you to emulate a Git-like commit operation, where each backup is treated as a "commit":
# Backup with a commit message, creating a directory named after the commit message
backupp /path/to/source_folder_commit_ThisIsACommitMessage
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.