Skip to content

scripts which can replicate one directory to another directory

Notifications You must be signed in to change notification settings

kuldeep0020/resync-dir-node

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

resync-dir-node

scripts which can replicate one directory to another directory

reasone to create

i have connected two hdd to drive in raspberry pi, one of drive i was using as destination of ftp server where i am dumping all data of ftp server. So I wanted to be a mechanism which will clone firts dive to second drive. This script can do that, you can trigred it manually but i was using crontab execute this script on every night

step required to run this Script

  1. go to the file index.js, and const rsyncSource = '/media/pi/main-disk/'; const rsyncDest = '/media/pi/backup-disk'; update these two variable.
  2. install packages with this cmd npm install
  3. run script with this cmd node index.js

About

scripts which can replicate one directory to another directory

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%