Skip to content

walter-a-jablonowski/easy-backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

easy-backup

Super simple backup tool

This tool makes clever use of rules, that are added in file and folder names. Specify what should be included in backup just where you are working: in file system. No need for updating include / exclude lists in an application each time you changed something.

How it works

"Last rule counts"

Files/folders using rules Result in backup
/folder.bac/sub/sub1/myfile_1_1.txt myfile included because of '.bac'
/folder.bac/sub/sub5.nobac/myfile_2_1.txt no include of myfile because last rule is '.nobac'
/folder.bac/sub/sub1/myfile_1_2.nobac.txt also works for file names
/folder.bac/sub/sub5.nobac/myfile_2_2.bac.txt myfile included because last rule is '.bac'

You need at leat one .bac somewhere in hierarchie for each source folder. You can change this in config (see below).

Usage

  1. composer install
  2. Run demo: see results in /demo
  3. Edit config.yml

Config file

src/config.yml

running:    true               # stop backup
backupFld:  "../demo/backup/"
sourceFlds:                    # list of source folders

  - "../demo/source/"

skip:                          # use any part of /my/full/fld/fil.txt
  - "/.backup"
  - "/.v-backup"

doBackup: ".bac"
noBackup: ".nobac"

Changelog

  • 2025-04 - Simplified
  • 2019-06 - Added readme, released code
  • 2018 - Development

LICENSE

Copyright (C) Walter A. Jablonowski 2018-2025, MIT License

This project is build upon PHP (license see credits) and has no further dependencies.

Privacy | Legal

About

Super simple backup tool

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages