filever: the file versioner utility.
Project description
FILEVER: cli file backup solution
Installation
$ pip install filever
Description
Filever is a utility designed for administrators to quickly and easily backup specific files whilst working from the CLI.
Instead of this:
$ cp -p ./someapp.conf ./someapp.conf.orig
Do this:
$ fver -b ./someapp.conf -c original
Why?
- easily swap between multiple versions of a file (handy when testing different options in a config file)
- keep your directories clean (backed up files are kept hidden in a vault)
- remembers the permissions of the file when backed up
- ability to restore to a new name if required
- ensures you don't back up duplicates
- ensures you don't accidentally restore over a file you haven't yet backed up
- browse vault contents for specific files or directories, or even the entire vault
- ability to delete files from the vault you no longer need
Dependencies
- Python 3
Instructions
Run 'fver -h' for all syntax
Demo
Examples
To do this | Run this |
---|---|
Backup file.txt in the current directory | fver -b ./file.txt |
Backup file.txt in the current directory with a comment | fver -b ./file.txt -c hello |
See backed up versions of existing file.txt in current directory | fver -l ./file.txt |
See all files backed up in current directory | fver -l . |
See entire vault contents | fver -l ALL |
Restore backed up version of existing file.txt in current directory | fver -r ./file.txt |
Restore latest backed up version of existing file.txt in current directory | fver -r ./file.txt --latest |
Restore backed up version of existing file.txt in current directory with new name | fver -r ./file.txt -n ./file-restored.txt |
Restore any file that was backed up in current directory (i.e. not sure of the filename) | fver -r . |
Restore any file in the vault that matches the string ".txt" (i.e. grep) | fver -r .txt |
Restore any file in the vault that matches the string ".doc" to the current directory with new name "restored.doc" | fver -r .doc -n ./restored.doc |
Delete a backup of existing file.txt in current directory | fver -d ./file.txt |
Choose from a list of backed up files in current directory to delete | fver -d . |
Choose from a list of files within the entire vault to delete whose filename contains ".txt" | fver -d .txt |
Tips
-
Config file location is set to
~/.config/filever/filever.conf
-
If the vault does not exist, it will be created the first time filever is run. Likewise, if a config file does not exist, a default one will be created at
~/.config/filever/filever.conf
-
Consider setting an alias for fver to shorten the command. EG:
alias fv='fver'
-
Consider placing your vault in a cloud sync'd folder for extra redundancy
Note
- Filever is not intended as a complete system backup solution, nor is it a complete version-control system (i.e. GIT). It is merely a command-line tool to help with your day-to-day workflow.
contact
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.
Source Distribution
Built Distribution
File details
Details for the file filever-1.0.0.tar.gz
.
File metadata
- Download URL: filever-1.0.0.tar.gz
- Upload date:
- Size: 10.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 848840a0dae41c6c9a1777a222b66048830d8cdb00d15f0362132a127547314f |
|
MD5 | 9227a96ea9c20a36593bba9bd716d6da |
|
BLAKE2b-256 | 16ed89cd16b912021868590317f0a012348000ede50bd7ac85e0d8760abbf413 |
File details
Details for the file filever-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: filever-1.0.0-py3-none-any.whl
- Upload date:
- Size: 10.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69f8c6d51cb1aabc01721a731b80b62f0ebe325e414537b106bf615c032512fb |
|
MD5 | cb76b8f3684095bb1b10af14cb938585 |
|
BLAKE2b-256 | 7f4a9bd23d08bbadb27fcb0ffc6a5b66073e1adbda44893938d6e6c1adf03ca6 |