Skip to content

Optay/backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Backup

A simple backup script that copies files based on modification time. The source/destination drive and paths must be edited in the script. Then run:

node backup.js

Backup performs two operations: copy and clean. Copy scans the source paths and copies files that are new or newer to the destination. Clean scans the destination paths and deletes files that are not present in source.

Note that the clean operation deletes from the destination paths all files not present in the matching source paths. Set the destination carefully.

##Changelog

About

A node.js backup script.

Resources

License

Stars

Watchers

Forks

Packages

No packages published