0.4.1 • Published 3 years ago

backup-simple v0.4.1

Weekly downloads
1
License
ISC
Repository
bitbucket
Last release
3 years ago

backup-simple


Backup rotation daily, weekly, monthly for small file footprint.

Install


npm install backup-simple

Description


The back up looks for an attached memory stick, creates a backup directory (backup) then copies the files three times to a daily, weekly, and monthly folder.

The files are over written so that there are

  • 7 daily folders
  • 5 weekly folders
  • One monthly folder for month in the year.

So in affect current week each day, current month each week, and one per month for ever.

Sample Folders


On March 1 2018 the following folders are created:

  • /backup/2018_03
  • /backup/2018_03_week01
  • /backup/2018_03_01_thursday

On March 2 2018

  • /backup/2018_03 (over written)
  • /backup/2018_03_week01 (over written)
  • /backup/2018_03_01_thursday (unchanged)
  • /backup/2018_03_02_friday (new)

One week later March 8 2018

  • /backup/2018_03 (over written)
  • /backup/2018_03_week01
  • /backup/2018_03_week02 (new)
  • /backup/2018_03_08_thursday (new)
  • /backup/2018_03_02_friday
  • /backup/2018_03_03_saturday
  • /backup/2018_03_04_sunday
  • /backup/2018_03_05_monday
  • /backup/2018_03_06_tuesday
  • /backup/2018_03_07_wendsday

Sample Code


const { runBackUp } = require("backup-simple");
runBackUp("./test/testFiles/source/").then(function(complete) {
    console.log(complete);
});
0.4.1

3 years ago

0.4.0

3 years ago

0.3.1

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago