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.
Install the latest version of backupp using pip:
pip install backupp -U # Alternatively, you can use pip3
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
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
.
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
backupp path/source/somefolder
backupp .
To display your current backup configuration and preferences:
backupp --check