https://github.com/rhinodevel/pib
Portable incremental backup utility written in C (C11) without any dependencies.
https://github.com/rhinodevel/pib
backup portable
Last synced: 8 months ago
JSON representation
Portable incremental backup utility written in C (C11) without any dependencies.
- Host: GitHub
- URL: https://github.com/rhinodevel/pib
- Owner: RhinoDevel
- License: isc
- Created: 2016-03-27T16:38:40.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-08-26T08:08:56.000Z (about 6 years ago)
- Last Synced: 2025-01-19T18:47:24.517Z (9 months ago)
- Topics: backup, portable
- Language: C
- Homepage:
- Size: 61.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# pib
**P**ortable **i**ncremental **b**ackup utility written in C (C11) without any dependencies.
# Usage
**Create backup of folder (usually the only command you need)**
`pib b `
This snipit will copy all the files from the input to the output folder and create a file `.pib` in the output folder that holds checksums for all stored files.
Each time the exact same command as above is executed, after the first backup, the application will look for changes in the input folder and modify the output folder contents to match the input folder's contents by just deleting, creating or updating the necessary files and subdirectories (incremental).
This is done by comparing the file checksums and file sizes for the input folder created during each run with the checksums and sizes stored in `.pib` data file found in backup (output) folder.
The deletions, creations and updates planned will be presented to the user beforehand.
If deletions and/or updates of files are necessary, the user will be asked, if the application shall proceed.
The `.pib` data file will be updated during the backup process (to match the new content of output folder).
**Verify data file in backup (output) folder**
`pib v `
Checks, if the `.pib` file in the backup (output) folder matches the actual content of the backup folder.
**(Re-)create data file in backup (output) folder**
`pib c `
(Re-)creates the `.pib` data file. File's content will reflect the backup (output) folder's contents.
**Show folder informations**
`pib i `
Prints count and (byte) size of all files and subfolders included in folder at given path.
# License
See the [LICENSE](https://github.com/RhinoDevel/pib/blob/master/LICENSE.md) file for license rights and limitations (ISC).