Skip to main content

filever: cli file backup solution.

Project description

FILEVER: cli file backup solution

Installation

$ pip3 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
  • warns you before accidentally restoring 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

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

filever-1.0.1.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

filever-1.0.1-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file filever-1.0.1.tar.gz.

File metadata

  • Download URL: filever-1.0.1.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for filever-1.0.1.tar.gz
Algorithm Hash digest
SHA256 c7feddd596aabe66cfc7cb211ba03dd2728f7912335f24eb733fbe8899903b8c
MD5 5e8c2de97ccf583130c1cd8d470abccf
BLAKE2b-256 f5dc1ae271d0a476b49615d1ce51f7b793b494d5fef82dd03423e02b97c478f4

See more details on using hashes here.

File details

Details for the file filever-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: filever-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for filever-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d30c65293433bd309b0169d01dd5a467fd2abc00495d67babf52aef9ef3fefaa
MD5 7e132809602bc25b2960c96c6e991aee
BLAKE2b-256 8f339a9e8b6611592a3a7579e85c3583b01a12bf34229cc60f275dacbb30117a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page