Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/llukas22/python-smb-backup
Python library to backup folders to a smb volume
https://github.com/llukas22/python-smb-backup
backup python smb
Last synced: about 1 month ago
JSON representation
Python library to backup folders to a smb volume
- Host: GitHub
- URL: https://github.com/llukas22/python-smb-backup
- Owner: LLukas22
- License: mit
- Created: 2022-08-27T11:43:06.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-08-29T14:41:38.000Z (over 2 years ago)
- Last Synced: 2024-12-06T11:18:41.779Z (about 2 months ago)
- Topics: backup, python, smb
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# python-smb-backup
Python library to backup folders to a smb volume## Installation
```
pip install smb-backup
```
## Usage
```
from smb_backup import SMB_Backup
# create a new backup object
smb_backup = SMB_Backup(SERVER,SHARE,USERNAME,PASSWORD,retention=RETENTION)
# backup a folder
smb_backup.backup(SOURCE_DIR,TARGET_DIR)
```
Depending on the retention-value the oldest backup will be deleted.